12-10-2012 02:26 AM
Hi Community,
I would like to be able to query the dot1dStpPortState obect on the Catalyst 2960-S on our LAN . Im running firmware
c2960s-universalk9-mz.122-55.SE2.bin and according to the Cisco SNMP Object Navigator the object is supported (via the BRIDGE-MIB).
However when i query using snmpwalk from my workstation :
snmpwalk -v 2c -c bic-zua-ro 10.u.y.x 1.3.6.1.2.1.17.2.15.1.3
I recieve and error .
SNMPv2-SMI::mib-2.17.2.15.1.3 = No Such Instance currently exists at this OID
For the sake of comparison, querying our 4700 :
snmpwalk -v 2c -c bic-zua-ro 10.u.y.x 1.3.6.1.2.1.17.2.15.1.3
returns (as expected, cropped)
SNMPv2-SMI::mib-2.17.2.15.1.3.1 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.3 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.40 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.67 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.104 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.257 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.258 = INTEGER: 5
SNMPv2-SMI::mib-2.17.2.15.1.3.259 = INTEGER: 5
Is there some special configuration i need to do on our 2960's. The only snmp related settings i can see in the running config is snmp-server community. In this case :
snmp-server community bic-zua-ro RO
Thanks in advance for any comments/ assistance.
Rgds
Ian
12-10-2012 03:30 AM
Share your snmp configuration (show run | incl snmp) there might be a view. It should work as BRIDGE-MIB is supported.
You can try to walk the complete BRIDGE-MIB. Also need to be aware that dot1dStpPortTable is only populated for interfaces that have ifOperStatus as up.
You can also try to check it via # portAdditionalOperStatus.
-Thanks
12-10-2012 04:23 AM
Hi Vinod,
Wow, thanks for your prompt reply. Output from filtered running config pasted below
TVS-Stack17#sh run | inclu snmp
snmp-server community bic-zua-ro RO
Interestingly when i walk the entire dot1dBridge (1.3.6.1.2.1.17) i recieve lots of data from both dot1dBase (1) and dot1dTp (4) but nothing from dot1dStp (2)
I tried portAdditionalOperStatus and did not recieve any response but got lots of data from its patent portEntry (1)
Running show spann on the 2960 stack i can see various ports in forwarding and blocking start as i would expect.
Rgds,
Ian
12-12-2012 08:37 AM
Vinod,
Thanks for your help. I just realised that i needed to put a valid vlan number before the communitry string. e.g. 10@bic-zua-ro
Rgds,
Ian
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