Skip to content

Instantly share code, notes, and snippets.

@venkataanil
Created September 4, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venkataanil/698facc4eb3688b1b51898a155168613 to your computer and use it in GitHub Desktop.
Save venkataanil/698facc4eb3688b1b51898a155168613 to your computer and use it in GitHub Desktop.
[stack@undercloud ~]$ for i in 0 1 2; do ssh cp-$i 'virsh list'; done
Warning: Permanently added 'cp-0,192.168.24.10' (ECDSA) to the list of known hosts.
Id Name State
----------------------------------------------------
4 instance-0000001a running
5 instance-00000023 running
6 instance-0000002c running
7 instance-00000035 running
Warning: Permanently added 'cp-1,192.168.24.22' (ECDSA) to the list of known hosts.
Id Name State
----------------------------------------------------
1 instance-00000008 running
2 instance-00000020 running
3 instance-00000029 running
4 instance-00000032 running
Warning: Permanently added 'cp-2,192.168.24.20' (ECDSA) to the list of known hosts.
Id Name State
----------------------------------------------------
4 instance-0000001d running
5 instance-00000026 running
6 instance-0000002f running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment