227
Parameters
minor
minor-value
: Specifies the minor alarm threshold. This threshold must be equal to or less than the
memory size of the specified card. Setting this threshold to 0 disables the minor alarm function.
severe
severe-value
: Specifies the severe alarm threshold. This threshold must be equal to or less than the
minor alarm threshold. Setting this threshold to 0 disables the severe alarm function.
critical
critical-value
: Specifies the critical alarm threshold. This threshold must be equal to or less than the
severe alarm threshold. Setting this threshold to 0 disables the critical alarm function.
normal
normal-value
: Specifies the normal state threshold. 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. (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. (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