reset traffic-statistics l2vpn pw

Function

The reset traffic-statistics l2vpn pw command clears VPWS PW traffic statistics.

Format

reset traffic-statistics l2vpn pw { all | { interface { interface-name | interface-type interface-number } [ secondary | bypass ] } }

Parameters

Parameter Description Value
all

Clears the traffic statistics about all VPWS PWs.

-

interface interface-type interface-number

Clears traffic statistics about a VPWS PW on the specified interface.

-

secondary

Clears traffic statistics about the secondary VPWS PW.

-

bypass

Clears traffic statistics about the bypass VPWS PW.

-

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn execute

Usage Guidelines

Usage Scenario

The system starts to collect VPWS PW traffic statistics after the function to collect VPWS PW traffic statistics is enabled. To clear these traffic statistics, run the reset traffic-statistics l2vpn pw command. To view VPWS PW traffic statistics collected during a specified period of time for the network monitoring or troubleshooting purpose, use the reset traffic-statistics l2vpn pw and display traffic-statistics l2vpn pw commands together.

Configuration Impact

After the reset traffic-statistics l2vpn pw command is run, the system clears existing VPWS PW traffic statistics and recollects VPWS PW traffic statistics.

Example

# Clear traffic statistics about the bypass VPWS PW on GE 0/1/16.
<HUAWEI> reset traffic-statistics l2vpn pw interface GigabitEthernet 0/1/16 bypass
# Clear traffic statistics about the secondary VPWS PW on GE 0/1/8.
<HUAWEI> reset traffic-statistics l2vpn pw interface GigabitEthernet 0/1/8 secondary
# Clear traffic statistics about the primary VPWS PW on GE 0/1/0.
<HUAWEI> reset traffic-statistics l2vpn pw interface GigabitEthernet 0/1/0
# Clear traffic statistics about all VPWS PWs.
<HUAWEI> reset traffic-statistics l2vpn pw all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >