utility
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 9 Feb 2011 08:06:53 +0000 (09:06 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 9 Feb 2011 08:06:53 +0000 (09:06 +0100)
scripts/probe-inria-nodes.sh [new file with mode: 0755]

diff --git a/scripts/probe-inria-nodes.sh b/scripts/probe-inria-nodes.sh
new file mode 100755 (executable)
index 0000000..bb37490
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+ssh="ssh -F /dev/null -o StrictHostKeyChecking=no"
+
+nodes="wlab02 onelab02 onelab09 onelab10 onelab11"
+
+[[ -n "$@" ]] && nodes="$@"
+
+
+for node in $nodes; do h=${node}.pl.sophia.inria.fr
+  echo ===================== $node
+  $ssh root@$h cat /etc/fedora-release 2> /dev/null
+  $ssh root@$h vserver-stat 2> /dev/null | wc -l
+done
+