< Home

reset vrrp statistics

Function

The reset vrrp statistics command clears statistics about received and sent packets of VRRP groups.

Format

reset vrrp [ interface interface-type interface-number ] [ vrid virtual-router-id ] statistics

Parameters

Parameter Description Value
interface interface-type interface-number Clears statistics about sent and received packets of all VRRP groups on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
If this parameter is not specified, statistics about sent and received packets of all VRRP groups or a specified VRRP group on the device are cleared.

-

vrid virtual-router-id Clears statistics about sent and received packets of a specified VRRP group. If this parameter is not specified, statistics about sent and received packets of all VRRP groups or a specified VRRP group on the device are cleared.

The value is an integer that ranges from 1 to 255.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before recollecting statistics about VRRP Advertisement packets, run the reset vrrp statistics command to clear existing statistics.

Precautions

The cleared statistics cannot be restored. Exercise caution when executing the reset vrrp statistics command.

Example

# Clear statistics about sent and received packets of VRRP group 1 on VLANIF100.

<HUAWEI> reset vrrp interface vlanif 100 vrid 1 statistics

# Clear statistics about all the packets of VRRP group 1.

<HUAWEI> reset vrrp vrid 1 statistics

# Clear statistics about packets of all VRRP groups on the switch.

<HUAWEI> reset vrrp statistics
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >