< Home

resource-item-limit session usage alarm

Function

The resource-item-limit session usage alarm enable command enables the alarm function for the session resource usage of the virtual system.

The undo resource-item-limit session usage alarm enable command disables the alarm function for the session resource usage of the virtual system.

The resource-item-limit session usage alarm threshold command sets the alarm threshold for the session resource usage of the virtual system.

The undo resource-item-limit session usage alarm threshold command restores the default alarm threshold for the session resource usage of the virtual system.

Format

resource-item-limit { session | ipv6 session } usage alarm enable

undo resource-item-limit { session | ipv6 session } usage alarm enable

resource-item-limit { session | ipv6 session } usage alarm threshold trigger-threshold recovery-threshold

undo resource-item-limit { session | ipv6 session } usage alarm threshold

Parameters

Parameter Description Value
session Indicates IPv4 sessions. -
ipv6 session Indicates IPv6 sessions. -
trigger-threshold Specifies the alarm threshold. The value is an integer ranging from 1 to 100, in percentage. The default value is 80.
recovery-threshold Specifies the alarm clearing threshold.

The value is an integer ranging from 1 to 100, in percentage. The default value is 75.

The value must be smaller than trigger-threshold.

Views

Resource class view

Default Level

2: Configuration level

Usage Guidelines

After a resource class is bound, the session resource usage alarm function of the virtual system is enabled by default. The default alarm triggering threshold and alarm clearing threshold are 80% and 75%, respectively.

You can set the alarm triggering threshold and alarm clearing threshold for the usage of IPv4 and IPv6 session resources in a virtual system, the session resource usage alarm function takes effect only when the maximum number of session resources is configured in the resource class and the resource class is assigned to the virtual system. After creating a resource class and entering the resource class view, the alarm function for the session resource usage of the virtual system is enabled by default. You can run the resource-item-limit { session | ipv6 session } usage alarm threshold trigger-threshold recovery-threshold command to set the alarm triggering threshold and alarm clearing threshold for the session resource usage in the virtual system.

Assume that the session resource usage alarm function is enabled for the resource class bound to the virtual system, the alarm triggering threshold and alarm clearing threshold are set to the default values, and the maximum number of sessions is configured in the resource class. The virtual system calculates the usage of session resources based on the configured maximum number of sessions:
  • When the session resource usage of the virtual system reaches 80% of the configured maximum number of sessions, an alarm is generated.
  • When the session resource usage of the virtual system falls below 75% of the configured maximum number of sessions, the alarm is cleared.

Example

# Enable the alarm function for the IPv6 session resource usage of the virtual system bound to resource class 1, and set the alarm triggering and clearing thresholds for the session resource usage of the virtual system to 85% and 80%, respectively.

<sysname> system-view
[sysname] resource-class class1
[sysname-resource-class-class1] resource-item-limit ipv6 session usage alarm enable
[sysname-resource-class-class1] resource-item-limit ipv6 session usage alarm threshold 85 80
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >