07-03-2013 02:44 AM - edited 03-07-2019 02:12 PM
My task is to find out the neighbors of the 2960 on the port with SNMP.
iso.0.8802.1.1.2.1.4.1.1.7 ->
iso.0.8802.1.1.2.1.4.1.1.7.0.25.1 = STRING: "1/g23"
As far as I understand that does mean that on local port 25 there is a connection to 1/g23 of the connected switch.
But...
IF-MIB::ifIndex
...
IF-MIB::ifIndex.10123 = INTEGER: 10123
IF-MIB::ifIndex.10124 = INTEGER: 10124
IF-MIB::ifIndex.10125 = INTEGER: 10125
IF-MIB::ifIndex.10126 = INTEGER: 10126
IF-MIB::ifIndex.10127 = INTEGER: 10127
...
Is the port with the index 10125 the same as just 25 above?
Solved! Go to Solution.
07-03-2013 05:25 AM
Hi,
you can validate the different interface enumeration types with
1) LLDP-MIB::lldpLocPortId
Example:
iso.0.8802.1.1.2.1.3.7.1.3.1 = "Fa0/1"
iso.0.8802.1.1.2.1.3.7.1.3.2 = "Fa0/2"
(...)
2) CISCO-STACK-MIB::portIfIndex
Example:
enterprises.9.5.1.4.1.1.11.1.1 = 10001
enterprises.9.5.1.4.1.1.11.1.2 = 10002
(...)
ifName.10001 = Fa0/1
ifName.10002 = Fa0/2
(...)
Hope that helps
Rolf
07-03-2013 05:25 AM
Hi,
you can validate the different interface enumeration types with
1) LLDP-MIB::lldpLocPortId
Example:
iso.0.8802.1.1.2.1.3.7.1.3.1 = "Fa0/1"
iso.0.8802.1.1.2.1.3.7.1.3.2 = "Fa0/2"
(...)
2) CISCO-STACK-MIB::portIfIndex
Example:
enterprises.9.5.1.4.1.1.11.1.1 = 10001
enterprises.9.5.1.4.1.1.11.1.2 = 10002
(...)
ifName.10001 = Fa0/1
ifName.10002 = Fa0/2
(...)
Hope that helps
Rolf
07-03-2013 06:08 AM
Thank you, that was exactly what I needed :)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide