reset cpu-overload-control statistics [ packet-type packet-type | task task-name ] slot slot-id
Parameter | Description | Value |
---|---|---|
packet-type packet-type | Specifies a protocol type. |
The value is of the enumerated type:
NOTE:
S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI do not support arp-miss parameter. If this parameter is not specified, OLC statistics in the specified slot are cleared. |
task task-name | Specifies a task name. |
The value is of the enumerated type:
If this parameter is not specified, OLC statistics in the specified slot are cleared. |
slot slot-id | Specifies a slot ID. |
The value must be set according to the device configuration. |
Usage Scenario
To obtain OLC statistics in a specified period to locate faults of monitored protocols or tasks, you can run the reset cpu-overload-control statistics command to clear the previous OLC statistics of a specified protocol, task, or slot, and then run the display cpu-overload-control statistics command after a period of time to view the OLC statistics.
Precautions
The deleted OLC statistics cannot be restored. Therefore, exercise caution when running this command.
# Clear OLC statistics of the DHCP protocol in slot 0.
<HUAWEI> reset cpu-overload-control statistics packet-type dhcp slot 0
# Clear OLC statistics of the ACL task in slot 0.
<HUAWEI> reset cpu-overload-control statistics task ACL slot 0
# Clear OLC statistics in slot 0.
<HUAWEI> reset cpu-overload-control statistics slot 0