05-15-2017 07:20 AM - edited 03-08-2019 10:35 AM
Hello, fellows!
I have an old cisco catalyst 3750 (12.2(55)SE10) with configured STP.
I'd like to gather STP-related information from this device and tried to use SNMP. BRIDGE-MIB.
OIDs BRIDGE-MIB::dot1dStpRootCost, BRIDGE-MIB::dot1dStpPriority, BRIDGE-MIB::dot1dStpDesignatedRoot return proper results of root-route cost, this certain switch stp priority and designated root switch values respectively.
But BRIDGE-MIB::dot1dStpRootPort doesn't return right value or I can't interpret it correctly:
snmpwalk -v 2c -c <my_community> <my_dev_ip> BRIDGE-MIB::dot1dStpRootPort
BRIDGE-MIB::dot1dStpRootPort.0 = INTEGER: 1
then I try to get ifName by this index:
snmpwalk -v 2c -c <my_commutity> <my_dev_ip> IF-MIB::ifDescr.1
IF-MIB::ifDescr.1 = STRING: Vlan1
I go to the device and look at sh spanning-tree mst 0 detail
and see my root port is gi1/0/1
if i request all the list of interfaces:
snmpwalk -v 2c -c <my_community> <my_dev_ip> IF-MIB::ifDescr
I get
IF-MIB::ifDescr.1 = STRING: Vlan1
IF-MIB::ifDescr.3 = STRING: Vlan3
IF-MIB::ifDescr.5179 = STRING: StackPort1
IF-MIB::ifDescr.5180 = STRING: StackSub-St1-1
IF-MIB::ifDescr.5181 = STRING: StackSub-St1-2
IF-MIB::ifDescr.10001 = STRING: FastEthernet1/0/1
***
IF-MIB::ifDescr.10024 = STRING: FastEthernet1/0/24
IF-MIB::ifDescr.10101 = STRING: GigabitEthernet1/0/1
IF-MIB::ifDescr.10102 = STRING: GigabitEthernet1/0/2
IF-MIB::ifDescr.14501 = STRING: Null0
So ID of root interface should be 10101. Why do I get ID=1? Do I use wrong MIBs?
I can provide dotted-decimal values of above mentioned MIBs
Appreciate any help!
05-15-2017 08:48 PM
I found this old
https://supportforums.cisco.com/discussion/10074976/mib-cisco-stp-extensions-mib-stpxfaststartportindex-not-accessible
HTH
Regards,
VS.Suresh.
05-22-2017 07:14 AM
hi again!
I steel need help
I was looking throughout internet and haven't found any solution unfortunately.
I also examined BRIDGE-MIB
ftp://ftp.cisco.com/pub/mibs/v2/BRIDGE-MIB.my
and it reads:
dot1dStpRootPort OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-only STATUS current DESCRIPTION "The port number of the port that offers the lowest cost path from this bridge to the root bridge." REFERENCE "IEEE 802.1D-1998: clause 8.5.3.3" ::= { dot1dStp 7 }
What does actually "port number" mean? My gi1/0/1 should be 25th as a port number, shouldn't it?
But result of request returns as INTEGER=1...
Does anyone know how can I correlate these indexes?
Ok, I went on farther and looked for all MIBs for my c3750 box and found some CISCO-STP_EXTENSIONS-MIB
ftp://ftp.cisco.com/pub/mibs/v2/CISCO-STP-EXTENSIONS-MIB.my
I found some
stpxMSTPortRoleValue
which is marked deprecated (I checked it with Cisco SNMP Object Navigator)
http://snmp.cloudapps.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.4.1.9.9.82.1.11.12.1.3&translate=Translate&submitValue=SUBMIT&submitClicked=true
and it's recommended to use stpxRSTPPortRoleValue instead:
http://snmp.cloudapps.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.4.1.9.9.82.1.12.2.1.3&translate=Translate&submitValue=SUBMIT&submitClicked=true
But both these OIDs return the same output:
snmpwalk -v 2c -c <community> <ip> 1.3.6.1.4.1.9.9.82.1.11.12.1.3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.1 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.3 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.4 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.6 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.7 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.8 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.9 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.12 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.0.16 = INTEGER: 3
It shows me the root port for my MST instance 0
SNMPv2-SMI::enterprises.9.9.82.1.11.12.1.3.[0=MST_INSTANCE].1 = INTEGER: 2
But how can I be sure port number 1 is pointing at gi1/0/1 (with 10101 index) instead of fa1/0/1 (with 10001 index).
The same picture i see on cisco catalyst 3560
I'll appreciate any help...my conjectures exaused
05-23-2017 12:04 AM
Unfortunately neither dot1dBasePortIfIndex nor dot1dBasePort of BRIDGE-MIB did work...
I get
BRIDGE-MIB::dot1dBasePort = No Such Instance currently exists at this OID
BRIDGE-MIB::dot1dBasePortIfIndex = No Such Instance currently exists at this OID
Actually I don't have any entry of
dot1dBasePortTable | 1.3.6.1.2.1.17.1.4 |
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