How to monitor Cisco Catalyst Stack.

1 - The most easiest and stupid way - routed interface on each member

If you have simple NMS system which uses ICMP to get a node status - you have to add each Stack Member as an individual node, each node must have its own IP address. To get it done, you must configure routed interface on each member. Some notes:
• It’s impossible in case of L2 switches like Catalyst 2960-S.
• It’s impossible to bring not connected interface UP (it is possible on Cisco Router), thus you need to connect it to somewhere OR Create a Loopback Plug for an RJ-45 Ethernet Interface - cross pin 1 (TX+) and pin 3 (RX+) together, and cross pin 2 (TX-) and pin 6 (RX-) together. Moreover, you must disable “keepalive” feature on those interfaces to avoid the following behavior:

*Mar  1 01:05:41.591: %ETHCNTR-3-LOOP_BACK_DETECTED: Loop-back detected on GigabitEthernet1/0/1.
*Mar  1 01:05:41.591: %PM-4-ERR_DISABLE: loopback error detected on Gi1/0/1, putting Gi1/0/1 in err-disable state

2 - Using SNMP Polling

2.1 Monitor StackSub Interfaces

You can monitor the status of StackSub Interfaces that shows you the status of the nodes, but indirectly (anyways, it’s better than nothing).

2.2 Monitor member status - the best way

We can use CISCO-STACKWISE-MIB::cswSwitchState:

Values:
1 : waiting
2 : progressing
3 : added
4 : ready
5 : sdmMismatch
6 : verMismatch
7 : featureMismatch
8 : newMasterInit
9 : provisioned
10 : invalid
11 : removed

snmpwalk -c 'COMMUNITY' -v 2c -On 192.168.1.1 1.3.6.1.4.1.9.9.500.1.2.1.1.6
.1.3.6.1.4.1.9.9.500.1.2.1.1.6.1001 = INTEGER: 4
.1.3.6.1.4.1.9.9.500.1.2.1.1.6.2001 = INTEGER: 11

• Start > “Universtal Device Poller” > “New Universal Device Poller”
• OID: 1.3.6.1.4.1.9.9.500.1.2.1.1.6
• Click on “Browse MIB Tree”. It might takes some time, up to 10 seconds…
• Choose any Cisco Catalyst Stack and press “Test”. Normally, you will get a table. If yo get it - hit “Select”.
• Name: cswSwitchState (to keep it short)
• Hit “Show Advanced Options” > Format: Enumeration > Map Values > Create a table (as listed below) to map raw digits to correspond state.
• Keep Historical Data: No.
• Group: Change to “Cisco”, then press “Next”.
• Mark any Cisco Catalyst Stack and hit “Test” to see the result. You will get like: 4, 4, 4, 4. Click “Next”.
• Choose “Use labels from a table column” > pick any Cisco Catalyst Stack and hit “Test”.
• Choose the 1st one column - “cswSwitchNumCurrent” > “Next”.
• Select “Table” for “Node Details - Summary” > “Finish”.

3 - Using SNMP Trap messages

Additional configuration on NMS and Switch side required…

4 - Using SYSLOG messages

Not all NMS systems are able to utilize this method…

Admin area