Refreshing the status of a device
A job with the Refresh Device Status action refreshes the compliance violations, discrepancies, configuration attribute profiles, and device attributes configurations for a network span without performing a snapshot. The refresh is performed using the current configurations and settings. If new discrepancies or violations are found during the refresh, events are logged and change policies are triggered (for example, send SNMP trap).
Understanding when to refresh
The following table presents the recommendations for when to perform the various refresh actions:
Tips on when to force a compliance check
Submit a Refresh Device Status span action under the following conditions:
- Initially, when creating a set of rules, do not enable the rule set until rules have been tested.
- Always test new rules and grammar changes before submitting a Refresh Device Status span action.
- Use the View Trace link in the Compliance Summary report to test rules. The View Trace shows exactly how TrueSight Network Automation applies the rule to the configuration.
- When the rules are functioning correctly, submit a Refresh Device Status span action to force a compliance check where discovered violations are logged, policies are triggered and the Dashboard is updated.
To run the Refresh Device Status action
- On the Add Job page, select Add Actions > Span Actions > Refresh Device Status.
Enter information in the following fields:
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
- Select the items that you want to refresh, any combination of the following:
- Compliance Violation Status: To re-evaluate the applicable enabled rule sets and rules against the current configurations.
- Discrepancy Status: To re-compute discrepancies based on current running and startup configurations and current device adapter contents.
- Configuration Attribute Profiles: To re-extract values from the current configurations based on the applicable enabled dynamic fields.
- Device Attributes Configuration: To re-generate the current device attributes configuration.
- Take offline if no successful snapshot within the past number days: To set devices offline that are malfunctioning.
- To execute the Refresh Device Status action for multiple devices in the network span concurrently, select the Run in Parallel option.
This option improves the efficiency of the refresh. By default, TrueSight Network Automation runs up to 20 span actions concurrently. See your system administrator if you want to change this default. - Click Save to add the action to the job.