< Home

mpls ldp-lsp-number threshold-alarm

Function

The mpls ldp-lsp-number threshold-alarm command configures the alarm threshold for LDP LSP usage.

The undo mpls ldp-lsp-number threshold-alarm command restores the default settings.

By default, the upper limit of the alarm threshold for LDP LSP usage is 80%, the lower limit of the clear alarm threshold for LDP LSP usage is 75%.

Format

mpls ldp-lsp-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value

mpls ldp-lsp-number { ingress | transit | egress } threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value

undo mpls ldp-lsp-number threshold-alarm

undo mpls ldp-lsp-number { ingress | transit | egress } threshold-alarm

Parameters

Parameter Description Value

upper-limit upper-limit-value

Specifies the upper limit of the alarm threshold for LDP LSP usage.

The value is an integer ranging from 1 to 100, represented in percentage. 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 the clear alarm threshold for LDP LSP usage.

The value is an integer ranging from 1 to 100, represented in percentage. The value must be smaller than the value of upper-limit-value. Using the default value 75 is recommended.

ingress

Specifies the alarm threshold for ingress LDP LSPs.

-

transit

Specifies the alarm threshold for transit LDP LSPs.

-

egress

Specifies the alarm threshold for egress LDP LSPs.

-

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the number of LDP LSPs in the system reaches a specific limit, establishing additional LDP LSPs may fail because of insufficient resources. To facilitate user operation and maintenance, enable an alarm to be generated when the number of LDP LSPs reaches the specific limit. To configure the alarm threshold for LDP LSP usage, run the mpls ldp-lsp-number threshold-alarm command. The parameters in this command are described as follows:

  • upper-limit-value: upper alarm threshold. If the proportion of LDP LSP usage to all supported ones reaches the upper alarm threshold, an alarm can be generated.
  • lower-limit-value: lower alarm threshold. If the proportion of LDP LSP usage to all supported ones falls below the lower alarm threshold, a clear alarm can be generated.

If you want to set the alarm threshold for ingress LDP LSPs, transit LDP LSPs or egress LDP LSPs, run mpls ldp-lsp-number { ingress | transit | egress } threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value.

Precautions

  • If the mpls ldp-lsp-number threshold-alarm command is run several times, the latest configuration overrides the previous one.

  • This command configures the alarm threshold for LDP LSP usage. The alarm that the number of LSPs exceeded the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceed is configured, and the actual LDP LSP usage reaches the upper limit of the alarm threshold. The alarm that the number of LSPs fell below the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceedclear is configured, and the actual LDP LSP usage fells to the lower limit of the clear alarm threshold.

Example

# Configure the upper limit and the lower limit of the alarm threshold for LDP LSP usage.

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