I'm having a problem with a script I use when a vcenter alarm fires off - EnteringMaintenanceMode in this case, but I don't think that the issue is tied to this Alarm.
I know the script works fine. I've done the debugging on it, and when there are a small number of guests on the host, it does what it needs to do perfectly. When there are a large number of guests on the server however is when I have issues. The issue isn't related to the number of guests, but to how long it takes to vMotion them off (my script has a sleep loop, waiting for guests to be evacuated).
If my script is still running after 5 mins, vCenter kills off the script. You can sit and watch powershell.exe in the Task Manager process window, and after 5 mins, powershell.exe is terminated.
Now, in theory I have no issue with vCenter cleaning up and killing off scripts that are taking too long to complete. The problem is that I can't configure the 5 min before killing period.
I've been digging off and on for a couple of months now, and I can't find anything about changing the timeout period. Does anyone know any way to change it?
G