No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
reset counters interface

reset counters interface

Function

The reset counters interface command clears traffic statistics about a specified interface.

Format

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

Parameters

Parameter

Description

Value

interface-type [ interface-number ]

Clears traffic statistics on a specified interface.
  • 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 an interface within a certain period, run the reset counters interface command to clear existing traffic statistics.

Precautions

  • Statistics cannot be restored after being cleared. Therefore, exercise caution before clearing the statistics.

  • Traffic accounting is based on the packet statistics on an interface. The clearing of the packet statistics on an interface by using the reset counters interface command affects the traffic accounting result. Therefore, do not randomly clear the packet statistics on an interface in a normal application environment.

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

  • Running the reset counters interface command clears the statistics about received and transmitted packets on the interface in a certain period.. The certain period is configured by using the set flow-stat interval interval-time command,

Example

# Clear traffic statistics on all interfaces.

<Huawei> reset counters interface

# Clear traffic statistics on VLANIF10.

<Huawei> reset counters interface vlanif 10
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 88853

Downloads: 121

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next