Jump to content
Welcome to our new Citrix community!
  • 0

xe vm-list, filter on uuid of several machines with one command?


Jason Davis1709157056

Question

2 answers to this question

Recommended Posts

  • 0

VMS=`xe vm-list | grep -E 'a40a|0146' | awk '{print $5}'`
for VMSU in $VMS
do
  xe vm-list uuid=$VMSU
done
 

Result:

uuid ( RO)           : 2a698fe1-a40a-3295-92a1-67d1662604ac
     name-label ( RW): PC1
    power-state ( RO): halted


uuid ( RO)           : b0b5b91e-0146-19ac-f8ab-8ea2450a6c31
     name-label ( RW): PC2
    power-state ( RO): halted

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...