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 | |
Masayoshi Kobayashi | 4de8d12 | 2013-04-08 19:19:47 +0000 | [diff] [blame] | 8 | if [ x$ONOS_CLUSTER_BASENAME == "x" -o x$ONOS_CLUSTER_NR_NODES == "x" ]; then |
| 9 | echo "set environment variable ONOS_CLUSTER_BASENAME and ONOS_CLUSTER_NR_NODES" |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 10 | exit |
| 11 | fi |
| 12 | |
Masayoshi Kobayashi | 4de8d12 | 2013-04-08 19:19:47 +0000 | [diff] [blame] | 13 | basename=$ONOS_CLUSTER_BASENAME |
| 14 | NR_NODES=$ONOS_CLUSTER_NR_NODES |
| 15 | |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 16 | dsh -g $basename 'uname -a' |
| 17 | |
Masayoshi Kobayashi | 0ab03da | 2013-03-26 00:43:02 +0000 | [diff] [blame] | 18 | dsh -g ${basename} 'cd ONOS/test-network/mininet; ./tunnel_onsdemo.sh start' |
| 19 | dsh -g ${basename} 'cd ONOS/test-network/mininet; ./tunnel_onsdemo.sh start' |
Masayoshi Kobayashi | f358ff5 | 2013-03-22 00:31:59 +0000 | [diff] [blame] | 20 | dsh -g ${basename} 'cd ONOS/test-network/mininet; sudo mn -c' |
| 21 | dsh -g ${basename} 'cd ONOS/test-network/mininet; sudo ./onsdemo.py -n' |