Last active
November 12, 2018 21:15
-
-
Save ntrogers/66957ad310e09f25bfc8de3794ce3df1 to your computer and use it in GitHub Desktop.
[Xenserver commandes] #Xen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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