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

S1720, S2700, S5700, and S6720 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

If only statistic enable is configured in a traffic behavior, the S1720GFR, S1720GW, S1720GWR, S1720X, S1720GW-E, S1720GWR-E, S1720X-E, S2720EI, S2750EI, S5700LI, S5700S-LI, S5710-X-LI, S5720LI, S5720S-LI, S5720SI, S5720S-SI, S5730SI, S5730S-EI, S6720LI, S6720S-LI, S6720SI, and S6720S-SI support packet-based traffic statistics but not byte-based traffic statistics. After traffic statistics mode by-bytes is configured in the system view and traffic statistics is configured in a traffic policy, the switches support byte-based traffic statistics.

For the S5720HI, 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

NOTE:

Only the S5720EI, S5720HI, S6720EI, and S6720S-EI support this command.

Parameters

None

Views

QoS profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The statistic enable command collects traffic statistics of successfully authenticated online users.

Precautions

When users that connected to the device through an Eth-Trunk go online through Portal authentication, the S5720EI, S6720EI, and S6720S-EI cannot provide traffic statistics for the users.

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-09

Document ID: EDOC1000178165

Views: 47187

Downloads: 1159

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