< Home

reset counters if-mib interface

Function

The reset counters if-mib interface command clears 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 ]
Clears traffic statistics on a specified interface in the NMS.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If an interface type is specified but no interface number is specified, traffic statistics on all interfaces of the specified type are cleared.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

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

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

Precautions

  • If no interface type and number are specified, traffic statistics of all interfaces in the NMS are cleared.

  • After you run the reset counters if-mib interface command, traffic statistics on all interfaces in the NMS are cleared. Therefore, confirm the action before you run this command.

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

Example

# Clear traffic statistics on GE0/0/1 in the NMS.

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