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

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Python pxssh failed on login. could not set shell prompt

Differences between gz, bzip2, xz, 7z, rar, lzop