CMDB–Update CI status to Absent based on staleness with relationship and correctness rule validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hello Everyone,
We are working on a CMDB use case where we want to automatically update the Lifecycle Status of certain CIs to Absent if they are no longer being discovered.
For the below 5 CI classes, if a CI has not been discovered in the last 60 days, we want to update the CI’s Lifecycle Status to “Absent.”
CI Classes in Scope
- MS SQL Database
- Oracle Instance
- Linux Server
- VMware Virtual Machine Instance
- Virtual Machine Instance
Exception Conditions (When NOT to mark CI as Absent)
Even if the CI is not discovered for 60 days, we do not want to update the CI to Absent if any of the following conditions are true:
1. Active Parent Relationship Exists
If the CI has any parent relationship where the parent CI is NOT in a “Retired” state, then the CI should remain active and should not be marked as Absent.
Example:
- A Database CI is contained by an Instance or Server that is still Installed/Active.
- A VM is hosted on an ESX server that is still active.
2. Correctness Rules Are Satisfied
We have configured Correctness Rules in CI Class Manager for each class.
If a CI has relationships defined in the correctness rules, then it should also NOT be updated to Absent, even if it is stale from discovery.
Below are examples of correctness rules configured:
MS SQL Database
- Must NOT be marked incorrect/absent if:
- Contains :: Contained by → MSFT SQL Instance
Oracle Instance
- Must NOT be marked incorrect/absent if:
- Used by :: Uses → Mapped Application Service
- Hosted on :: Hosts → Server
- Contains :: Contained by → Oracle Database
Linux Server
- Must NOT be marked incorrect/absent if:
- Installed on :: Runs → Mapped Application Service
- Hosted on :: Hosts → Hyper‑V Server
VMware Virtual Machine Instance
- Must NOT be marked incorrect/absent if:
- Hosted on :: Hosts → ESX Server
Virtual Machine Instance
- Must NOT be marked incorrect/absent if:
- Hosted on :: Hosts → ESX Server
- Hosted on :: Hosts → Hyper V Server
(Reference screenshots attached for correctness rule configurations.)
1. MS SQL DataBase Rule
2. Oracle Instance
3. Linux Server
4. VMWare Virtual Machine Instance
5. Virtual Machine Instance
Please help me here is there any way to implement the solution for it?
