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

SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

Hi, I have enabled the SNMP agent on a Cat 3560G and have downloaded and parsed various Cisco mibs, including the CISCO-STP-EXTENSIONS-MIB.my mib, in to our MIB browser. This has enabled me to successfully set the bridge spanning-tree mode to mst and configure the mst name and revision level using SNMP. However, I cannot locate the mib object to set or get the instance priority or the port costs and port priorities for each instance. I can successfully set these via CLI. Does anybody know if these objects exist in a different MIB? I have searched many mibs but have been unable to locate them.

Many thanks in advance.

Tony

5 REPLIES
Cisco Employee

Re: SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

These values are typically set using BRIDGE-MIB objects, however, I have not tested this with MST. You will need to use community string indexing at the very least to do this on a per-instance basis. Your indexes will be mst-X where X is the instance number. For example, "private@mst-2" would be a community string to set objects in MST instance 2.

Then try setting dot1dStpPortPriority or dot1dStpPortPathCost for the port ID you want using that community string.

Or set dot1dStpPriority.0 using that community string.

Community Member

Re: SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

Many thanks for this - you are right. I performed 'snmp-server community private@mst-x rw' where x is an incremental number representing the instance.

Instance Priority: With the above it is now possible to read the instance priority from BRIDGE-MIB::dot1dstpPriority.0 by quoting the appropriate community string for the instance i.e. 'snmpget -c private@mst-1 -v 2c dot1dstpPriority.0' for instance 1. I have noticed however, that the value returned is actually the priority plus the instance number i.e. 4097 for instance 1 which has been set to 4096.

Port Priority: This works as expected with the correct community string getting and setting 'BRIDGE-MIB::dot1dstpPortPriority.'.

Port Cost: I have been having problems with this one. I can get the cost by performing 'snmpget -c private@mst-1 -v 2c dot1dstpPortPathCost.', this returns an integer value e.g. 1000. However, I have been unable to set this object. I have been getting the error message "inconsistentValue (The set is illegal or unsupported in some way)". This is after performing 'snmpset -c private@mst-1 -v 2c dot1dstpPortPathCost. i 1000'. Is there a peculiar way of setting the port path cost?

Regards

Tony

Cisco Employee

Re: SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

What version of code is this switch running? It may not be possible to set all of these objects.

Community Member

Re: SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

The software running is Version 12.2(25r)SE1, Release Software (fc).

I have noticed that it is possible to get the port state from dot1dStpPortState but there is no equivalent for port Role - which is available via CLI.

Cisco Employee

Re: SNMP MSTP Management using CISCO-STP-EXTENSIONS-MIB

That version appears to be the boot loader version. Please include the entire show ver.

648
Views
5
Helpful
5
Replies
CreatePlease to create content