Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. for i in $(vim-cmd vmsvc/getallvms | awk '$1 ~ /[0-9]+/ {print $1}'); do
  2.   if vim-cmd vmsvc/power.getstate $i | grep -q "Powered off"; then
  3.     printf "box%d is powered off\n" "$i"
  4.     # echo "box$i is powered off" # or this
  5.   fi
  6. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement