< Home

mpls dynamic-label-number threshold-alarm

Function

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

By default, the upper limit is 80%, and the lower limit is 70%.

Format

mpls dynamic-label-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value

undo mpls dynamic-label-number threshold-alarm

Parameters

Parameter Description Value
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 a value larger than 95 is not recommended. Using the default value 80 is recommended.
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.

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

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. The modules that apply for labels including MPLS TE, MPLS LDP, BGP, L3VPN and L2VPN. To facilitate operation and maintenance, run 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.

This command enables the system to generate an alarm in either of the following situations:

  • upper-limit-value: a percent indicating the upper limit of dynamic labels. If dynamic label usage reaches the upper limit, an alarm is generated.
  • lower-limit-value: a percent indicating the lower limit of dynamic labels. If dynamic label usage falls below the lower limit, a clear alarm can be generated.

Precautions

If the mpls dynamic-label-number threshold-alarm command is run more than once, the latest configuration overrides the previous one.

The mpls dynamic-label-number threshold-alarm 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.

Example

# Set the thresholds for triggering dynamic label alarms.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls dynamic-label-number threshold-alarm upper-limit 90 lower-limit 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >