Conditions that trigger LDP resource threshold-reaching alarms can be configured. If the number of remote LDP adjacencies or the number of outsegment entries reaches a specified upper alarm threshold, the device can report an alarm to an NMS.
The system view is displayed.
The MPLS view is displayed.
Run mpls remote-adjacency-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
Conditions that trigger the threshold-reaching alarm and its clear alarm for remote LDP adjacencies are configured.
Run mpls outsegment-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
Conditions that trigger the threshold-reaching alarm and its clear alarm for outsegment entries are configured.
Run mpls mldp-tree-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of mLDP LSPs are set.
Run mpls mldp-branch-number threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
The upper and lower alarm thresholds for the number of mLDP sub-LSPs are set.
Configure the following parameters in the preceding command:
By default, the upper threshold for alarms is 80% and the lower threshold for clear alarms is 75%.
Each 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 { hwmplsresourcethresholdexceed | hwmplsresourcethresholdexceedclear } command is run to enable the device to generate an LDP resource insufficiency alarm and its clear alarm.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsresourcetotalcountexceed | hwmplsresourcetotalcountexceedclear } command is run to enable the device to generate an LDP resource insufficiency alarm and its clear alarm, note the following issues:
If the number of used LDP resources reaches the maximum number of LDP resources supported by a device, a maximum number-reaching alarm is generated.
If the number of used LDP resources falls to 95% or below of the maximum number of LDP resources supported by a device, a clear alarm is generated.
The configuration is committed.