Jason Davis1709157056 Posted March 24, 2022 Share Posted March 24, 2022 Trying to selectively start or shutdown VMs based on matching a pattern in their display name via a bash script but I'm getting stuck. Any ideas? Thanks. Link to comment
1 Sergey Polyakov Posted March 27, 2022 Share Posted March 27, 2022 VMNL=`xe vm-list | grep ABC | awk '{print $4}'` for VMN in $VMNL do `xe vm-start name-label=$VMN` done 1 Link to comment
0 Jason Davis1709157056 Posted March 31, 2022 Author Share Posted March 31, 2022 Thank you Sergey! I totally forgot about using awk. Link to comment
Question
Jason Davis1709157056
Trying to selectively start or shutdown VMs based on matching a pattern in their display name via a bash script but I'm getting stuck. Any ideas? Thanks.
Link to comment
2 answers 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