This section describes how to configure alarm thresholds for Label Distribution Protocol (LDP) label switched paths (LSPs).
The system view is displayed.
The MPLS view is displayed.
The upper and lower thresholds of alarms for LDP LSP usage are configured.
The parameters in this command are described as follows:
This command configures the alarm threshold for LDP LSP usage. The alarm that the number of LSPs reached the upper threshold is generated only when the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslspthresholdexceed } command 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 lower threshold is generated only when the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslspthresholdexceedclear } command is configured, and the actual LDP LSP usage falls below the lower limit of the clear alarm threshold.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is generated in the following situations:
If the total number of LDP LSPs reaches the upper limit, a limit-crossing alarm is generated.
If the total number of LDP LSPs falls below 95% of the upper limit, a limit-crossing clear alarm is generated.
The configuration is committed.