Make CI status to Absent

Phani deepthi1
Tera Contributor

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

7 REPLIES 7

Michael de Boer
Giga Guru

You can create a scheduled job to check the CI attribute "Most recent discovery" or "Updated" daily.
If that value is older than 10 days, set the status to "absent".

Regards,

Michael

Regards,
Michael

Please mark the suggestion as helpful/like, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided has resolved your query.

Thanks for the reply Michael. Yeah working on that but I wanted to know is there a way to find the server is pingable or not. Because we need to know if the server is pinging or the server is inactive.

Maybe you can do something with the table "discovery_log"?
That contains the IP Addresses that discovery tries.

Regards,

Michael

Regards,
Michael

Please mark the suggestion as helpful/like, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided has resolved your query.

Hi Deepthi

I see 2 use case here

Server is not discoverable/Updated because that server is not on n/w

Server is on n/w but not discoverable because of Infra or User access issue.

Now please define in which use case you treat server as ABSENT?

Your configuration management process docs should talk about this and accordingly you can plane your script.

Hope this helps.

Regards

RP