cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5375
Views
0
Helpful
0
Replies

SNMP to get spanning-tree status

I need to implement a "Spanning Tree Status" view on my NMS and I would like to use SNMP.

I'm running Rapid Per-VLAN Spanning Tree Protocol on 3560-E (WS-C3560E-24TD) with IOS 12.2(55)SE.

Using the ciscoStpExtensionsMIB MIB (CISCO-STP-EXTENSIONS-MIB) I see the stpxRSTPPortRoleTable table, which contains the stpxRSTPPortRoleValue value, and I think it could be fine for my job.

The problem is that this table uses an index (stpxRSTPPortRolePortIndex) based on the standard dot1dBridge.1.4 table (dot1dBasePortTable) that does not report some interfaces:

dot1dBasePortIfIndex from dot1dBasePortEntry:

# snmpwalk -v 2c -c xxx a.b.c.d .1.3.6.1.2.1.17.1.4.1.2

iso.3.6.1.2.1.17.1.4.1.2.9 = INTEGER: 10109

iso.3.6.1.2.1.17.1.4.1.2.10 = INTEGER: 10110

iso.3.6.1.2.1.17.1.4.1.2.11 = INTEGER: 10111

[...]

iso.3.6.1.2.1.17.1.4.1.2.72 = INTEGER: 5003

stpxRSTPPortRoleValue from stpxRSTPPortRoleEntry:

# snmpwalk -v 2c -c xxx a.b.c.d .1.3.6.1.4.1.9.9.82.1.12.2.1.3

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.1.72 = INTEGER: 2

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.300.5 = INTEGER: 3

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.300.72 = INTEGER: 3

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.301.7 = INTEGER: 3

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.301.72 = INTEGER: 3

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.400.72 = INTEGER: 2

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.401.8 = INTEGER: 4

iso.3.6.1.4.1.9.9.82.1.12.2.1.3.401.72 = INTEGER: 2

I think the dot1dBasePortTable does not include those interfaces (5, 7, 8) where I do not run standard STP, but I need the dot1dBasePortEntry entries because I have to use them in order to get the interface ID (values like 10109, 10110, 10111).

Can anyone help me? Suggestions?

Thanks in advance

0 Replies 0