Skip to content

Instantly share code, notes, and snippets.

@drscream
Created April 29, 2023 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drscream/35d4626eceea6d055bd1cd14a452bcf9 to your computer and use it in GitHub Desktop.
Save drscream/35d4626eceea6d055bd1cd14a452bcf9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
vmadm list -o uuid,alias -Hp | while read line; do
arr=(${line//:/ })
size=$(zfs list -H -o used zones/${arr[0]})
echo -e "${size}\t${arr[1]}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment