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.
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
| 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. |
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.
# 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