How to check if the connectivity is via Ethernet or dial-up

J

jb

Hi all:

I was just wondering if there is a way to check (using python
scripting) whether the computer's connectivity is via Dial-up or
LAN/Ethernet adaptor? Is there a way in python to check the status of
all available Ethernet adaptors? If not is there a way to achieve this
by just checking some network parameters using System module?.

Please help.

Thanks,
-JS
 
R

Roy Smith

"jb said:
Hi all:

I was just wondering if there is a way to check (using python
scripting) whether the computer's connectivity is via Dial-up or
LAN/Ethernet adaptor? Is there a way in python to check the status of
all available Ethernet adaptors? If not is there a way to achieve this
by just checking some network parameters using System module?.

The best I could suggest is get the pysnmp module, and that to poke around
in the interface table (assuming your box is running an SNMP agent).
 

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
473,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top