CMDB CI Relationship automatic deletion

StevenPacada
Tera Contributor

Hello,

Does ServiceNow discovery automatically delete relationships that are no longer discovered?

Ex:

1. Server and Switch has IP Connection relationship.

2. Server is moved to a different location therefore it has different Switch connected to it.

 

With the use case above, will ServiceNow delete the relationship of the first? If so, how long does it have to wait before it does?

 

Thanks,

Steven

1 ACCEPTED SOLUTION

Josh_H
Giga Guru

Hey @StevenPacada,

 

OOB SN does not automatically delete the relationships. What you're looking for is called a "Deletion Strategy." You would need to set a deletion strategy for handling such scenarios.

 

For your use case, you will need to set the deletion strategy for the relevant CI types to manage such cases. For instance, if you want to delete the relationship between the Server and the old Switch when the Server moves to a different location, you would need to set the deletion strategy to “Delete relations” for the related CI type. Hope this helps!

 

Here's the documentation on it:

https://docs.servicenow.com/bundle/washingtondc-it-operations-management/page/product/discovery/task...

 

Cheers,

Josh

 

If you found this helpful please give a thumbs up OR mark it as the solution. Thank you!

View solution in original post

4 REPLIES 4

Josh_H
Giga Guru

Hey @StevenPacada,

 

OOB SN does not automatically delete the relationships. What you're looking for is called a "Deletion Strategy." You would need to set a deletion strategy for handling such scenarios.

 

For your use case, you will need to set the deletion strategy for the relevant CI types to manage such cases. For instance, if you want to delete the relationship between the Server and the old Switch when the Server moves to a different location, you would need to set the deletion strategy to “Delete relations” for the related CI type. Hope this helps!

 

Here's the documentation on it:

https://docs.servicenow.com/bundle/washingtondc-it-operations-management/page/product/discovery/task...

 

Cheers,

Josh

 

If you found this helpful please give a thumbs up OR mark it as the solution. Thank you!

Thanks a lot Josh!

 

Is there a way to know if the relationship between the CIs is stale or not without having to delete the relationships and having ServiceNow Discovery recreate it? The CIs are still discoverable after all, I need to know if the relationships are still valid or not.

 

Thanks,

Steven

 

You should be able to view that information on the CMDB dashboard. It would show orphan or stale relationships.

 

Docs:

https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/configuration-manag....

 

Cheers,

Josh

Thanks Josh, I was wondering if there is a way to know if a relationship is "stale" while both parent and child CIs are still discoverable. If the relationships ServiceNow created 2-3 years ago are still valid, since the roundabout solution is to delete the relationships and making ServiceNow Discovery recreate them to know if the relationships are still there.

 

Thanks,

Steven