Configure CPU Monitoring
Configuration Condition
None
Configure CPU Monitoring
Through CPU monitoring, the system monitors the CPU occupancy to learn the current operation status of the CPU. The following shows the contents of CPU monitoring:
- Monitors the CPU occupancy of each process. After the function is configured, you can view the related information by using the show cpu command.
- Enables the history statistics function of the CPU occupancy. After the function is configured, you can view the related information by using the show cpu monitor command.
Table 7-10 Configuring CPU Monitoring
Step
|
Command
|
Description
|
Enter the privileged mode
|
enable
|
-
|
Enable CPU occupancy monitoring of the processes.
|
spy cpu
|
Mandatory.
By default, CPU occupancy monitoring is disabled.
|
Enable history statistics of CPU occupancy.
|
monitor cpu
|
Mandatory.
By default, history statistics of CPU occupancy is enabled.
|