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.

To determine the effect of clearing the VRRP statistics, an appropriate show command is entered before and after the clear command.
  1. Enter the end or exit command to return to privileged EXEC mode.
  2. Enter the show ip vrrp statistics command 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
    
  3. Enter the clear ip vrrp statistics command.
    device# clear ip vrrp statistics
    
  4. Enter the show ip vrrp statistics command 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 the clear ip vrrp statistics command 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 initial show ip vrrp statistics command output.