sandeepkalekar
Contributor
Contributor

Vmware perl SDK API to be used to check the host status after RebootHost_Task API

I am using RebootHost_Task API, pinging the ESX server to check if it is up(using Net::Ping module) and then using ExitMaintenanceMode_Task to exit the maintenance mode for the ESX server.

I sometimes get InvalidHostConnectionState fault when I trigger ExitMaintenanceMode_Task. This is because even though the ESX host is pingable, the SOAP request is unsuccessful. Which Vmware perl SDK API can be used to check the host status before triggering ExitMaintenanceMode_Task aPI

Reply
0 Kudos