< Home

threshold-alarm measure

Function

The threshold-alarm measure command creates monitoring rules for threshold alarms.

The undo threshold-alarm measure command deletes monitoring rules for threshold alarms.

By default, no monitoring rules are created for threshold alarms about performance statistics tasks.

Format

threshold-alarm measure measure-name operation { ge | le } trigger-value trigger-value-val clear-value clear-value-val

undo threshold-alarm measure measure-name operation { ge | le }

Parameters

Parameter Description Value
measure-name Specifies the threshold monitoring indicator The indicator name is predefined by each feature.

The value is a string of 1 to 63 case-insensitive characters without spaces. Select statistics counters according to the device configuration.

operation { ge | le } Specifies the type of triggering a threshold alarm. Enumerated value: ge or le
  • ge: the system triggers an alarm if the monitored indicator value is greater than or equal to the threshold value
  • le: the system triggers an alarm if the monitored indicator value is less than or equal to the threshold value.
trigger-value trigger-value-val Specifies the threshold information when the alarm is triggered. The value is an integer, and the value range is determined by measure-name.
clear-value clear-value-val Specifies the threshold information when the alarm is cleared. The value is an integer, and the value range is determined by measure-name.

Views

Performance statistics task view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The threshold alarm function is used for the system to periodically monitor the device operating status. If an alarm condition is triggered, the alarm will be sent to the NMS and cleared after the alarm condition is cleared.

The threshold-alarm measure command configures threshold monitoring rules for current performance statistics tasks. The threshold-alarm measure command configures the alarm triggering type, threshold for triggering an alarm and threshold for clearing an alarm based on the instance type and indicators of the threshold monitoring instance.

Prerequisites

Before the threshold-alarm measure command is run, run the binding instance-type instance-type { all | instance instance-name &<1-5> } command to bind a threshold monitoring instance, and run the threshold-alarm enable command to enable the threshold alarm function. Otherwise, alarms will not be sent.

Example

# Create threshold monitoring rules.

<HUAWEI> system-view
[HUAWEI] pm
[HUAWEI-pm] statistics-task task1
[HUAWEI-pm-statistics-task1] binding instance-type ipfpm all
[HUAWEI-pm-statistics-task1] threshold-alarm enable
[HUAWEI-pm-statistics-task1] threshold-alarm measure forward-loss-ratio-max operation ge trigger-value 1000 clear-value 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >