625
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
1 |
#!/bin/sh
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
2 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
3 |
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
4 |
# All rights reserved.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
5 |
# This component and the accompanying materials are made available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
6 |
# under the terms of the License "Eclipse Public License v1.0"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
7 |
# which accompanies this distribution, and is available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
8 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
9 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
10 |
# Initial Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
11 |
# Nokia Corporation - initial contribution.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
12 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
13 |
# Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
14 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
15 |
# Description:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
16 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
17 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
18 |
# Test all nodes in a cluster
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
19 |
# arguments are the list of nodes.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
20 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
21 |
NODELIST="$@"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
22 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
23 |
for i in $NODELIST; do
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
24 |
ssh $i "ls -l /tmp/pvm.$UID"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
25 |
done
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
26 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
27 |
for i in $NODELIST; do
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
28 |
(
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
29 |
echo "spawn -($i) -> /bin/hostname"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
30 |
echo "spawn -($i) -> $PVM_ROOT/bin/LINUX/pvmgmake_pvm"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
31 |
echo "quit"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
32 |
) | pvm
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
33 |
done
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
34 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
35 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
36 |
|