reset traffic policy statistics interface

Function

The reset traffic policy statistics interface command clears the traffic policy statistics on a specified interface.

Format

reset traffic policy [ [ name ] policy-name ] statistics interface { interface-name | interface-type interface-number } [ vlan vlan-id | pe-vid pe-vid ce-vid ce-vid | vid vid | ce-vid ce-vid | vid vid ce-vid ce-vid ] { inbound | outbound }

Parameters

Parameter Description Value
name policy-name

Specifies the name of policy.

The value is a string of 1 to 127 case-sensitive characters.

interface interface-type interface-number

Specifies the type and the number of an interface.

-

interface-name

Specifies the name of an interface.

-

vlan vlan-id

Specifies a VLAN ID.

The value is an integer in the range 1 to 4094.

pe-vid pe-vid

Specifies a PE VLAN ID.

The value is an integer in the range 1 to 4094.

ce-vid ce-vid

Specifies a CE VLAN ID.

The value is an integer in the range 1 to 4094.

vid vid

Specifies the external VLAN ID of a specified interface whose traffic policy statistics is cleared.

The value is an integer in the range 1 to 4094.

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.

-

Views

All views

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos execute

Usage Guidelines

Usage Scenario

This command can be used on:

  • GE interface
  • GE sub-interface
  • Eth-Trunk interface
  • Eth-Trunk sub-interface
  • QinQ termination sub-interface
  • Dot1q termination sub-interface
  • QinQ stacking sub-interface

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.

Example

# Clear the traffic policy statistics on GE 0/1/0 in the inbound direction.
<HUAWEI> reset traffic policy statistics interface GigabitEthernet 0/1/0 inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >