set license threshold

Function

The set license threshold command sets an alarm threshold for a resource item registered in the system.

The undo set license threshold command restores the default alarm threshold of a resource item registered in the system.

The default alarm threshold of a resource item is 90%.

Format

set license license-item threshold threshold-value

undo set license license-item threshold [ threshold-value ]

Parameters

Parameter Description Value
license-item

Specifies a resource item registered in the system.

The value is a string of 1 to 31 characters.

threshold-value

Specifies an alarm threshold for a resource item registered in the system.

When the usage of a resource item reaches the alarm threshold, an alarm is generated. The threshold can be calculated using the formula threshold-value/100.

The value is an integer ranging from 50 to 95, in percentage. The default value is 90.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
license write

Usage Guidelines

Usage Scenario

The default alarm threshold (90%) fails to help monitor resource usage in real time and identify resource exhaustion risks quickly. To address this issue, run the set license threshold command to specify an alarm threshold for the desired resource item.

Configuration Impact

After the set license threshold command is run, the system performs scheduled detection based on the configured alarm threshold. When the usage of a resource item reaches the alarm threshold, the LCS_1.3.6.1.4.1.2011.5.25.142.2.2 hwGtlResourceUsedUp alarm is generated.

Precautions

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

Example

# Set the alarm threshold of the LCRXXXX resource item to 80%.
<HUAWEI> system-view
[~HUAWEI] set license LCRXXXX threshold 80
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >