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