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

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.