Deleting undiscovered CIs

ServiceNow Adm1
Giga Contributor

Hi Guys,

Do we have any setting or property in Discovery or anywhere in instance to delete or mark CI as retired if it is not discovered in the last few days?

5 REPLIES 5

sayali udgave
Kilo Guru

Hi,

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.

 

 

https://community.servicenow.com/community?id=community_question&sys_id=ddd9cfe5db5cdbc01dcaf3231f96...

 

https://community.servicenow.com/community?id=community_question&sys_id=73615b2ddbdcdbc01dcaf3231f96...

 

hope this helps.

 

Thanks

Sayali

p_espinar
Kilo Guru
Hi Rajnikanth,
 
there is no OOTB setting for doing that. The usual solution is to develop a scheduled daily job with a script marking CI's as Retired if they have not seen, for instance, for the last 90 days.
 

Un saludo,
Pablo Espinar
Consultant at Econocom Spain

Please mark this response correct if I've answered your question. Thanks!

DaveHertel
Kilo Sage
Kilo Sage

Consider checking out Doug & Ryan's workshop from a few years ago for tips on handling CI lifecycle.  While a few years old, lots of good stuff in here 

Discovery Optimized 301

https://community.servicenow.com/community?id=community_article&sys_id=aacca265dbd0dbc01dcaf3231f961...

 

Also, consider taking the self paced and free SN CMDB Fundamentals course that was recently released   A snippet of the agenda covering CMDB Health: 

 

Hope this helps?

Suresh Telu
Giga Contributor

While I agree to what Dave and p.espinar advised, 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.

Hope that helps!

If it did, please mark as Helpful and consider setting the reply as the Correct Answer to the question, thanks!