Skip to content

Instantly share code, notes, and snippets.

@ntrogers
Last active November 12, 2018 21:15
Show Gist options
  • Save ntrogers/66957ad310e09f25bfc8de3794ce3df1 to your computer and use it in GitHub Desktop.
Save ntrogers/66957ad310e09f25bfc8de3794ce3df1 to your computer and use it in GitHub Desktop.
[Xenserver commandes] #Xen
# List all VMs with their UUIDs
xe vm-list | awk '{if ( $0 ~ /uuid/) {uuid=$5} if ($0 ~ /name-label/) {$1=$2=$3="";vmname=$0; printf "%s - %s\n", vmname, uuid}}'
# List VMs and VDIs
xe vdi-list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment