LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: HowTo check the status of one or multiple network interfaces the easy way (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-howto-check-the-status-of-one-or-multiple-network-interfaces-the-easy-way-716874/)

LXer 04-04-2009 04:11 PM

LXer: HowTo check the status of one or multiple network interfaces the easy way
 
Published at LXer:

Today a friend of mine wanted to know how he can check the status and or speed of multiple Network Interfaces/Ports on a device ( Switch, Router, Server, etcc ) using SNMP. Specifically he wanted to know if the Interfaces/Ports are Operationally Up or Down and also if it is Administratively. Then he also wanted to know the speed of the Interfaces/Ports that were Up or Down. Now you can easily get this information through SNMP or if you have a monitoring tool like Zenoss. But he wanted a command line script that would run fairly quickly and either print the results to STDOUT or that he can pipe the ouput in an email. So I decided, ok I'll wite you a quick script in Python that will get you that information. FYI, I'm thinking of making this script compatible with the Nagios API. If you want this feature please let me know...

Read More...


All times are GMT -5. The time now is 02:08 PM.