The mpls dynamic-label-number threshold-alarm command sets alarm thresholds of dynamic label usage.
The undo mpls dynamic-label-number threshold-alarm command restores the default alarm thresholds of dynamic label usage.
By default, the upper limit is 80%, and the lower limit is 70%.
Parameter | Description | Value |
---|---|---|
lower-limit lower-limit-value |
Specifies the lower limit of dynamic label usage. |
The value is a percent integer ranging from 1 to 100. The lower limit must be less than the upper limit. Using the default value 70 is recommended. |
upper-limit upper-limit-value |
Specifies the upper limit of dynamic label usage. |
The value is a percent integer ranging from 1 to 100. Using the default value 80 is recommended. The setting value less than 95 is better. |
Usage Scenario
If dynamic labels run out but the system receives new dynamic label requests, the system fails to satisfy the requests because the dynamic labels are insufficient. As a result, the module that fails to be assigned labels works abnormally. To facilitate operation and maintenance, run the mpls dynamic-label-number threshold-alarm command to set alarm thresholds of dynamic label usage. The system can alert users to the issue that dynamic labels will exhaust.
Precautions
If the mpls dynamic-label-number threshold-alarm command is run more than one time, the last configuration takes effect.
This command only configures the trigger conditions for an alarm and its clear alarm. Although trigger conditions are met, the alarm and its clear alarm can be generated only after the snmp-agent trap enable feature-name mpls_lspm trap-name { hwMplsDynamicLabelThresholdExceed | hwMplsDynamicLabelThresholdExceedClear } command is run to enable the device to generate a dynamic label insufficiency alarm and its clear alarm.