Skip to content

Instantly share code, notes, and snippets.

@kakwa
Created December 7, 2015 16:45
Show Gist options
  • Save kakwa/4dd7356d045e4f66632a to your computer and use it in GitHub Desktop.
Save kakwa/4dd7356d045e4f66632a to your computer and use it in GitHub Desktop.
start all vms on an esxi host
#!/bin/sh
vim-cmd vmsvc/getallvms | awk '{print $1}' | while read id; do vim-cmd vmsvc/power.on $id;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment