Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   How to check if the connectivity is via Ethernet or dial-up (http://www.velocityreviews.com/forums/t359517-how-to-check-if-the-connectivity-is-via-ethernet-or-dial-up.html)

jb 07-08-2006 08:22 PM

How to check if the connectivity is via Ethernet or dial-up
 
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


Roy Smith 07-08-2006 08:34 PM

Re: How to check if the connectivity is via Ethernet or dial-up
 
In article <1152390149.961365.282720@35g2000cwc.googlegroups. com>,
"jb" <jsbraich@gmail.com> wrote:

> 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).


All times are GMT. The time now is 06:35 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57