To get the UUID:
xe vm-list | \
awk '{if ( $0 ~ /uuid/) {uuid=$5} if ($0 ~ /name-label/) \
{$1=$2=$3="";vmname=$0; printf "%s - %s\n", vmname, uuid}}'
Then:
xe vm-param-get uuid=<uuid from above> param-name=PV-drivers-version
Example output:
major: 6; minor: 2; micro: 0; build: 6
major: 6; minor: 2; micro: 0; build: 7 (update http://support.citrix.com/article/CTX142219)
Thanks: http://larryn.blogspot.com.au/2012/02/list-of-vms-on-xenserver-with-uuids.html
No comments:
Post a Comment