Last question for today!!
I notices while extracing a report from our older ESX box, that it triggered our server monitoring (of pings) that the server was "down".
Now for the reports, i don't care if they take twice as long as they should.
Is there a way to tell the API to provide gaps on requests to the vmware servers at a generic level ?
or is it up to me to place SLeeps inside the PowerShell commands ?
Context - ESX 4, vCenter / ESXi 5.5
Many thanks
Afaik, the API don't provide this feature.
So your script should handle any pauses.
But to make sure I get the problem, you do a Connect-VIServer to the vCenter (from your PC) and then run a script to produce a report for a specific ESXi server.
While this report runs, the ESXi server is offline.
Is that correct ?
Does the ESXi stay offline during the complete run of the report ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
But to make sure I get the problem, you do a Connect-VIServer to the vCenter (from your PC) and then run a script to produce a report for a specific ESXi server. YES
While this report runs, the ESXi server is offline.
Is that correct ? NO, the monitoring of our server THINKS it is offline because it has not responded in time to a ping.
Does the ESXi stay offline during the complete run of the report ?
I don't believe the server is offline, it is purely a loading issue on the server caused by the script in a hard loop returning many VMs info.
thanks
Strange, never seen that before that API call to an ESXi has such an impact on responsiveness.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference