< Home

mpls cspf threshold-alarm

Function

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).

Format

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

Parameters

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.

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

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:

  • upper-limit-value: An alarm is generated if the proportion of the number of existing CSPF links to the maximum number reaches upper-limit-value.
  • lower-limit-value: The alarm is cleared if the proportion of the number of existing CSPF links to the maximum number falls to lower-limit-value.

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.

Example

# Set the upper and lower alarm thresholds to 90% and 60%, respectively, for the proportion of existing CSPF links to the maximum number of CSPF links that a device supports.

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