235
severe
severe-value
: Specifies the severe alarm threshold in MB. This threshold must be equal to or
less than the minor alarm threshold. Setting this threshold to 0 disables the severe alarm feature.
critical
critical-value
: Specifies the critical alarm threshold in MB. This threshold must be equal to or
less than the severe alarm threshold. Setting this threshold to 0 disables the critical alarm feature.
normal
normal-value
: Specifies the normal state threshold in MB. This threshold must be equal to or
greater than the minor alarm threshold.
slot
slot-number
: Specifies a card by its slot number. If you do not specify this option, the command
sets thresholds 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 thresholds 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.
Usage guidelines
To ensure correct operation and improve memory utilization, the system monitors the amount of free
memory space in real time. When a free-memory threshold is exceeded, the system sends an alarm
notification or an alarm-removed notification to affected feature modules or processes so they can
take countermeasures. For more information about the conditions and rules for generating alarm
notifications and alarm-removed notifications, see
Fundamentals Configuration Guide
.
Examples
# Set the minor alarm, severe alarm, critical alarm, and normal state thresholds to 64 MB, 48 MB, 32
MB, and 96 MB, respectively.
<Sysname> system-view
[Sysname] memory-threshold minor 64 severe 48 critical 32 normal 96
Related commands
display memory-threshold
memory-threshold usage
memory-threshold usage
Use
memory-threshold
usage
to set the memory usage threshold.
Use
undo memory-threshold usage
to restore the default.
Syntax
In standalone mode:
memory-threshold
[
slot
slot-number
[
cpu
cpu-number
] ]
usage
memory-threshold
undo memory-threshold
[
slot
slot-number
[
cpu
cpu-number
] ]
usage
In IRF mode:
memory-threshold
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
usage
memory-threshold
undo memory-threshold
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
] ]
usage
Default
The memory usage threshold is 100%.
Views
System view