I need to find out the whether an ESX host is managed by a VC or not ? And I need to find out by querying ESX Host Web Service running on ESX Host by using an HOST SDK API. I do not want to go t...
See more...
I need to find out the whether an ESX host is managed by a VC or not ? And I need to find out by querying ESX Host Web Service running on ESX Host by using an HOST SDK API. I do not want to go through via VC SDK Web Service. I tried to use HostSystem.QueryHostConnectionInfo()[/b] by calling on ESX Host Web Service connection, which returns HostConnectInfo, this object contains a member "serverIp" whose value as explained in VI SDK Reference guide: The IP address of the VirtualCenter already managing this host, if any.", But this property shows as "Unset" when I queried on ESX Host Web Service connection. But the same HostSystem.QueryHostConnectionInfo() by calling on VC Web Service connection, returns this property as my VC IP address (serverIp=xx.xx.xx.xxx) And also even I tried to check HostRuntimeInfo. connectionState, but this is always returning connected on ESX, but returns connected / "disconnected on VC based on the current state. So even this property from ESX Host Web Service is also not useful to find whether ESX is managed by the VC or not. Is there any one who knows any other reliable way to find whether ESX is managed by a VC or not by querying directly ESX web service ?