CMDB Health - Orphan Remediation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2025 11:59 PM
Hi All,
I'm looking into remediating several health issues with our CMDB.
One significant issue is the number of Orphan Records on the estate, currently circa 50k+
Will using remediation rules therefore generate 50k tasks, one per CI, or just one task?
I've tried to report on this in list view, but can't find any way to generate the list of CIs to allow manual deletion.
Failing this, is there any suggestion as to how I can bulk delete the Orphan CIs, we're only targeting the application class currently?
Current Metric is "Application" has no Runs "On:Runs" relationship.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 03:45 AM
You could query to the Health results and from there to the cmdb_ci table for the found CI's to do a multi delete, but you are correct. The answer given deletes the health result records. Not very helpful from a ServiceNow Employee.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 07:24 AM
The health result has classname and ci value and multi delete that is suggested is on the classname of the ci and not on the health result. Nothing needs to be deleted from the health result, when the health job runs again it automatically deletes the invalid(deleted CI) records.
Script would look something like this and replace required class names and would suggest to do a dry run before deleting records.