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

Command Reference

S7700 and S9700 V200R011C10

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).
Statistics Configuration Commands

Statistics Configuration Commands

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

statistic enable (traffic behavior view)

Function

The statistic enable command enables the traffic statistics function in a traffic behavior.

The undo statistic enable command disables the traffic statistics function in a traffic behavior.

By default, the traffic statistics function in a traffic behavior is disabled.

Format

statistic enable

undo statistic enable

Parameters

None

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To view the statistics on a traffic policy, you can use the statistic enable command to enable the statistics function. After the statistics function is enabled, you can use the display traffic policy statistics command to view the statistics.

Precautions

SA cards of the S series can collect traffic statistics based on packets only, and all other cards can collect traffic statistics based on packets and bytes.

For the X series cards, if a traffic policy defining traffic statistics is applied to an Eth-Trunk in the outbound direction, traffic statistics does not take effect for the packets sent by the CPU. In this case, you can configure traffic statistics or port mirroring in the inbound direction on the interface connected to the Eth-Trunk.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing the traffic statistics collection function.

Example

# Enable the statistics function in a traffic behavior test.

<HUAWEI> system-view
[HUAWEI] traffic behavior test
[HUAWEI-behavior-test] statistic enable

statistic enable (QoS profile view)

Function

The statistic enable command enables traffic statistics in a QoS profile.

The undo statistic enable command disables traffic statistics in a QoS profile.

By default, the traffic statistics function is disabled in a QoS profile.

Format

statistic enable

undo statistic enable

Parameters

None

Views

QoS profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In Destination Address Accounting (DAA), the accounting server can perform traffic-based accounting for online users that pass 802.1X authentication, MAC address authentication, Portal authentication, or PPPoE authentication. This command collects traffic statistics of successfully authenticated online users. Then the device sends the statistics result to the accounting server, and the accounting server performs accounting based on the statistics result.

Precautions

When users that connected to the device through an Eth-Trunk go online through Portal authentication, only X series cards can provide traffic statistics for the users.

Follow-up Procedure

  1. In AAA view, run the domain command to create a domain and enter AAA domain view.
  2. Run the tariff-level command to configure the QoS profile and accounting function for a tariff level.

Example

# Enable traffic statistics in the QoS profile huawei.

<HUAWEI> system-view
[HUAWEI] qos-profile name huawei
[HUAWEI-qos-huawei] statistic enable
Related Topics
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 25936

Downloads: 109

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