< Home

reset counters if-mib interface

Function

The reset counters if-mib interface command clears the interface traffic statistics in the Network Management System (NMS).

Format

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

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of the interface whose traffic statistics in the NMS need be cleared. If the interface type and number are not specified, the traffic statistics of all interfaces in the NMS are cleared.

Views

User view

Default Level

3: Management level

Usage Guidelines

Before collecting the traffic on a specific interface within a period in the NMS, clear the existing traffic information about this interface in the NMS.

Refer to the relevant NMS manual to learn how to view the interface traffic statistics in the NMS.

The command cannot clear the traffic statistics on a virtual-IF interface.

Interface traffic statistics in the NMS are cleared after you run the reset counters if-mib interface command. So, confirm the action before you use the command.

Running the reset counters if-mib interface command does not affect the interface traffic statistics displayed by using the display interface command. To clear the interface statistics displayed through the display interface command, run the reset counters interface command.

Example

# Clear the traffic statistics of GigabitEthernet 0/0/1 in the NMS.

<sysname> reset counters if-mib interface GigabitEthernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >