Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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 .

iso. = INTEGER: 10109

iso. = INTEGER: 10110

iso. = INTEGER: 10111


iso. = INTEGER: 5003

stpxRSTPPortRoleValue from stpxRSTPPortRoleEntry:

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

iso. = INTEGER: 2

iso. = INTEGER: 3

iso. = INTEGER: 3

iso. = INTEGER: 3

iso. = INTEGER: 3

iso. = INTEGER: 2

iso. = INTEGER: 4

iso. = 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

Everyone's tags (6)
CreatePlease login to create content