set memory-usage threshold

Function

The set memory-usage threshold command sets the overload threshold and alarm recovery threshold of memory usage.

By default, the overload threshold value of memory usage is 85, and the alarm recovery threshold of memory usage is 75.The overload thresholds of memory usage vary according to products.

Format

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

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

Parameters

Parameter Description Value
threshold threshold

Specifies the overload threshold value of memory usage. Overload threshold value of memory usage = threshold-value/100.

The value is an integer ranging from 75 to 100.

restore restore-threshold-value

Specifies the alarm recovery threshold of memory usage. Alarm recovery threshold of memory usage = restore-threshold-value/100.

The value is an integer ranging from 1 to threshold-value minus 3. The default value is recommended.

slot slot-id

Specifies the slot ID of an interface board.

-

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
diagnose write

Usage Guidelines

Usage Scenario

A memory usage threshold is set, which helps monitor memory usage in time.

Configuration Impact

When the memory usage reaches the overload threshold, the system triggers the SYSTEM_1.3.6.1.4.1.2011.5.25.129.2.6.1 hwStorageUtilizationRisingAlarm alarm.

When the memory usage decreases to the non-overload threshold, the system triggers the SYSTEM_1.3.6.1.4.1.2011.5.25.129.2.6.2 hwStorageUtilizationResume alarm.

Precautions

If the overload threshold value of memory usage is set too small, the system will frequently trigger alarms. If the overload threshold value of memory usage is set too large, you cannot obtain information about high memory usage in time.

In a board replacement scenario, if the board types are different before and after the replacement, board configurations are re-reported after the replacement. As a result, original board configurations are lost, and the new board configurations are restored as default configurations.

In VS mode, this command is supported only by the admin VS.

Example

# Set the memory usage threshold value to 80 on the main control boards.
<HUAWEI> system-view
[~HUAWEI] set memory-usage threshold 80
# Set the memory usage threshold value to 80 on an interface board.
<HUAWEI> system-view
[~HUAWEI] set memory-usage threshold 80 slot 1
# Set the memory usage threshold value to 80.
<HUAWEI> system-view
[~HUAWEI] set memory-usage threshold 80
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >