Collin Clark Tue, 08/10/2010 - 06:26
User Badges:
  • Purple, 4500 points or more

1.3.6.1.2.1.2.2.1.10.[interface number]


Hope it helps.

ssweehinlew Tue, 08/10/2010 - 07:59
User Badges:

How to identify the interface number? Can show me example?

Collin Clark Tue, 08/10/2010 - 08:15
User Badges:
  • Purple, 4500 points or more

Sure, here is the command to get the interface ID.


ROUTER#show snmp mib ifmib ifindex
Loopback1: Ifindex = 11
T3 1/0: Ifindex = 5
GigabitEthernet0/1: Ifindex = 2
Tunnel0: Ifindex = 8
VoIP-Null0: Ifindex = 3
FastEthernet2/0: Ifindex = 9
Loopback0: Ifindex = 7
Null0: Ifindex = 4
GigabitEthernet0/0: Ifindex = 1
Serial1/0: Ifindex = 6
FastEthernet2/1: Ifindex = 10


In this example Serial1/0 has an ID of 6. You will want to add snmp-server ifindex persist to your config so these values don't change after a reboot.

Actions

This Discussion