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