Clearing VRRPv2 statistics

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 vrrp command with a virtual-group ID.
    device# show vrrp 1
    
    Total number of VRRP session(s)   : 2
    
    VRID 1
      Interface: Ve 10;  Ifindex: 1207959562
      Mode: VRRP
      Admin Status: Enabled
      Description :
      Address family: IPv4
      Version: 2
    .
    .
    .
    Statistics:
        Advertisements: Rx: 0, Tx: 60
        Neighbor Advertisements: Tx: 30
    
    
  3. Enter the clear vrrp statistics command.
    device# clear vrrp statistics
    
  4. Enter the show vrrp command with a virtual-group ID.
    device# show vrrp 1
    
    Total number of VRRP session(s)   : 2
    
    VRID 1
      Interface: Ve 10;  Ifindex: 1207959562
      Mode: VRRP
      Admin Status: Enabled
      Description :
      Address family: IPv4
      Version: 2
    .
    .
    .
    Statistics:
        Advertisements: Rx: 0, Tx: 6
        Neighbor Advertisements: Tx: 3
    
    In this show output after the clear 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 (6 transmissions instead of 60 transmissions) than in the initial show vrrp command output.