02-13-2011 07:09 AM - edited 03-06-2019 03:31 PM
Hello
I have two switches stacked, seen with the same IP. How can I detect that one of them is down? Ping will work even with one switch down, so maybe there is some OID of that?
Thanks in advance,
JM
Solved! Go to Solution.
02-13-2011 09:07 AM
Currently we use this OID 1.3.6.1.4.1.9.9.500.1.2.1.1.6 for status of a switch in a stack. Instace 1001 is switch 1, 2001 is switch 2, etc..
A value of 4 means the switch is Up.
So, 1.3.6.1.4.1.9.9.500.1.2.1.1.6.1001 = 4 means the switch is up and connected to the stack.
Another way we used to do it is to use the OID for serial numbers in a switch stack. When the right serial number for a switch was missing we knew the switch was down. That way just proved to me more difficult in managing the monitoring when a switch would have to be replaced or added.
02-13-2011 09:53 AM
You could try the OID
cswSwitchState(1.3.6.1.4.1.9.9.500.1.2.1.1.6) of the
CISCO-STACK-WISE-MIB to monitor the state of individual members of the
stack. In case a switch is removed from the stack, it would return a value of
11(Removed) for the corresponding switch and for switches active in the
stack, it would return 4(Ready). Also the notification indicates the switch
number that has been removed from the stack
02-13-2011 08:05 AM
You have access to the switch console?...in that case you can use "sh switch" command on this switch.
02-13-2011 08:38 AM
Thanks for the rapid answer,
unfortunately it does not solve the problem. I am working on a network monitoring system and I want to check the state of the switches in the network. Normally, ping would do the job, and for interfaces I use snmp. But how to check a state of a single switch in a stack?
02-13-2011 09:07 AM
Currently we use this OID 1.3.6.1.4.1.9.9.500.1.2.1.1.6 for status of a switch in a stack. Instace 1001 is switch 1, 2001 is switch 2, etc..
A value of 4 means the switch is Up.
So, 1.3.6.1.4.1.9.9.500.1.2.1.1.6.1001 = 4 means the switch is up and connected to the stack.
Another way we used to do it is to use the OID for serial numbers in a switch stack. When the right serial number for a switch was missing we knew the switch was down. That way just proved to me more difficult in managing the monitoring when a switch would have to be replaced or added.
09-25-2018 07:33 AM
Hi,
Could you please explain below numbers, These combination of dotted numbers called object identifiers(OID)
1.3.6.1.4.1.9.9.500.1.2.1.1.6.1001
1 -
3 -
6 -
1 -
and so on.
Or is it default command from cisco to check the status of the switch in the stack..
Please revert as a earliest....
02-13-2011 09:53 AM
You could try the OID
cswSwitchState(1.3.6.1.4.1.9.9.500.1.2.1.1.6) of the
CISCO-STACK-WISE-MIB to monitor the state of individual members of the
stack. In case a switch is removed from the stack, it would return a value of
11(Removed) for the corresponding switch and for switches active in the
stack, it would return 4(Ready). Also the notification indicates the switch
number that has been removed from the stack
02-13-2011 10:27 PM
Thanks guys, this OID should do the trick!
02-14-2011 02:35 AM
Hmm, it turned out that it does not work completely well. I see first switch but I cannot see the second switch in the SNMP:
check_snmp --hostname 00.00.00.00 --community public --oid 1.3.6.1.4.1.9.9.500.1.2.1.1.6.1001
SNMP OK - 4 | iso.3.6.1.4.1.9.9.500.1.2.1.1.6.1001=4
check_snmp --hostname 00.00.00.00 --community public --oid 1.3.6.1.4.1.9.9.500.1.2.1.1.6.1002
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.9.9.500.1.2.1.1.6.1002
02-14-2011 05:04 AM
OK, now I got it, for the second stack it sould be (...).2001 and I put (...).1002
Thanks,
JM
07-02-2020 02:44 AM - edited 07-02-2020 02:45 AM
Given OID is working to get stack status. It is working fine for 3850.
Could you please provide me for 3750x fine stack status ?
I want to monitor if switch gets removed from stack.
Many Thanks !!
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