reset counters interface

Function

The reset counters interface command deletes traffic statistics on an interface.

Format

reset counters [ if-mib ] interface [ interface-type [ interface-number ] | interface-name ]

Parameters

Parameter Description Value
if-mib

Indicates IF-MIB statistics on an interface.

-

interface-type interface-number

Specifies the type and number of an interface.

If interface-type interface-num parameter is not specified, traffic statistics on all interfaces are deleted.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr execute

Usage Guidelines

Usage Scenario

Before collecting traffic statistics on a specific interface within a specific period of time, delete the existing traffic statistics on this interface.

For details on how to view the interface traffic statistics on the NMS, see the NMS documentation.

Precautions

Interface traffic statistics on the NMS are deleted and cannot be restored after you run the reset counters if-mib interface command. Therefore, confirm the action before you use the command.

Running the reset counters if-mib interface command does not affect the interface traffic statistics displayed using the display interface command.

This command can clear statistics on a GMPLS-UNI tunnel interface only after statistics of all interfaces on the device are cleared or statistics of the physical outbound interface of the GMPLS-UNI tunnel are cleared.

Example

# Delete traffic statistics on all interfaces.
<HUAWEI> reset counters interface
# Delete traffic statistics on GE 0/1/0 from the NMS.
<HUAWEI> reset counters if-mib interface GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >