Clearing VRRPv2 statistics
VRRPv2 session counters can be cleared using a CLI command.
Ensure that VRRPv2 or VRRP-Ev2 is configured and enabled in your network.
show command is entered before and after the
clear command.
- Enter the
endorexitcommand to return to privileged EXEC mode. - Enter the
show ip vrrp statisticscommand for Ethernet interface 1/1/5.device# show ip vrrp statistics ethernet 1/1/5 Interface 1/1/5 ---------------- VRID 2 - number of transitions to backup state = 1 - number of transitions to master state = 1 - total number of vrrp packets received = 0 . received backup advertisements = 0 . received packets with zero priority = 0 . . . - total number of vrrp packets sent = 2004 . sent backup advertisements = 6 . sent packets with zero priority = 0 - received neighbor solicitation packets dropped = 0
- Enter the
clear ip vrrp statisticscommand. - Enter the
show ip vrrp statisticscommand for Ethernet interface 1/1/5.device# show ip vrrp statistics ethernet 1/1/5 Interface 1/1/5 ---------------- VRID 2 - number of transitions to backup state = 0 - number of transitions to master state = 0 - total number of vrrp packets received = 0 . received backup advertisements = 0 . received packets with zero priority = 0 . . . - total number of vrrp packets sent = 8 . sent backup advertisements = 0 . sent packets with zero priority = 0 - received neighbor solicitation packets dropped = 0
In this show output for a specified interface after theclear ip vrrp statisticscommand has been entered, you can see that the statistical counters have been reset. Although some of the counters are showing numbers because VRRP traffic is still flowing, the numbers are much lower (8 transmissions instead of 2004 transmissions) than in the initialshow ip vrrp statisticscommand output.