cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
17249
Views
20
Helpful
9
Replies

Cisco 3750 stack - OID to check a single switch down

jakub.mikians
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

Nick Ciesinski_
Level 4
Level 4

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.

View solution in original post

kapathak
Cisco Employee
Cisco Employee
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

View solution in original post

9 Replies 9

ankugarg
Level 3
Level 3

You have access to the switch console?...in that case you can use "sh switch" command on this switch.

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?

Nick Ciesinski_
Level 4
Level 4

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.

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....

 

kapathak
Cisco Employee
Cisco Employee
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

Thanks guys, this OID should do the trick!

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

As you can see, the 1001 is OK, but the 1002 is not found... what can be wrong? Any hints?

OK, now I got it, for the second stack it sould be (...).2001 and  I put (...).1002

Thanks,

JM

Spoiler
stack status OID for cisco 3750X-48T-S

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 !!

Review Cisco Networking for a $25 gift card