< Home

reset counters interface (User view)

Function

The reset counters interface command deletes the interface statistics displayed by the display interface command.

Format

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

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of an interface. If no interface-type interface-number is specified, statistics about all interfaces are cleared. -

Views

User view

Default Level

3: Management level

Usage Guidelines

If you require the traffic statistics during a certain period on an interface, clear the original statistics before the recounting starts.

The reset counters interface command clears the last part of the display interface command output, that is, the statistic of packets received by or sent from the interface.

Example

# Clear statistics about all interfaces.

<sysname> reset counters interface
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >