Dependent CI and Orphans

Amar_Be
Kilo Sage

Hi,

 

In the CMDB CI Class Manager a Class may be defined as a Dependent Class, which means that CIs from this class must be related to an another class as defined in the Dependent relationship.

 

In the CMDB Correctness dashboard,  the scheduled job " CMDB Health Dashboard - Correctness Score Calculation" retrieve all the CIs that do not comply with the Orphan rule defined on their class.

 

I thought that Dependent CIs that are missing a dependent relationship are automatically considered as Orphan. But it seems it is not the case.

I want that all dependent CIs that do not have a dependent relationship are reported as orphan CI. How to do that without explicitly configuring an orphan rule on each class?

 

 

 

3 REPLIES 3

Sandeep90
ServiceNow Employee
ServiceNow Employee

@Amar_Be The orphan in correctness job is run for the rules defined in the class manager, only those CIs that fail the rules are reported in orphan failures. 

 

Please set up your rules for which it need to be reported in order to view the failures. 

Thank you Sandeep,

 

But this is not my question.

I supposed that as dependent relationship are mandatory to create a dependent CI, it is obvious that dependent CIs without a dependent relationship (it happen if relationship is deleted after creation) will be reported by the Correctness job without having to define manually the rule for the dependent relationship.

 

Why it is not the case?

 

Sandeep90
ServiceNow Employee
ServiceNow Employee

The orphans for the dependent CIs can be identified and cleaned up using the DataManager orphan policy, please review it. 

https://docs.servicenow.com/bundle/xanadu-servicenow-platform/page/product/configuration-management/...