Sunday, May 23, 2010

Script to shut down

From the ESX Service Console, you can run a short script to shut down all running VMs that are registered on the host. The following script will enumerate the running VMs, try to first shut them down gracefully, and power them off if a graceful shutdown is unsuccessful:

vmware-cmd -l | xargs -i'{}' vmware-cmd '{}' stop trysoft hard
More vQuotes

No comments:

Post a Comment