228
undo memory-threshold
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
usage
Default
The memory usage threshold is 100%.
Views
System view
Predefined user roles
network-admin
Parameters
memory-threshold
: Specifies the memory 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 memory usage threshold for the active MPU. (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 memory usage threshold for
the global active MPU. (In IRF mode.)
cpu
cpu-number
: Specifies a CPU by its number. The
cpu-number
argument is fixed at 0.
Usage guidelines
The device samples memory usage at an interval of 1 minute. If the sample is greater than the memory
usage threshold, the device sends a trap.
Examples
# Set the memory usage threshold to 80%.
<Sysname> system-view
[Sysname] memory-threshold chassis 1 slot 2 cpu 1 usage 80
Related commands
•
display memory-threshold
•
memory-threshold
monitor cpu-usage enable
Use
monitor cpu-usage enable
to enable CPU usage monitoring.
Use
undo monitor cpu-usage enable
to disable CPU usage monitoring.
Syntax
In standalone mode:
monitor cpu-usage enable
[
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor cpu-usage enable
[
slot
slot-number
[
cpu
cpu-number
] ]
In IRF mode:
monitor cpu-usage enable
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
undo monitor cpu-usage enable
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
Default
CPU usage monitoring is enabled.