Deletion strategy for CMDB CI

Sudharshan Mohi
Tera Contributor

We have a requirement to delete CMDB CI records (windows) if they are not discovered after 90 days. This is not applicable for all but differes for few - Unix and ESX CI which comes with 60 days deletion period.

Where to set Deletion CI configuration in Discovery.

1 ACCEPTED SOLUTION

User511834
Tera Expert

To accomplish this you will need to do three things:

1. Set the Staleness Rule for the Windows Server CI Class to 90 days as below:

find_real_file.png

2. Create a workflow to delete the Windows Server CI if it's stale

find_real_file.png3. Create a CMDB Remediation Rule

find_real_file.png

Also, make sure that the Create Task option below is turned on for staleness rule, otherwise the remediation task will not be created:

find_real_file.png

Instead of deleting the CI you could also change the CI to Non-Operational and its status to retired, that would be preferable rather than deleting things via workflow, you can then review these retired CIs and delete them as needed:

find_real_file.png

View solution in original post

5 REPLIES 5

Mahak2
Kilo Guru

Hello,

Why do want to delete CI's? Is there any specific reason?

The best way to handle inactivation of CIs is to use the Status (install_status) field. The default value of "Installed" means that the CI is active. The choice of "Retired" is used as inactive.

Also ,another way of achieving the same result without writing any scheduled jobs or business rules is - create a data refresh rule for the data source 'ServiceNow' using CI class manager for the CI class you want and specify the duration you need.

The CI will be set to stale in the Status field if the CI is not updated within the duration specified. You will also be able to see these CIs as stale in the CMDB Health Dashboard as well. On periodic basis, you can review these stale CIs and verify whether they are retired or is there any other issue preventing them to be discovered.

Please mark as Helpful and consider setting the reply as the Correct Answer to the question, thanks!

User511834
Tera Expert

To accomplish this you will need to do three things:

1. Set the Staleness Rule for the Windows Server CI Class to 90 days as below:

find_real_file.png

2. Create a workflow to delete the Windows Server CI if it's stale

find_real_file.png3. Create a CMDB Remediation Rule

find_real_file.png

Also, make sure that the Create Task option below is turned on for staleness rule, otherwise the remediation task will not be created:

find_real_file.png

Instead of deleting the CI you could also change the CI to Non-Operational and its status to retired, that would be preferable rather than deleting things via workflow, you can then review these retired CIs and delete them as needed:

find_real_file.png

Prashant Ahire
Kilo Sage

@User511834 

- How is this Staleness Rule Triggered?

- How can we test this process

Hi @Prashant Ahire,

 

The Staleness Rules are part of the CMDB Health.
The CMDB Health jobs run daily (when activated). The jobs names start with "CMDB Health Dashboard".

But why do you want to delete CI's?
It's best practice to set the status to retired. 
When you delete the record you don't have any history anymore or any relations with incident for example.

 

Regards,
Michael

Please mark the suggestion as helpful/like, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided has resolved your query.