Create a CMDB Data Manager policy in CMDB Workspace
- UpdatedJan 30, 2025
- 10 minutes to read
- Yokohama
- Configuration Management
Create a CMDB Data Manager policy to automatically process CIs life-cycle events 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.
For more information about retirement definitions, see Retirement definitions.
- Verify that any custom subflow that you want to associate with a policy exists:
- Navigate to Management in the CMDB Workspace menu bar. and then select
- Select the Data Manager link in Management tools, in the Manage section.
- Select Subflows in the navigation bar on the left.
- Review the subflows on the Data Manager subflows page, and drill down to a subflow to open it in Workflow Studio.
- Select Create new subflow to create a new subflow in Workflow Studio.
- 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's an asset record associated with that CI before retiring the CI. Check the associated asset record, if there's one, and verify that its asset state (install_status) is Retired.
Role required: sn_cmdb_admin
About this task
Specify for each policy a policy type, a subflow for life-cycle policies, a set of CIs to operate on as target CIs, and any other options specific to the selected policy type. Target CIs must typically 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. However, the Certification policy type for example, also supports non-CMDB tables.
For more information about life-cycle state definitions and other concepts for working with the CMDB Data Manager, see Working with CMDB Data Manager.
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 isn't 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's 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
- Publish a draft Data Manager policy in CMDB Workspace.
- On the Policies page, in the Published policies list view, select a policy to see policy details on a policy form. Select View Policy to see the settings in all of the policy form pages.
- For On demand policies, the system generates a scheduled job prefixed with the policy name. To run such task:
- Navigate to .
- Select the scheduled job for the task policy that you want to run.
- On the scheduled job form, select Execute Now.
- On the Policies page, in the Published policies list view, select a policy that you want to deactivate. On a policy form select Deactivate Policy to temporarily prevent the policy from running.
- Select 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 initially staged for archival for example).
- Users log in to the CMDB Workspace to review and process attestation tasks assigned to them.
- Users log in to the CMDB Workspace to review and process non-attestation tasks assigned to them.