127
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enable CPU usage
monitoring.
monitor cpu-usage enable
[
slot
slot-number [
cpu
cpu-number ] ]
By default, CPU usage monitoring
is enabled.
3. Set the CPU usage sampling
interval.
monitor cpu-usage interval
interval-value [
slot
slot-number
[
cpu
cpu-number ] ]
By default, the CPU usage
sampling interval is 1 minute.
4. Set CPU usage thresholds.
monitor cpu-usage threshold
cpu-threshold [
slot
slot-number
[
cpu
cpu-number ] ]
By default, the CPU usage
threshold is 99%.
Setting memory thresholds
To ensure correct operation and improve memory utilization, the system monitors the memory usage
and the amount of free memory space in real time:
• If the memory usage threshold is exceeded, the system generates and sends a trap.
• If a free-memory threshold is exceeded, the system generates an alarm notification or an
alarm-removed notification and sends it to affected service modules or processes.
The device supports the following free-memory thresholds:
{ Normal state threshold.
{ Minor alarm threshold.
{ Severe alarm threshold.
{ Critical alarm threshold.
Table 12 and Figure 37 sho
w how the device generates notifications based on the free-memory
thresholds.
Table 12 Memory alarm notifications and memory alarm-removed notifications
Notification Triggering condition Remarks
Minor alarm notification
The amount of free memory
space decreases to or below the
minor alarm threshold for the first
time.
After generating and sending a minor alarm
notification, the system does not generate
and send any additional minor alarm
notifications until the first minor alarm is
removed.
Severe alarm notification
The amount of free memory
space decreases to or below the
severe alarm threshold for the
first time.
After generating and sending a severe
alarm notification, the system does not
generate and send any additional severe
alarm notifications until the first severe
alarm is removed.
Critical alarm notification
The amount of free memory
space decreases to or below the
critical alarm threshold for the
first time.
After generating and sending a critical
alarm notification, the system does not
generate and send any additional critical
alarm notifications until the first critical
alarm is removed.
Critical alarm-removed
notification
The amount of free memory
space increases to or above the
severe alarm threshold.
N/A
Severe alarm-removed
notification
The amount of free memory
space increases to or above the
minor alarm threshold.
N/A