reset vrrp statistics

Function

The reset vrrp statistics command clears statistics about the VRRP Advertisement packets sent and received by a VRRP group.

Format

reset vrrp [ interface { interface-name | interface-type interface-number } ] [ vrid virtual-router-id ] statistics

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies the type and number of an interface.

The interface type can only be Ethernet.

vrid virtual-router-id

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp execute

Usage Guidelines

Usage Scenario

During troubleshooting, you need to run the reset vrrp statistics command to clear previous statistics before collecting statistics about the received and sent VRRP Advertisement packets. When running the reset vrrp statistics command, note the following:

  • If only the ifType and ifNum parameters are specified, statistics about VRRP Advertisement packets of all VRRP groups on the specified interface are cleared.
  • If only the vrid-Value parameter is specified, statistics about VRRP Advertisement packets of the specified VRRP group on all interfaces are cleared.
  • If none of the ifType, ifNum, or vrid-Value parameter is specified, statistics about VRRP Advertisement packets of all VRRP groups on all interfaces are cleared.

Configuration Impact

After the reset vrrp statistics command is run, statistics about the received and sent VRRP Advertisement packets are cleared.

Precautions

Statistics about VRRP Advertisement packets cannot be restored after being cleared. Therefore, exercise caution when running this command.

Example

# Clear statistics about VRRP Advertisement packets of all VRRP groups.
<HUAWEI> reset vrrp statistics
# Clear statistics about VRRP Advertisement packets of VRRP group 1 on GE 0/1/0.
<HUAWEI> reset vrrp interface GigabitEthernet 0/1/0 vrid 1 statistics
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >