The traffic rate statistics enable command enables traffic rate statistics collection in a traffic policy.
The undo traffic rate statistics enable command disables traffic rate statistics collection in a traffic policy.
By default, traffic rate statistics collection is enabled in a traffic policy.
Usage Scenario
If the traffic statistics function is configured in a traffic policy and more than 60K traffic classification rules are configured, memory resources may be insufficient. To release memory resources, run the undo traffic rate statistics enable command to disable traffic rate statistics collection in the traffic policy.
Precautions
After traffic rate statistics collection is disabled in a traffic policy, the display traffic policy statistics command can still display the number of packets and bytes, but traffic rates are all displayed as -.
This command is valid for traffic policies configured after traffic rate statistics collection is enabled or disabled, and traffic rate statistics collection is not disabled in traffic policies that have been configured before this command is executed.
<HUAWEI> display traffic policy statistics global slot 0 inbound Global : Traffic policy inbound: test Rule number: 1 Current status: success Statistics interval: 300 --------------------------------------------------------------------- Board : 1 --------------------------------------------------------------------- Matched | Packets: 0 | Bytes: 0 | Rate(pps): 0 | Rate(bps): 0 --------------------------------------------------------------------- Passed | Packets: 0 | Bytes: 0 | Rate(pps): 0 | Rate(bps): 0 --------------------------------------------------------------------- Dropped | Packets: 0 | Bytes: 0 | Rate(pps): 0 | Rate(bps): 0 --------------------------------------------------------------------- Filter | Packets: 0 | Bytes: 0 --------------------------------------------------------------------- Car | Packets: 0 | Bytes: 0 ---------------------------------------------------------------------
<HUAWEI> display traffic policy statistics global slot 0 inbound Global : Traffic policy inbound: testp Rule number: 1 Current status: success Statistics interval: 300 --------------------------------------------------------------------- Board : 1 --------------------------------------------------------------------- Matched | Packets: 0 | Bytes: 0 | Rate(pps): - | Rate(bps): - --------------------------------------------------------------------- Passed | Packets: 0 | Bytes: 0 | Rate(pps): - | Rate(bps): - --------------------------------------------------------------------- Dropped | Packets: 0 | Bytes: 0 | Rate(pps): - | Rate(bps): - --------------------------------------------------------------------- Filter | Packets: 0 | Bytes: 0 --------------------------------------------------------------------- Car | Packets: 0 | Bytes: 0 ---------------------------------------------------------------------