Command Reference CPU-LOG Commands
CPU-LOG Commands
cpu-log
Use this command to manually configure the low and high threshold of triggering the cpu utilization
log.
cpu-log log-limit low_num high_num
Parameter
Description
Parameter Description
log-limit
The command descriptor prompting the limit range.
low_num
Sets the low threshold of triggering the cpu utilization log.
high_num
Sets the high threshold of triggering the cpu utilization log.
Defaults
By default, the high and low threshold of triggering the cpu utilization log are 100% and 90%.
Command
Mode
Global configuration mode.
Usage Guide
Use this command to manually configure the low and high threshold of triggering the cpu utilization
log. When the CPU utilization exceeds the high threshold, the system prompts the log message for
one time. When the CPU utilization is less than the low threshold, the system prompts the log
message and advertises that the current CPU utilization has been decreased. This message is sent
only when the CPU high and low threshold switches over.
Configuration
Examples
#Show how to set the low and high threshold of triggering the cpu utilization log to 70% and 80%
respectively.
Ruijie(config)# cpu-log log-limit 70 80
#The console prompts the following message when the CPU utilization is higher 80%:
Oct 20 15:47:01 %SYSCHECK-5-CPU_USING_RATE: CPU utilization in one minute: 95%,
Using most cpu's task is ktimer : 94%
#The console prompts the following message when the CPU utilization is less than 70%:
Oct 20 15:47:01 %SYSCHECK-5-CPU_USING_RATE: CPU
utilization in one minute :68%,Using most cpu's task
is ktimer : 60%
Oct 20 15:47:01 %SYSCHECK-5-CPU_USING_RATE: The CPU
using rate has down!
Related
Commands
Command Description
N/A N/A