Make CI status to Absent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2022 03:17 AM
Hi All,
We are working on discovery issues and we need to know is there a way to mark the status of CI to Absent when the server is not pingable or active for 10 days in CMDB.
Please help if there is a way to achieve this through script or any custom pattern needed.
Thanks
- Labels:
-
Discovery
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2022 02:04 PM
Hi
If you are running discovery it is better to have a scheduled job to check the 'Most Recent Discovery' field. For example, you could create a scheduled job that checks the Hardware table (cmdb_ci_hardware) for assets that haven't been discovered in x amount of days i.e. where Most Recent Discovery is more than 10 days back in your use case. Then the state is set to Absent.
You could then also create a report that shows you these CIs/Assets that have not been discovered in more than 10 days.
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2023 11:08 PM
Can anyone help with 14 days ago filter ,We want to make our CI absent if its not updated from more than 14 days ,I tried couple of filter but its not showing correct data ,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 12:19 AM
U need to write a small script in the form of scheduled Job.
Most CurrentDate-MostRecentDiscoveryDate>=14
Fetch all the record from CMDB_CI table
Update the Status as Absent
For ur current filter try this
Regards
RP