monitor cpu-usage interval
Use monitor cpu-usage interval to configure the interval at which the device samples CPU usage statistics.
Syntax
In standalone mode:
monitor cpu-usage interval interval-value [ slot slot-number [ cpu cpu-number ] ]
In IRF mode:
monitor cpu-usage interval interval-value [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]
Default
The sampling interval is 1 minute.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
interval-value: Specifies the CPU usage statistics sampling interval. It can take the value of 5Sec, 1Min, or 5Min. Enter a value in its complete form. Otherwise, the system prompts parameter error.
slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command sets the interval for the active MPU or switching fabric module. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device by its slot number and the member ID. If you do not specify this option, the command sets the interval for the global active MPU or switching fabric module. (In IRF mode.)
cpu cpu-number: Specifies a CPU by its number. The cpu-number argument must be 0.
Examples
# Configure the interval at which the device samples CPU usage statistics as 5 seconds.
<Sysname> system-view [Sysname] monitor cpu-usage interval 5Sec
Related commands
display cpu-usage
display cpu-usage configuration
display cpu-usage history
monitor cpu-usage enable
monitor cpu-usage threshold