Ubuntu | c7027f9 | 2013-03-01 00:57:11 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | export CLUSTER=/home/masayosi/bin/hosts-3x3.txt |
| 3 | function cmd { |
| 4 | while [ 1 ] ; do |
| 5 | $@ |
| 6 | echo "Continue? [y/n]:" |
| 7 | read -t 2 value |
| 8 | if [ x$value == "xy" ]; then |
| 9 | break; |
| 10 | fi |
| 11 | sleep 1 |
| 12 | done |
| 13 | } |
| 14 | |
| 15 | ./start-onos.sh 'onos9vpc,onos10vpc,onos11vpc,onos12vpc' stop |
| 16 | ./start-onos.sh 'onos9vpc,onos10vpc,onos11vpc,onos12vpc' status |
| 17 | #./start-cassandra.sh 'onos9vpc' start |
| 18 | #sleep 2 |
| 19 | #./start-cassandra.sh 'onos10vpc,onos11vpc,onos12vpc' start |
| 20 | |
| 21 | dsh -w onos9vpc 'cd ONOS;./clean-cassandra.sh' |
| 22 | cmd ./start-cassandra.sh onos9vpc status |
| 23 | sleep 5 |
| 24 | echo "Set mininet local" |
| 25 | dsh -g onos 'ONOS/ctrl-none.sh' |
| 26 | echo "Start ONOS on 9, 10 and 12" |
| 27 | ./start-onos.sh 'onos9vpc' start |
| 28 | sleep 1 |
| 29 | ./start-onos.sh 'onos10vpc' start |
| 30 | sleep 1 |
| 31 | ./start-onos.sh 'onos12vpc' start |
| 32 | while [ 1 ] ; do |
| 33 | ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status |
| 34 | echo "Continue? [y/s/n]:" |
| 35 | read -t 2 value |
| 36 | if [ x$value == "xy" ]; then |
| 37 | break; |
| 38 | elif [ x$value == "xs" ]; then |
| 39 | ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start |
| 40 | fi |
| 41 | sleep 1 |
| 42 | done |
| 43 | sleep 2 |
| 44 | dsh -g onos 'ONOS/ctrl-local.sh' |
| 45 | #sleep 2 |
| 46 | #./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start |
| 47 | while [ 1 ] ; do |
| 48 | ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status |
| 49 | echo "Continue? [y/s/n]:" |
| 50 | read -t 2 value |
| 51 | if [ x$value == "xy" ]; then |
| 52 | break; |
| 53 | elif [ x$value == "xs" ]; then |
| 54 | ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' start |
| 55 | fi |
| 56 | sleep 1 |
| 57 | done |
| 58 | #cmd dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh' |
| 59 | #while [ 1 ] ; do |
| 60 | # ./start-onos.sh 'onos9vpc,onos10vpc,onos12vpc' status |
| 61 | # echo "Continue? [y/n]:" |
| 62 | # read -t 2 value |
| 63 | # if [ x$value == "xy" ]; then |
| 64 | # break; |
| 65 | # fi |
| 66 | # sleep 1 |
| 67 | #done |
| 68 | #dsh -w onos9vpc,onos10vpc 'ONOS/ctrl-add-ext.sh' |
| 69 | #sleep 1 |