Retired ESX server will be changed to "Installed" by servicenow discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2022 07:13 PM - edited ‎10-24-2022 10:54 PM
Hi We have a ESX server, it is changed to "retired" via customer request. However, it is changed to "Installed" after the discovery. Could anyone know where is the code that changes the ESX server's status back to "Installed". I did a test that if the ESX server is changed to "In stock", "On order" or any other status value other than "Retired", it will not be changed to "Installed" by discovery. However, if it is changed to "Retired", it will be changed back to "Installed" after discovery. But I did not find the code behavior in discovery script include. If anyone knows the code, please help to tell me. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2022 04:30 AM
The status is set through script include VCenterSensor. This issue is also highlighted in the below post:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2022 06:18 AM
I commented the line in the code. But the status is still changed to "Installed" when it was "Retired". So it is not the code that caused the behavior I mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2022 12:48 AM
Can you check if the VCenterDatacentersSensor Script include is on the latest version as it also has the logic to set the ESX status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2022 12:53 AM
any codes that indicate it is the latest version? I did see some codes that set ESX to "Retired". But I did not see any codes to set ESX to "Installed".