The mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm command sets the upper and lower alarm thresholds for the proportion of the number of existing CSPF resources of a specified type to the maximum number of CSPF resources that a device supports. The CSPF resources can be CSPF links, nodes, network LSAs, or SRLGs.
The undo mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm command restores the default the upper and lower alarm thresholds.
By default, the upper threshold for alarms is 80 (percent), and the lower threshold for clear alarms is 75 (percent).
mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value
undo mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm
Parameter | Description | Value |
---|---|---|
cspf-link-number | Indicates the upper and lower alarm thresholds of the proportion of the existing CSPF links to the maximum number of CSPF links that a device supports. |
- |
cspf-node-number | Indicates the upper and lower alarm thresholds of the proportion of the existing CSPF nodes to the maximum number of CSPF nodes that a device supports. |
- |
cspf-nlsa-number | Indicates the upper and lower alarm thresholds of the proportion of the existing CSPF network LSAs to the maximum number of CSPF network LSAs that a device supports. |
- |
cspf-srlg-number | Indicates the upper and lower alarm thresholds of the proportion of the existing CSPF SRLGs to the maximum number of CSPF SRLGs that a device supports. |
- |
upper-limit upper-limit-value | Specifies a percent for the upper alarm threshold. |
The value is a percent integer ranging from 1 to 100. Set the value less than or equal to 95. Default value 80 is recommended. |
lower-limit lower-limit-value | Specifies a percent for the lower alarm threshold. |
The value is a percent integer ranging from 1 to 100. lower-limit-value must be less than upper-limit-value. Default value 75 is recommended. |
Usage Scenario
In the following example, the alarm thresholds for CSPF links are used. If the number of CSPF links reaches the maximum number of CSPF links that a device supports, new CSPF links fail to be established. To alert the administrator in operation and maintenance, enable a device to generate an alarm when the proportion of configured CSPF links to all supported ones reaches a specified upper alarm threshold. To enable this function, run the mpls cspf-link-number threshold-alarm command to set the upper and lower alarm thresholds with the following parameters configured:
Precautions
If the mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm command is run more than once, the latest configuration overrides the previous one.
The mpls { cspf-link-number | cspf-node-number | cspf-nlsa-number | cspf-srlg-number } threshold-alarm command only configures trigger conditions for alarms and clear alarms. Although trigger conditions are met, an 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 MPLS resource insufficiency alarm and its clear alarm.