Thursday, August 29, 2013

Cisco how to check interface index using snmp

Try command

$ snmpwalk -v2c -c community-string HOST 1.3.6.1.2.1.31.1.1.1.1

Outcome will be:


IF-MIB::ifName.1 = STRING: Fa0
IF-MIB::ifName.2 = STRING: Fa1
             This -^- is the interface-number

so when using for example nagios plugin check_itraffic use this number as interface parameter

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status