Create a CMDB Data Manager policy (in Core UI)
Create a policy in the CMDB Data Manager legacy build on Core UI to automatically process CIs life cycle event such as deletion. Applying consistent and standard life cycle policies to CIs helps maintain the health of the CMDB.
Before you begin
- The life-cycle policies Retire, Archive, and Delete, require that an active retirement definition exists for each targeted class in the policy. If you attempt to create a policy of a policy type for which this requirement applies but isn't met, an error message appears and the operation fails.
- Ensure that any custom subflow that you want to associate with a policy, exists.
- To require a review and an approval for a policy task: Ensure that the Managed By Group attribute is populated in target CIs and that the assigned users have the privilege to approve the policy tasks.
- When Asset Management is activated, check if there is an asset record associated with that CI before retiring the CI. Check the associated asset record, if there is one, to ensure that the asset state (install_status) is Retired.
- data_manager_admin: Full access to policies
- data_manager_user: Can read and preview policies
About this task
Specify for each policy a policy type, a life-cycle subflow, and a set of CIs to operate on as target CIs. Target CIs must be from classes extending the Configuration Item [cmdb_ci] table, and with the Delete CMDB Related Entry policy type, also tables in the Related Entries [cmdb_related_entry] table.
- CIs that meet the policy filters but aren't retired according to the class retirement definitions, aren’t targeted for the policy.
- A filter on the Life Cycle Stage or the Life Cycle Stage Status attributes has no effect if the respective class retirement definition is based on those attributes.
- About life cycle state definitions, see Working with CMDB Data Manager.
- About creating a policy in the CMDB Data Manager in CMDB Workspace, see Create a CMDB Data Manager policy in CMDB Workspace.
Procedure
Result
After you publish a policy:
-
A daily scheduled job processes the published policy and policy tasks are assigned as set in the policy. If the policy is associated with a subflow, then policy tasks trigger the policy subflow. Policy execution issues are recorded in an error log with notifications sent to the CMDB Data Manager Administrator.
If the policy is configured to require an approval for its tasks, then email notifications are sent to members of the assignment group in the Managed by Group attribute of the CI. If the policy is associated with a subflow, then a policy task triggers the policy subflow only after the task is approved.
- If the policy is associated with a subflow, then after a policy task is complete, the policy subflow closes the task. For an Attestation policy (which is not associated with a subflow), a user must process all CIs in the task and submit the task to close it.
- For Attestation policies, attestation tasks are assigned to users as specified, and those tasks appear in the CMDB Workspace when those users log in.
- For some policy types, such as Delete, the list of the target CIs is rolled up in a CSV file that is then attached to the task for tracking purposes.
- Stale tasks are set to Closed Cancelled by a daily scheduled job. A task becomes stale when it is still open and not approved after at least 90 days. The number of days after which a task is considered stale is determined by the cmdb.data.manager.stale.task.life.in.days system property.
What to do next
- Click View Open Tasks in the Open Policy Tasks tile to track the processing of policy tasks in the CMDB Data Management Task Control list view. The Success Percent column shows the percentage of CIs in the task, for which the task is completed. A CI is counted as complete in an archival task only after the archival process has been fully completed for the CI (and isn't counted as complete while the CI is just staged for archival for example).
- Users log in to the CMDB Workspace to review and process attestation tasks assigned to them.
- You can open a policy in CMDB Data Manager and click Deactivate to temporarily prevent the policy from running.
- Manage exclusion lists of CMDB Data Manager (in Core UI).