blob: 5baf2e031c6eff3bb93280cf856745e5f1c07744 [file] [log] [blame]
Masayoshi Kobayashif704d302013-03-25 23:55:13 +00001#! /bin/sh
2
3. ${HOME}/bin/func.sh
4
5basename=$ONOS_CLUSTER_BASENAME
6nr_nodes=$ONOS_CLUSTER_NR_NODES
7
8for n in `seq 1 $nr_nodes`; do
9 echo "Host node$n"
10 echo "User ubuntu"
11 echo "HostName ${basename}${n}"
12done > ~/.ssh/config
13
14cd ${HOME}/bin
15for n in `seq 1 $nr_nodes`; do
16 ln -s ssh_exec node${n}
17done