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
| Column | Description |
|---|---|
| No. | List sequence number |
| Rule name | Rule name |
| Judgment method | Displayed as a badge: threshold, count, contains, or regex |
| Warning condition | Condition judged as warning. Shown as N/A for contains·regex methods |
| Critical condition | Condition judged as critical. Shown as the value only for contains·regex methods (e.g. down) |
| Unit | Unit of the threshold value. Shown as N/A for contains·regex methods |
| Actions | Edit and delete icons |
Adding or editing a rule
-
Click the Add Rule button at the top right (to modify an existing rule, click the Edit icon in the list instead).
-
Configure each field in the popup, then click the save button.
| Field | Required | Description |
|---|---|---|
| Name | Required | Name to identify the rule |
| Judgment method | Required | Refer to the table below to select the method that fits the check result |
| Warning condition | Enter an operator and value only when the judgment method is threshold or count. For contains or regex, enter only a value | |
| Critical condition | Same input rules as the warning condition | |
| Unit | Enter only when the judgment method is threshold or count | |
| Description | Optional description memo for the rule |
Behavior by judgment method
Changing the judgment method automatically switches the input fields.
| Judgment method | Operator | Value | Unit | Judgment criteria |
|---|---|---|---|---|
threshold | Choose from >=·>·<=·<·==·!= | String parsed as a number | Used | Judges whether the result value satisfies the specified numeric condition |
count | Choose from >=·>·<=·<·==·!= | String parsed as a number | Used | Judges by the number of result rows matching the condition |
contains | Not used | String to search for | Not used | Judges whether the execution result contains the specified string |
regex | Not used | Regular expression pattern | Not used | Judges 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.
| Operator | Description |
|---|---|
>= | 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.
< 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.
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.