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