[c-nsp] snmpwalk for switch port status

Frank Bulk frnkblk at iname.com
Tue Nov 17 21:51:08 EST 2009


Do the relevant scripts with NAGIOS meet your needs?  See, for example,
check_snmp_int.

Frank

-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of sky vader
Sent: Tuesday, November 17, 2009 2:47 PM
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] snmpwalk for switch port status

Hi,

Can anyone point me in right direction for a perl script that will
snmpwalk the MIB for switch port status whether "up" or "down" including
total number of ports available?

I have approximately 400 switches that I would like to query via script
and pipe the results to a file for every device.

I'm currently querying it manually (see below) which is not scaling :-)

$ snmpwalk -c <community> <host_ip>
interfaces.ifTable.ifEntry.ifOperStatus | grep down


Any pointers will be greatly appreciated.


regards
sky

_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list