The reset traffic policy statistics command clears the traffic policy statistics on a specified interface, BD.
The reset traffic policy statistics vxlan-mode command clears statistics about the traffic policy in VXLAN mode.
For NetEngine 8000 F1A, NetEngine 8000 F2A:
reset traffic policy [ [ name ] policy-name ] statistics bridge-domain bdid { inbound | outbound }
reset traffic policy [ name policy-name ] statistics { bridge-domain bdid vxlan-mode | vpn-instance vpn-instance-name vxlan-mode } { inbound | outbound }
reset traffic policy statistics evpn-instance evpn-instance-name inbound
reset traffic policy [ name policy-name ] statistics { vsi vsi-instance-name [ ac-mode ] | vpn-instance vpn-instance-name } { inbound | outbound }
For NetEngine 8000 F1A, NetEngine 8000 F2A:
reset traffic policy statistics global-acl [ slot slot-id ] { inbound | outbound }
reset traffic policy [ name policy-name ] statistics { vsi vsi-instance-name | vpn-instance vpn-instance-name } slot slot-id { inbound | outbound }
For NetEngine 8000 F1A:
reset traffic policy name policy-name statistics ucl [ slot slot-id ] { inbound | outbound }
For NetEngine 8000 F1A:
reset traffic policy statistics ucl [ slot slot-id ] { inbound | outbound }
For NetEngine 8000 F1A, NetEngine 8000 F2A:
reset traffic policy [ name policy-name ] statistics { vsi vsi-instance-name | vpn-instance vpn-instance-name } { inbound | outbound }
For NetEngine 8000 F1A:
reset traffic policy statistics accounting-service [ slot slot-id ] { inbound | outbound }
For NetEngine 8000 F1A, NetEngine 8000 F2A:
reset traffic policy [ name policy-name ] statistics { vsi vsi-instance-name [ ac-mode ] | vpn-instance vpn-instance-name } slot slot-id { inbound | outbound }
Parameter | Description | Value |
---|---|---|
slot slot-id |
Specifies the slot ID of a board. |
The value is an integer. The value range varies according to devices. |
inbound |
Clears the statistics about the traffic policy applied to the interface in the inbound direction. |
- |
outbound |
Clears the statistics about the traffic policy applied to the interface in the outbound direction. |
- |
name policy-name |
Specifies the name of policy. |
The value is a string of 1 to 127 characters. |
bridge-domain bdid |
Specifies the ID of a bridge domain. |
The value is an integer in the range 1 to 16777215. |
vxlan-mode |
Clears statistics about the traffic policy in VXLAN mode. |
- |
vpn-instance vpn-instance-name |
Vpn name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
evpn-instance evpn-instance-name |
Specifies the name of an EVPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
vsi vsi-instance-name |
Vsi name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
ac-mode |
Indicates AC-side traffic policies. |
- |
global-acl |
Clears the statistics about the global traffic policy. In VS mode, this parameter applies only to admin VS and cannot be configured in other VSs. This parameter takes effect on all VSs. |
- |
ucl |
Clears statistics about a global UCL-based traffic policy. |
- |
accounting-service |
Clears the statistics about the DAA service. |
- |
Usage Scenario
For a Layer 3 interface, you can clear the statistics about the traffic policy on its sub-interface.
This command clears all the traffic policy statistics on an interface including the historical data. If the traffic policy is a shared policy, this command clears the statistics on all the interfaces where the specified traffic policy is applied in the specified direction. If a traffic policy of cascaded MF classification have been applied on an interface, the command reset traffic policy <policy-name> statistics can clear the specified traffic policy statistics on an interface.<HUAWEI> reset traffic policy name 1 statistics bridge-domain 1 vxlan-mode inbound
<HUAWEI> reset traffic policy name 1 statistics bridge-domain 1 inbound
<HUAWEI> reset traffic policy statistics evpn-instance EVPN1 inbound
<HUAWEI> reset traffic policy statistics vsi 1 ac-mode inbound
<HUAWEI> reset traffic policy statistics vsi 1 inbound
<HUAWEI> reset traffic policy statistics vpn-instance VPN1 inbound
<HUAWEI> reset traffic policy statistics vpn-instance VPN1 vxlan-mode outbound