Viewing the rules listing
Rules are used to provision, update, and audit or enforce a configuration standard. TrueSight Network Automation rules are listed on the Rules page. Through the Rules Filter page, you can filter the list of rules based on various attributes.
To view the list of rules
- Navigate to Network > Scripts > Rules.
In the figure, theicon indicates that a rule is not correctable and the
icon indicates that a rule set is disabled.
A rule is correctable if it meets the following conditions:- The rule belongs to an enabled rule set.
- The rule is active.
- One or more corrective actions are defined for the rule.
- If all of the corrective actions require that a compliant configuration must be constructed (for example, all the actions are Deploy To Active or Deploy To Stored for a configuration complying with this rule), the rule grammar is correctable. That means the system must be able to generate the compliant configuration by adding or removing lines. Some combinations of domain/subject type and frequency cannot be corrected (for example, domain of OS Image, or an additive subject of Pattern/Patterns with no corrections).
(Optional) Perform one of the following tasks by using the menu options that are available on the Rules page:
Menu option
Description
Views
Display rules matching a favorite view. See About-lists-and-views and Managing-and-sharing-views.
Filter
Filter the rules list based on selected criteria.
Add
Add a rule. See Adding-or-editing-a-rule.
Refresh
Refresh the list with any recent updates.
(Optional) Perform one of the following actions by clicking an icon in the Actions column on the Rules page:
Action
Description
Edit
Edit the rule. See Adding-or-editing-a-rule.
Copy
Copy the rule
Note: Any association between a rule and a security vulnerability is not copied.Delete
Delete the rule
To define a filter for the rules listing
- Select Network > Scripts > Rules.
- Click the Filter menu option above the list of rules.
Enter the following optional parameters as described in the following table:
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
- Click Submit.
The rules list is displayed with the indication View: [Filtered Rules]. The filter criteria also are displayed at the top of each column. - Perform any of the following optional actions:
- To refine the filter, click Filter again. Your previous selections persist in the dialog box.
- To save this view for re-use, click Views > Save View.
- To remove the filter, click Views > Show All Rules.