Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | USERNAME=ubuntu |
| 3 | CASSANDRA_DIR='/home/ubuntu/apache-cassandra-1.1.4' |
| 4 | ZK_DIR='/home/ubuntu/zookeeper-3.4.5' |
| 5 | ZK_LIB='/var/lib/zookeeper' |
| 6 | CASSANDRA_LIB='/var/lib/cassandra' |
| 7 | |
| 8 | if [ $# == 2 ]; then |
| 9 | NR_NODES=$1 |
| 10 | basename=$2 |
| 11 | else |
| 12 | echo "$0 nr_nodes basename" |
| 13 | exit |
| 14 | fi |
| 15 | |
| 16 | if [ ! -f ./cluster.txt ]; then |
| 17 | echo "Cannot find cluster.txt" |
| 18 | exit |
| 19 | fi |
| 20 | |
| 21 | export CLUSTER="./cluster.txt" |
| 22 | dsh -g $basename 'uname -a' |
| 23 | |
| 24 | for n in `seq 1 $NR_NODES`; do |
| 25 | pcp -w ${basename}${n} ${basename}${n}/onsdemo.py 'ONOS/test-network/mininet' |
| 26 | pcp -w ${basename}${n} ${basename}${n}/tunnel_onsdemo.sh 'ONOS/test-network/mininet' |
| 27 | done |
| 28 | dsh -g $basename 'chmod 755 ONOS/test-network/mininet/tunnel_onsdemo.sh' |
| 29 | dsh -g $basename 'chmod 755 ONOS/test-network/mininet/onsdemo.py' |