Cisco Stacked switches?

Alex Macdonel
Tera Expert

We're currently trying to quickly populate our asset records through discovery and we hit a snag when it comes to Cisco stacked switches; discovery only finds the primary switch but we'd like to discover all members of the stack.

I found on share the following post - Custom Probe/Sensor - Cisco Stacked Switches (member info) but it assumes you know how discovery works and I haven't been able to make it work, the error message I got is: No sensors defined

How do you deal with stacked switches? were you able to make the shared probe/sensor work? and if you did, how?

Thanks!

19 REPLIES 19

I've had a little time to play with this and trying to work with our Network team. It seems our stack module's sysNames are not set which would prove difficult resolving your sensor. Hopefully they can figure out what configurations need to be set.


Hi Andrew,



sysName is found during SNMP - Classify, way before the 2 new probes get triggered.   So you would have had this issue before the new customization.  



Were you able to discover these or any cisco switches prior?



Thanks,


-Ryan


Sorry, I meant the moduleNames are blank and not the Cisco stack's sysName. Below is an example payload of one of our Cisco Catalyst 2960S.



<iso oid="1">


<org oid="1.3">
<dod oid="1.3.6">
<internet oid="1.3.6.1">
<private oid="1.3.6.1.4">
<enterprises oid="1.3.6.1.4.1">
<cisco oid="1.3.6.1.4.1.9">
<workgroup oid="1.3.6.1.4.1.9.5">
<ciscoStackMIB oid="1.3.6.1.4.1.9.5.1">
<moduleGrp oid="1.3.6.1.4.1.9.5.1.3">
<moduleEntry instance=".1">
<moduleSerialNumberString type="SnmpOctetString">
FOC1728Y1DA


</moduleSerialNumberString>

<moduleModel type="SnmpOctetString">


WS-C2960S-24PD-L


</moduleModel>

<moduleName type="SnmpOctetString"/>


</moduleEntry>

<moduleEntry instance=".2">


<moduleSerialNumberString type="SnmpOctetString">
FOC1733V3KE


</moduleSerialNumberString>

<moduleModel type="SnmpOctetString">


WS-C2960S-24PD-L


</moduleModel>

<moduleName type="SnmpOctetString"/>


</moduleEntry>
</moduleGrp>
</ciscoStackMIB>
</workgroup>
</cisco>
</enterprises>
</private>
</internet>
</dod>
</org>

</iso>


Ah I see - I just looked at the Cisco - Member sensor, I ended up not using/needing moduleName. The sensor should work regardless - however if you do not want to see a blank entry in the payload, you can remove the moduleName from the SNMP Fields section of that probe.



Are you seeing any specific errors?


Hi Ryan,



I installed and was able to discover Cisco Catalyst 3700's Stacks .



A behavior that is somewhat undesirable is that the models for discovered stack members are not always correct. For example, I scanned a four switch stack and I was expecting two switches to be model WS-C3750X-48T-S, but one was discovered as WS-C3750X-48.This is something I've seen before so nothing to do with your code.



I'm also trying to figure out how to add other Stacks like the 2900's. I added the following OID: 1.3.6.1.4.1.9.1.1208 to the Cisco Module Switch classifier (SNMP OID Classification) but this didn't work. Is there anything else that needs to be done or could it be that the OID is not correct? What do you recommend



Excellent work and thanks for sharing it!