No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Enabling the MPLS Trap Function
Enabling the MPLS Trap Function
Context
To facilitate operation and maintenance and determine the running status of the MPLS network, configure the MPLS trap function so that the device can notify the NMS of the LDP session status.
Procedure
Configure the trap function for LDP.
Run system-view
The system view is displayed.
Run snmp-agent trap enable feature-name ldp [ trap-nametrapname ]
The trap function is enabled for the MPLS LDP module.
By default, the trap function is disabled for the MPLS LDP module.
Configure the trap function for LSPM.
Run system-view
The system view is displayed.
Run snmp-agent trap enable feature-name mpls_lspm [ trap-nametrapname ]
The trap function is enabled for the MPLS LSPM module.
By default, the trap function is disabled for the MPLS LSPM module.
When performing the following steps to configure alarm thresholds, pay attention to the following points:
To configure the alarm function for dynamic label usage, specify hwmplsdynamiclabelthresholdexceed and hwmplsdynamiclabelthresholdexceedclear to enable the threshold exceeding alarm and clear alarm when configuring trap-name. When the usage of dynamic labels exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
To configure the LSP usage alarm function, specify hwmplslspthresholdexceed and hwmplslspthresholdexceedclear to enable the threshold exceeding alarm and clear alarm when configuring trap-name. When the LSP usage exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
To configure the alarm function for MPLS resource usage, specify hwmplsresourcethresholdexceed and hwmplsresourcethresholdexceedclear to enable the threshold exceeding alarm and clear alarm when configuring trap-name. When the usage of MPLS resources exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
Run mpls
The MPLS view is displayed.
Run mpls dynamic-label-number threshold-alarmupper-limitupper-limit-valuelower-limitlower-limit-value
The upper and lower thresholds for dynamic label usage are set.
You can set the following parameters:
upper-limit-value: a percent indicating the upper limit of dynamic labels. If dynamic label usage reaches the upper limit, an alarm is generated. An upper limit less than or equal to 95% is recommended.
lower-limit-value: a percent indicating the lower limit of dynamic labels. If dynamic label usage falls below the lower limit, a clear alarm is generated.
The value of upper-limit-value must be greater than that of lower-limit-value.
By default, the upper limit is 80%, and the lower limit is 70%, which are recommended.
After the snmp-agent trap enable feature-name mpls_lspmtrap-name { hwmplsdynamiclabeltotalcountexceed | hwmplsdynamiclabeltotalcountexceedclear } command is run to enable the device to generate limit-reaching alarms and their clear alarms, the following situations occur:
If the number of dynamic labels reaches the maximum number of dynamic labels supported by a device, a limit-reaching alarm is generated.
If the number of dynamic labels falls below 95% of the maximum number of dynamic labels supported by the device, a clear alarm is generated.
Run mpls ldp-lsp-number threshold-alarmupper-limitupper-limit-valuelower-limitlower-limit-value
The upper and lower thresholds of alarms for LDP LSP usage are configured.
The parameters in this command are described as follows:
upper-limit-value specifies the upper threshold of alarms for LDP LSP usage. An alarm is generated when the proportion of established LDP LSPs to total supported LDP LSPs reaches the upper limit.
lower-limit-value specifies the lower threshold of clear alarms for LDP LSP usage. A clear alarm is generated when the proportion of established LDP LSPs to total supported LDP LSPs falls below the lower limit.
The value of upper-limit-value must be greater than that of lower-limit-value.
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%, which are recommended.
After the snmp-agent trap enable feature-name mpls_lspmtrap-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.
Run mpls remote-adjacency-number threshold-alarmupper-limitupper-limit-valuelower-limitlower-limit-value
The conditions that trigger the threshold-reaching alarm and its clear alarm for remote LDP adjacencies are configured.
Note the following issues when configuring trigger conditions:
upper-limit-value: upper alarm threshold for the proportion of established remote LDP adjacencies to all supported ones.
lower-limit-value: lower alarm threshold for the proportion of established remote LDP adjacencies to all supported ones.
The value of upper-limit-value must be greater than that of lower-limit-value.
By default, the upper alarm threshold is 80%, and the lower alarm threshold is 75%, which are recommended.
When the number of remote LDP adjacencies exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
Run mpls outsegment-number threshold-alarmupper-limitupper-limit-valuelower-limitlower-limit-value
The alarm threshold for LDP OutSegment number is configured.
The parameters in this command are described as follows:
upper-limit-value specifies the upper limit of the alarm threshold for LDP OutSegment number.
lower-limit-value specifies the lower limit of the clear alarm threshold for LDP OutSegment number.
The value of upper-limit-value must be greater than that of lower-limit-value.
By default, the upper limit of the alarm threshold for LDP OutSegment number is 80%, the lower limit of the clear alarm threshold for LDP OutSegment number is 75%, which are recommended.
When the LDP OutSegment number exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
Checking the Configuration
Run the display snmp-agent trap feature-name ldp all command to check the status of all traps on the MPLS LDP module.
Run the display snmp-agent trap feature-name mpls_lspm all command to check all trap messages on the MPLS LSPM module.
Run the display default-parameter mpls management command to check default configurations of the MPLS management module.