How Operational status field gets synced wrt other fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2024 09:04 AM - edited 08-18-2024 10:56 AM
How Operational status [Operational_status] field on a CI form gets synced wrt other fields?
I understood that this BR does the job - "Sync ops status for CMDB CI", if yes, can anyone tell me how the sync works (I am not able to understand that script 🙂 )
Only for few values of Operational status, it syncs with Hardware status field, but not all. So need to understand that script.
In other words, need to know on which CI classes this field can be used? We already have Hardware status, Install status. WHY this field? What is the use case?
Thanks in advance!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 05:40 AM
Anyone?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 06:47 AM
Below is the logic on how the Operational Status is set on cmdb_ci_vm_instance by Cloud Discovery:
☞ If the VM state is on or off in the Cloud Provider (e.g. AWS, Azure), then the Operational Status is set to Operational.
(Default value of the Operational Status field)
☞ If the VM state is terminated, and the VM still exist in the Cloud Provider, then the Operational Status is set to Retired.
(By Business Rule "Retire/revive CI" on cmdb_ci_vm_instance)
☞ If the VM has been terminated, and has been cleaned up in the Cloud Provider, then the Operational Status is set to Non-Operational. This I got from Servicenow support.