Retired ESX server will be changed to "Installed" by servicenow discovery

creelyu
Tera Contributor

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.

8 REPLIES 8

adilrathore
ServiceNow Employee
ServiceNow Employee

The status is set through script include VCenterSensor. This issue is also highlighted in the below post:

 

https://www.servicenow.com/community/itom-forum/discovery-changing-the-status-of-the-esx-servers/m-p...

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.

adilrathore
ServiceNow Employee
ServiceNow Employee

Can you check if the VCenterDatacentersSensor Script include is on the latest version as it also has the logic to set the ESX status.

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".