Hello, I am trying to get the power state for EX 3.0 host, but a null pointer is returned for HostSystemPowerState object. However, the hosts are up and running. Can we retrieve power state for ESX 3.0 or it is not supported by the SDK? It seems to work for ESX 3.5 and above and I am using 2.5 SDK.
Here is the snippet that I used to get power state:
HostSystemPowerState hsps = hls.getRuntime().getPowerState();
where hls is HostListSummary type and hsps is null.
Any answer is much appreciated.
Thank you,
Sushant Dhakal