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
memory-threshold [ slot slot-number [ cpu cpu-number ] ] usage memory-threshold
undo memory-threshold [ 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 an IRF member device by its member ID or a PEX by its virtual slot
number. If you do not specify this option, the command sets the memory usage threshold for the
master device.
cpu cpu-number: Specifies a CPU by its number. The cpu-number argument must be 0.
Usage guidelines
The device samples memory usage at an interval of 1 minute, and compares the sample with the
memory usage threshold. If the sample is greater, the device sends a trap.
Examples
# Set the memory usage threshold to 80%.
<Sysname> system-view
[Sysname] memory-threshold threshold 80
Related commands
•
display memory-threshold
•
memory-threshold
257