All MIBs › CISCO-HSRP-MIB › cHsrpStateChange
cHsrpStateChange
Module: CISCO-HSRP-MIB
OID (symbolic): CISCO-HSRP-MIB::cHsrpStateChange
OID (numeric): 1.3.6.1.4.1.9.9.106.2.0.1
Node type: NOTIFICATION-TYPE
Description: A cHsrpStateChange notification is sent when a cHsrpGrpStandbyState transitions to either active or standby state, or leaves active or standby state. There will be only one notification issued when the state change is from standby to active and vice versa.
Examples
Send this trap to an SNMP manager — replace <manager> with the IP or hostname of your monitoring server (SNMPv2c):
snmptrap -v2c -c public <manager> '' CISCO-HSRP-MIB::cHsrpStateChange snmptrap -v2c -c public <manager> '' 1.3.6.1.4.1.9.9.106.2.0.1
Listen for incoming traps on the manager host (-f keeps it in the foreground, -Lo prints to stdout — useful for testing):
snmptrapd -f -Lo -c /dev/null authCommunity log public
Example snmptrapd log entry:
zoo11-linux.zoo [UDP: [192.168.30.111]:59367->[192.168.30.10]:162]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (382228967) 44 days, 5:44:49.67 SNMPv2-MIB::snmpTrapOID.0 = OID: CISCO-HSRP-MIB::cHsrpStateChange
Start monitoring Cisco router / Layer-3 switch (HSRP) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the CISCO-HSRP-MIB::cHsrpStateChange OID value, configure state conditions and alerts, and monitor any Cisco router / Layer-3 switch (HSRP) from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.9 | cisco | CAT2600-MIB |
| 1.3.6.1.4.1.9.9 | ciscoMgmt | CISCO-SMI |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.9.9.106 | ciscoHsrpMIB | CISCO-HSRP-MIB |
| 1.3.6.1.4.1.9.9.106.2 | cHsrpMIBNotificationPrefix | CISCO-HSRP-MIB |
| 1.3.6.1.4.1.9.9.106.2.0 | cHsrpMIBNotifications | CISCO-HSRP-MIB |
| 1.3.6.1.4.1.9.9.106.2.0.1 | cHsrpStateChange | CISCO-HSRP-MIB |