diff options
-rwxr-xr-x | vircmd | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/bin/bash +#make running virsh commands on a cluster easier + +if [ $# -lt 2 ]; then + echo "Usage: vircmd COMMAND CLUSTERNAME" + exit 1 +fi + + +for i in n1 n2 n3 n4 tsm; do + virsh $1 $2$i +done |