Configuring CPU usage monitoring
You can enable CPU usage monitoring so the system periodically samples and saves CPU usage. To examine recent CPU usage, use the display cpu-usage history command.
You can also set CPU usage thresholds. When a CPU usage threshold is reached, the device sends a trap.
To configure CPU usage monitoring:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable CPU usage monitoring. | monitor cpu-usage enable [ slot slot-number [ cpu cpu-number ] ] | By default, CPU usage monitoring is enabled. |
3. Set the CPU usage sampling interval. | monitor cpu-usage interval interval-value [ slot slot-number [ cpu cpu-number ] ] | By default, the CPU usage sampling interval is 1 minute. |
4. Set CPU usage thresholds. | monitor cpu-usage threshold cpu-threshold [ slot slot-number [ cpu cpu-number ] ] | By default, the CPU usage threshold is 99%. |