Problem
You want to debug an HSRP problem.
Solution
To debug all HSRP error events, use the following command:
Router2#debug standby errors
The events keyword will display information about HSRP events:
Router2#debug standby events
With the packets keyword, you can look at the contents of all HSRP packets:
Router2#debug standby packets
You can use the terse keyword to see a short form of all HSRP errors, events, and packets:
Router2#debug standby terse
Discussion
HSRP is not a very complex protocol, and it is relatively simple to configure, so network engineers generally don't find that they need sophisticated debugging tools that are available with other protocols. Consequently, HSRP debugging facilities were relatively limited until IOS level 12.1(0.2), when the enhanced debugging described here was introduced. However, these features can be useful when you are faced with strange HSRP problems, such as general instability or multiple active routers.
We don't recommend starting with a packet level debug for anything because it can easily overwhelm the router. In the case of HSRP, which should only send a Hello packet every three seconds by default, this shouldn't be quite as dangerous as for many other protocols.
The debug standby terse command is probably the most useful option because it gives a short form output of all HSRP errors, events, and packets:
Router1#debug standby terse HSRP: HSRP Errors debugging is on HSRP Events debugging is on (protocol, redundancy, track) HSRP Packets debugging is on (Coup, Resign) Router1#
From here, if you see a Coup problem, for example, you might want to turn off the terse option and replace it with a full packet-level debug. Conversely, if you see that there is an issue with interface tracking, you might want to replace the terse option with the event option to get greater detail.
Router Configuration and File Management
Router Management
User Access and Privilege Levels
TACACS+
IP Routing
RIP
EIGRP
OSPF
BGP
Frame Relay
Handling Queuing and Congestion
Tunnels and VPNs
Dial Backup
NTP and Time
DLSw
Router Interfaces and Media
Simple Network Management Protocol
Logging
Access-Lists
DHCP
NAT
First Hop Redundancy Protocols
IP Multicast
IP Mobility
IPv6
MPLS
Security
Appendix 1. External Software Packages
Appendix 2. IP Precedence, TOS, and DSCP Classifications
Index