On 7/26/12, Anthony Bush <anthonybus...@gmail.com> wrote:
> Hi,
>
> I need a bit of help with the snmpwalk command. Im trying to run a simple
> test on a network switch to see if the ports are on or off using snmpwalk
> but I can't seem to figure out the proper command to use in terms of the
> arguments and options that need to be included. I keep getting the help
> options on linux but thats not helping me much. I am using a server that
> runs RHEL 6.2. I would appreciate any help I could get.

show if the ports are up or down:
$ snmpwalk switchname ifOperStatus
RFC1213-MIB::ifOperStatus.1 = INTEGER: up(1)
RFC1213-MIB::ifOperStatus.2 = INTEGER: up(1)
RFC1213-MIB::ifOperStatus.3 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.4 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.5 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.6 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.7 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.8 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.9 = INTEGER: up(1)


show if the ports are enabled or disabled:
$ snmpwalk switchname ifAdminStatus
RFC1213-MIB::ifAdminStatus.1 = INTEGER: up(1)
RFC1213-MIB::ifAdminStatus.2 = INTEGER: up(1)
RFC1213-MIB::ifAdminStatus.3 = INTEGER: up(1)
RFC1213-MIB::ifAdminStatus.4 = INTEGER: down(2)
RFC1213-MIB::ifAdminStatus.5 = INTEGER: down(2)
RFC1213-MIB::ifAdminStatus.6 = INTEGER: down(2)
RFC1213-MIB::ifAdminStatus.7 = INTEGER: down(2)
RFC1213-MIB::ifAdminStatus.8 = INTEGER: down(2)
RFC1213-MIB::ifAdminStatus.9 = INTEGER: up(1)

Regards,
Lee

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to