Skip to main content

Preventive Rules

A Rule is the judgment criterion applied to each check item in a Preventive Profile. When a command's execution result satisfies a rule's condition, it is automatically judged as Warning or Critical. A single rule can be reused across check items in multiple profiles, so changing a threshold or judgment condition in one rule applies to every linked item.

Viewing the rule list

Go to Network Automation > Preventive Rules to view the list of registered rules. You must first select an NMS Manager from the Select Manager dropdown at the top of the screen for the list to appear.

Key list information

ColumnDescription
No.List sequence number
Rule nameRule name
Judgment methodDisplayed as a badge: threshold, count, contains, or regex
Warning conditionCondition judged as warning. Shown as N/A for contains·regex methods
Critical conditionCondition judged as critical. Shown as the value only for contains·regex methods (e.g. down)
UnitUnit of the threshold value. Shown as N/A for contains·regex methods
ActionsEdit and delete icons

Adding or editing a rule

  1. Click the Add Rule button at the top right (to modify an existing rule, click the Edit icon in the list instead).

  2. Configure each field in the popup, then click the save button.

FieldRequiredDescription
NameRequiredName to identify the rule
Judgment methodRequiredRefer to the table below to select the method that fits the check result
Warning conditionEnter an operator and value only when the judgment method is threshold or count. For contains or regex, enter only a value
Critical conditionSame input rules as the warning condition
UnitEnter only when the judgment method is threshold or count
DescriptionOptional description memo for the rule

Behavior by judgment method

Changing the judgment method automatically switches the input fields.

Judgment methodOperatorValueUnitJudgment criteria
thresholdChoose from >=·>·<=·<·==·!=String parsed as a numberUsedJudges whether the result value satisfies the specified numeric condition
countChoose from >=·>·<=·<·==·!=String parsed as a numberUsedJudges by the number of result rows matching the condition
containsNot usedString to search forNot usedJudges whether the execution result contains the specified string
regexNot usedRegular expression patternNot usedJudges whether the execution result matches the regular expression pattern

Operators

The first item in the operator list is Not used. If you do not use an operator, that condition is not saved.

OperatorDescription
>=greater than or equal to
>greater than
<=less than or equal to
<less than
==equal to
!=not equal to

When you select an operator, the English description above appears as a single line below the select box. Like Celsius and bps in the unit options, this text is a technical notation attached to the symbol, so it is shown in English in every language.

Caution

< and <= require NMS Manager 1.3.3 or later

Managers on 1.3.2 or earlier cannot save or evaluate these two operators. When the manager version is insufficient, the two items are not shown in the options at all, and the message "Operators '<' and '<=' cannot be used on manager versions earlier than 1.3.3. Upgrade the manager." appears below the select box.

If the manager version cannot be read, it is also treated as unsupported and the same message is shown.

If you open a rule already saved with < or <= on a manager running 1.3.2 or earlier, the saved value remains in the select box. It does not disappear from the list, so you can still tell what is saved.

Deleting a rule

Click the Delete icon in the list to see the following confirmation message.

Caution

Delete this rule?

Any profile mapping using this rule will change to No rule. Continue?

Click confirm to delete the rule. Check items in profiles that used this rule only have their rule link removed — the items themselves remain unchanged.