TD134322 Posted January 4, 2023 Share Posted January 4, 2023 I know this is possible by embedding the vm-list, or similar, command within another command, but I can't find it for the life of me. For example, rather than using the UUID for the following command: xe vm-param-set uuid=fdaf01c5-3c41-478f-910d-fcf1b2e1538a affinity=25533e7a-4263-4c4f-8951-8d2ef9ed7245 You would use something like this: xe vm-param-set uuid='xe vm-list name-label=server1' affinity=25533e7a-4263-4c4f-8951-8d2ef9ed7245 I'm not sure of what goes in the uuid= parameter, it may not be an XE command at all, but do know there is a way to use the name-label over the UUID. Link to comment
0 Sergey Polyakov Posted January 6, 2023 Share Posted January 6, 2023 UUIDLIST= `xe vm-list name-label="server1" | grep "uuid ( RO) " | awk '{print $5}'` xe vm-param-set uuid=$UUIDLIST affinity=25533e7a-4263-4c4f-8951-8d2ef9ed7245 Link to comment
Question
TD134322
I know this is possible by embedding the vm-list, or similar, command within another command, but I can't find it for the life of me. For example, rather than using the UUID for the following command:
xe vm-param-set uuid=fdaf01c5-3c41-478f-910d-fcf1b2e1538a affinity=25533e7a-4263-4c4f-8951-8d2ef9ed7245
You would use something like this:
xe vm-param-set uuid='xe vm-list name-label=server1' affinity=25533e7a-4263-4c4f-8951-8d2ef9ed7245
I'm not sure of what goes in the uuid= parameter, it may not be an XE command at all, but do know there is a way to use the name-label over the UUID.
Link to comment
1 answer to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now