summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xvircmd12
1 files changed, 12 insertions, 0 deletions
diff --git a/vircmd b/vircmd
new file mode 100755
index 0000000..a53f115
--- /dev/null
+++ b/vircmd
@@ -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