Viewing automation policy runs history
To view the policy run history
- Click History and view the following information:
- Total number of successful, running, failed, waiting, and rejected automation policies.
By default, the timeout period for a policy is 2 days. If a policy run is in a running state for more than two days, it is marked as failed. - Start date and time
- Automation policy name
- Event ID: Double-click the Event ID to copy it to the clipboard. Use the copied Event ID to simplify the search for specific records in BMC Helix Intelligent Automation.
- Execution Mode: Manual or Automatic
- Status
- Duration taken for the policy run
- Ticket ID: Click the change request ID to view the Ticket ID, Status, Approver name, and the date of approval for the change request. After the change is approved, the policy runs on the target applications.
- The instance ID of the policy run
- Total number of successful, running, failed, waiting, and rejected automation policies.
- (Optional) Click the column selector
to select or clear the columns that you want to display on the History page.
- To view additional details about a policy run, click a policy name.
In the Policy Details dialog box, the following details are displayed:- The actions executed during the policy instance execution in the left pane,
The status of the action and other details are in the right pane in JSON format.
For a failed policy, the reason for the failure is displayed in the right pane.
In the following example, the Policy Details dialog box shows the status and the ticket details when a Create or Update Trouble Ticket policy is run.
Similarly, the following image shows the details of the information event created in BMC Helix Operations Management as part of the trouble ticket creation.
Policies that consist of Ansible Tower and BMC Helix Innovation Studio actions execute the actions asynchronously. Hence, after the actions are executed in the applications, the policy details dialog box shows the updated status.
- Click Close.
To search for policy runs
By default, the history page shows policy runs from the last 24 hours. You can search for policy runs by entering the Event ID or Automation Policy, with the default set to Event ID.
For an advanced search, perform the following steps:
- Click Advanced filter and do one of the following options:
- From the available filters, select a filter and choose any of the filter options:
- Execution Mode
- Status
- Policy Tags: Specify a key-value pair to search based on the tags added to a policy.
For more information about tags, see Creating-automation-policies.
- Enter the filter name in the text field, or to build a search expression, type the filter name and select the option from the list of available options.
For example, if you start typing Status, status options appear.
- From the available filters, select a filter and choose any of the filter options:
- Click Apply filters.
The policy runs that match your filters appear. The numbers in the total number widgets also change based on the specified filters.
To resume incident or trouble ticket creation
If the Create or Update Incident Ticket and the Create or Update Trouble Ticket automation policy runs have been in a waiting state for a long time, you can use the Resume Queue option to restart executing incident or trouble ticket creation for these events.
- On the History page, search for the policy run name.
- Click to open the policy run.
- Click Queue Details and then click Resume Queue.
A Resume Queue option is available when all policy runs are in a waiting state. After you click this option, the last waiting policy run moves to the running state. Additionally, this option is available when a policy run has been running for more than 30 minutes. Clicking it marks the running policy run as failed and moves the next waiting policy run to the running state.
To delete policy runs history
By default, the Bulk Actions option is enabled. To manage the policy history efficiently based on your organization's requirements, perform the following steps:
- (Optional) Click Advanced filter, and do the following:
- Click Status.
You can use the bulk actions option only when you sort the policy runs with a status filter. If you select a different filter, this option gets dimmed. - Select one or more filter criteria from the available options in the status filter.
- Click Apply filters.
The filtered policy runs are displayed on the History page.
- Click Status.
- (Optional) From the History page, click the date range filter
- Select Start and End date.
- Select the Relative time period.
- In the time field, enter and select the time for which you want to search the policy run.
- From the History page, click Bulk Actions > Delete Automation Runs to delete selected policy runs.
- The following message is displayed depending on your filters.
- Click Confirm.
The filtered policy runs will be deleted within the estimated time. You cannot perform another bulk delete action before the current action is complete.