< Home

set memory-usage threshold

Function

The set memory-usage threshold command sets the threshold of the memory usage .

The undo set memory-usage threshold command restores the default threshold of the memory usage on the main control board.

Format

set memory-usage threshold threshold-value [ slot slot-id ]

undo set memory-usage threshold [ threshold-value ] [ slot slot-id ]

Parameters

Parameter Description Value
threshold threshold-value Specifies the memory usage threshold. The value is an integer ranging from 75 to 100.
slot slot-id Specifies the slot ID of a board. -

Views

System view

Default Level

3: Management level

Usage Guidelines

By default, the memory usage threshold is 90%.

Usage Scenario

To ensure that the device has sufficient memory or that an alarm is generated in case of memory insufficiency, you can run the set memory-usage threshold command to set the memory usage threshold.

Implementation Procedure

During device operating, you can run the display memory-usage threshold command to check the memory usage threshold.

Impact

When the memory usage of the device reaches the configured threshold, an alarm is automatically sent to notify users of memory insufficiency.

when the memory usage of the device or plugboard reaches the configured threshold, alarm ENTEXT_1.3.6.1.4.1.2011.5.25.31.2.0.5 hwEntityExtMemUsageThresholdNotification is generated.

Example

# Set the memory usage threshold to 80% for the board in slot 2.

<sysname> system-view
[sysname] set memory-usage threshold 80 slot 2

# Set the memory usage threshold of the MPU to 80%.

<sysname> system-view
[sysname] set memory-usage threshold 80
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic