05-11-2007 05:52 AM
Hi,
We are trying to set portfast using snmp via MIB CISCO-STP-EXTENSIONS-MIB on cat6500 catos 8.5.6.
It is working pretty well (portfast configuration is modified) but the portindex used on this OID is completely different to the ifindex of the IFMIB.
--
To resume, we can modify the portfast feature in a per port basis but we do not know what index is pointing to what port.
For example:
port 8/30 belongs to ifindex 311
--
IF-MIB::ifName.311 = STRING: 8/30
--
But there is no portindex 311 the stpxFastStartPortMode OID:
--
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.1 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.2 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.3 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.4 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.5 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.6 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.7 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.8 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.513 = INTEGER: 4
SNMPv2-SMI::enterprises.9.9.82.1.9.3.1.3.514 = INTEGER: 4
...
...
------
I have seen that stpxFastStartPortIndex OID should help as it should give the relationship betwen the ifname and the corresponding index in the stpxFastStartPortMode.
--
BUT this OID stpxFastStartPortIndex is flagged not-accessible on CCO SNMP navigator (http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.9.82.1.9.3.1.1)
--
We can not retrieve it via snmpget or snmpwalk.
--
The remaining question is how can we make the relationship between the ifname and the corresponding index used in stpxFastStartPortMode OID (as stpxFastStartPortIndex oid is not accessible)?
--
Many thanks for your help.
Regards/Ludovic.
Solved! Go to Solution.
05-11-2007 08:53 AM
The MIB holds the key. In this case the index for the stpxFastStartPortTable is stpxFastStartPortIndex. The description of stpxFastStartPortIndex says that this is the same as the dot1dBasePort number from the BRIDGE-MIB. This bridge port can be mapped back to an ifIndex using the dot1dBasePortIfIndex object in the dot1dBasePortTable from the BRIDGE-MIB.
So, you should expect to see (for example, this may not be EXACTLY what you see):
BRIDGE-MIB::dot1dBasePortIfIndex.513 = 311
In this case, the stpxFastStartPortIndex of 513 maps to ifIndex 311.
05-11-2007 08:53 AM
The MIB holds the key. In this case the index for the stpxFastStartPortTable is stpxFastStartPortIndex. The description of stpxFastStartPortIndex says that this is the same as the dot1dBasePort number from the BRIDGE-MIB. This bridge port can be mapped back to an ifIndex using the dot1dBasePortIfIndex object in the dot1dBasePortTable from the BRIDGE-MIB.
So, you should expect to see (for example, this may not be EXACTLY what you see):
BRIDGE-MIB::dot1dBasePortIfIndex.513 = 311
In this case, the stpxFastStartPortIndex of 513 maps to ifIndex 311.
05-15-2007 06:03 AM
Many thanks for your quick reply. It answers perfectly our needs.
Regards/Ludovic.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: