network parameters

L

le dahut

Hi,

Is there a way to get network parameters (number of network interfaces,
ip address(es), DNS, gateway) on a linux station using python 2.3 ?

Klaas
 
S

Sybren Stuvel

le dahut enlightened us with:
Is there a way to get network parameters (number of network
interfaces, ip address(es), DNS, gateway) on a linux station using
python 2.3 ?

Sure.

- number of network interfaces, ip address(es), gateway: read from /proc
- DNS: read /etc/resolv.conf

Sybren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,041
Members
48,769
Latest member
Clifft

Latest Threads

Top