Discovery Changing the status of the ESX Servers

Ashish Nahar
Kilo Guru

We have a problem since we upgraded to Fuji, whenever a esx server gets identified, it changes the status of the CI in the CMDB to installed or in maintenance, we do not want discovery to control the status of the CI's and this is happening only for ESX server, any idea where to look for.

1 ACCEPTED SOLUTION

stevefrancis
ServiceNow Employee
ServiceNow Employee

This is getting set in the script include "VCenterSensor".   In Fuji, lines 282 & 283 are:



// Is the host in maintenance mode?


objectData.install_status = "" + thisObj.getXmlAttribute(object, 'runtime.inMaintenanceMode') == 'true' ? '3' : '1'; // Maintenance = 3, Installed = 1



Comment out the second line.   Note that once you do do this you "own" the script include and it won't be upgraded when you move to a later release.   You'll need to get the upgrade manually for the script and re-apply the change.


View solution in original post

1 REPLY 1

stevefrancis
ServiceNow Employee
ServiceNow Employee

This is getting set in the script include "VCenterSensor".   In Fuji, lines 282 & 283 are:



// Is the host in maintenance mode?


objectData.install_status = "" + thisObj.getXmlAttribute(object, 'runtime.inMaintenanceMode') == 'true' ? '3' : '1'; // Maintenance = 3, Installed = 1



Comment out the second line.   Note that once you do do this you "own" the script include and it won't be upgraded when you move to a later release.   You'll need to get the upgrade manually for the script and re-apply the change.