< Home

traffic statistics mode by-bytes

Function

The traffic statistics mode by-bytes command enables byte-based traffic statistics in a traffic policy.

The undo traffic statistics mode by-bytes command disables byte-based traffic statistics in a traffic policy.

By default, the byte-based traffic statistics function is not enabled in a traffic policy.

Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.

Format

traffic statistics mode by-bytes

undo traffic statistics mode by-bytes

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the traffic statistics function is defined in a traffic policy, the switch collects traffic statistics by packet by default. To collect traffic statistics by byte, run the traffic statistics mode by-bytes command. Then the display traffic policy statistics command displays the packet rate by byte.

Example

# Enable byte-based traffic statistics in a traffic policy.

<HUAWEI> system-view
[HUAWEI] traffic statistics mode by-bytes
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >