set cpu-usage threshold
Function
The set cpu-usage threshold command sets the CPU usage alarm threshold and CPU usage alarm recovery threshold.
The undo set cpu-usage threshold command restores the default CPU usage alarm threshold and CPU usage alarm recovery threshold.
By default, the CPU usage alarm threshold is 80% and the CPU usage alarm recovery threshold is 75%.
Format
set cpu-usage threshold threshold-value [ restore restore-threshold-value ]
undo set cpu-usage threshold
Parameters
Parameter | Description | Value |
---|---|---|
threshold threshold-value | Specifies the CPU usage alarm threshold. |
The value is an integer that ranges from 2 to 100. The default value is 80. |
restore restore-threshold-value | Specifies the CPU usage alarm recovery threshold. If this parameter is not specified or the parameter value is 0,
the CPU usage alarm recovery threshold is calculated as follows:
|
The value is an integer that ranges from 0 to threshold-value-1. The default value is 75. |
Usage Guidelines
Usage Scenario
You can use the set cpu-usage threshold command to set the CPU usage alarm threshold and CPU usage alarm recovery threshold. When CPU usage exceeds the alarm threshold, the system logs the event and generates an alarm. By viewing log information, you can learn about CPU usage. When CPU usage falls within the recovery threshold, the system generates a clear alarm.
Precautions
Default CPU usage alarm threshold and CPU usage alarm recovery threshold are recommended. If the CPU usage alarm threshold and CPU usage alarm recovery threshold are set too small, the system frequently generates alarms. If the CPU usage alarm threshold and CPU usage alarm recovery threshold are set too large, you cannot learn about CPU usage in a timely manner.