238
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
monitor cpu-usage threshold
Use
monitor cpu-usage threshold
to set the CPU usage threshold.
Use
undo monitor cpu-usage threshold
to restore the default.
Syntax
In standalone mode:
monitor cpu-usage threshold
cpu-threshold
[
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor cpu-usage threshold
[
slot
slot-number
[
cpu
cpu-number
] ]
In IRF mode:
monitor cpu-usage threshold
cpu-threshold
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor cpu-usage threshold
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
Default
The CPU usage threshold is 99%
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
cpu-threshold
: Specifies the CPU usage threshold in percentage. The value range is 0 to 100.
slot
slot-number
: Specifies a card by its slot number. If you do not specify this option, the command
sets the CPU usage threshold 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 CPU usage
threshold 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 is fixed at 0.