display cpu-usage history [ 1hour | 24hour | 72hour ] [ slave | slot slot-id ] [ vcpu vcpu-index ]
The slave parameter is not supported if the switch does not support the stacking function or does not have the stacking function enabled.
Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the vcpu vcpu-index parameter.
Parameter | Description | Value |
---|---|---|
1hour |
Displays CPU usage statistics within the last one hour. |
- |
24hour |
Displays CPU usage statistics within the last 24 hours. |
- |
72hour |
Displays CPU usage statistics within the last 72 hours. |
- |
slave |
Displays the CPU usage statistics of slave devices in a stack. This parameter is valid only in a stack system. |
- |
slot slot-id |
Displays the CPU usage statistics of a specified slot ID. |
The value varies with the device configuration. |
vcpu vcpu-index |
Displays the CPU usage statistics of a specified virtual CPU. |
Specify the vcpu-index parameter based on the hardware configuration. |
Usage Scenario
The system collects CPU usage statistics at a specified interval (usually 60s) and saves them in the historical record table. To check CPU usage statistics within a period, run the display cpu-usage history command, and the command output helps you determine whether the CPU is working properly.
In the display cpu-usage history command output, the x-coordinate indicates the specified period, and the y-coordinate indicates the CPU usage.
Precautions
If CPU usage is constantly higher than the upper alarm threshold (95% by default) before the feature is deployed on a large scale, check the device to troubleshoot the fault.
# Display CPU usage statistics within the last one hour.
<HUAWEI> display cpu-usage history 1hour
100%|
95%|
90%|
85%|
80%|
75%|
70%|
65%|
60%|
55%|
50%|
45%|
40%|
35%| H
30%| H
25%| H
20%| H
15%| H
10%| H
5%|HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
---------+---------+---------+---------+---------+---------+>
10 20 30 40 50 60
System cpu-usage last 60 minutes(Per Min)
# Display CPU usage statistics within the last 24 hours.
<HUAWEI> display cpu-usage history 24hour
100%|
95%|
90%|
85%|
80%|
75%|*
70%|*
65%|*
60%|*
55%|*
50%|*
45%|*
40%|*
35%|* **
30%|* **
25%|* **
20%|* **
15%|* **
10%|H **
5%|HHHHHHHHHHHHHHHHHHHHHHHHHHHHH
---------+---------+---------+---------+-------->
10 20 30 40
System cpu-usage last 24 hours(Per Halfhour)
* = maximum cpu-usage H = average cpu-usage
# Display CPU usage statistics within the last 72 hours.
<HUAWEI> display cpu-usage history 72hour
100%|
95%|
90%|
85%|
80%|
75%|*
70%|*
65%|*
60%|*
55%|*
50%|*
45%|*
40%|*
35%|* *
30%|* *
25%|* *
20%|* *
15%|* *
10%|* *
5%|HHHHHHHHHHHHHH
---------+---------+---------+---------+---------+---------+---------+-->
10 20 30 40 50 60 70
System cpu-usage last 72 hours(Per Hour)
* = maximum cpu-usage H = average cpu-usage
Item |
Description |
---|---|
System cpu-usage last 60 minutes(Per Min) |
CPU usage statistics within the last one hour, with a step of one minute. |
System cpu-usage last 24 hours(Per Halfhour) |
CPU usage statistics within the last 24 hours, with a step of half an hour. |
System cpu-usage last 72 hours(Per Hour) |
CPU usage statistics within the last 72 hours, with a step of an hour. |
* = maximum cpu-usage |
Maximum CPU usage. For example, the maximum CPU usage in the first hour in the latest 72 hours is 75%. |
H = average cpu-usage |
Average CPU usage. For example, the average CPU usage in the first hour in the latest 72 hours is 5%. |