Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a Cisco 2960S series switch which is a stacked switch with multiple physical switches managed as a single unit. A single management IP is assigned to the entire stacked switch.

Therefore, if one member of a switch stack fails, the IP address is still pingable. So we need to check whether any one of the individual switch in the stack has failed.

Can anyone highlight how we can check the individual switch failure using SNMP ?

share|improve this question

You could try the following nagios check:

As always, it is best to test that the check does what you want by causing a failure when possible. This check is based on the following oids (Taken from the script itself):

my $cisco_stack_table =     "";
my $cisco_stack_state =     "";
my $cisco_stack_ring =      "";

In particular, the description of cisco_stack_state (cswSwitchState according to the mib and of which is part of a table, so one for each switch) is:

The current state of a switch:

waiting - Waiting for a limited time on other switches in the stack to come online.

progressing - Master election or mismatch checks in progress.

added - The switch is added to the stack.

ready - The switch is operational.

sdmMismatch - The SDM template configured on the master is not supported by the new member.

verMismatch - The operating system version running on the master is different from the operating system version running on this member.

featureMismatch - Some of the features configured on the master are not supported on this member.

newMasterInit - Waiting for the new master to finish initialization after master switchover (Master Re-Init).

provisioned - The switch is not an active member of the stack.

invalid - The switch's state machine is in an invalid state.

removed - The switch is removed from the stack.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.