< Home

reset qos statistics

Function

The reset qos statistics command clears traffic statistics on an interface where rate limiting is performed in the inbound direction.

Format

reset qos statistics interface interface-type interface-number inbound

reset qos statistics inbound all

Parameters

Parameter

Description

Value

interface interface-type interface-number

Clears traffic statistics on a specified interface where rate limiting is performed.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

inbound

Clears traffic statistics in the inbound direction.

-

all

Clears traffic statistics on all interfaces where rate limiting is performed.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before re-collecting traffic statistics on an interface where rate limiting is performed in the inbound direction, run the reset qos statistics command to clear existing traffic statistics. Then run the display qos statistics command to view the traffic statistics.

Prerequisites

The qos lr inbound command has been executed to configure rate limiting in the inbound direction on an interface.

Precautions

If the qos lr inbound command is not used, the system displays the following error message when you run the reset qos statistics interface interface-type interface-number inbound command:
Error: There is no rate limited configuration inbound in the interface.

The cleared statistics cannot be restored. Exercise caution when you use this command.

Example

# Clear traffic statistics on GE0/0/1 where rate limiting is performed in the inbound direction.

<HUAWEI> reset qos statistics interface gigabitethernet 0/0/1 inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic