Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- vms=$(dc list -aHo name,esx_host | awk '{if ($2 != "-") print $1}')
- for vm in $vms; do
- echo $vm
- dc power off $vm &
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement