4 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
5 source set_bottlenecks_rubbos_env.sh
6 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1/scripts
7 # Transfer all sub scripts to target hosts
8 echo "*** scp scripts *************************************************"
10 scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
12 scp $scp_options CONTROL_rubbos_exec.sh $CONTROL_HOST:/tmp
15 for script in BENCHMARK_rubbos_install.sh BENCHMARK_install.sh \
16 BENCHMARK_configure.sh BENCHMARK_uninstall.sh \
17 BENCHMARK_rubbos_uninstall.sh
19 scp $scp_options $script $BENCHMARK_HOST:/tmp
26 for script in CLIENT${i}_rubbos_install.sh CLIENT${i}_install.sh \
27 CLIENT${i}_configure.sh CLIENT${i}_uninstall.sh \
28 CLIENT${i}_rubbos_uninstall.sh
30 CLIENT_HOST=`printenv CLIENT${i}_HOST`
31 scp $scp_options $script $CLIENT_HOST:/tmp
37 for script in HTTPD_install.sh HTTPD_rubbos_install.sh \
38 HTTPD_configure.sh HTTPD_ignition.sh \
39 HTTPD_stop.sh HTTPD_rubbos_uninstall.sh \
42 scp $scp_options $script $HTTPD_HOST:/tmp
47 for script in TOMCAT1_install.sh TOMCAT1_rubbos_install.sh \
48 TOMCAT1_configure.sh TOMCAT1_rubbosSL_configure.sh \
49 TOMCAT1_ignition.sh TOMCAT1_stop.sh \
50 TOMCAT1_rubbos_uninstall.sh TOMCAT1_uninstall.sh
52 scp $scp_options $script $TOMCAT1_HOST:/tmp
57 for script in MYSQL1_install.sh MYSQL1_rubbos_install.sh \
58 MYSQL1_configure.sh MYSQL1_reset.sh \
59 MYSQL1_ignition.sh MYSQL1_stop.sh \
60 MYSQL1_rubbos_uninstall.sh \
63 scp $scp_options $script $MYSQL1_HOST:/tmp
67 # Prepare software packages
68 echo "*** prepare software packages ***"
69 ./MYSQL1_pkg_prepare.sh
70 ./TOMCAT1_pkg_prepare.sh
71 ./HTTPD_pkg_prepare.sh
72 ./BENCHMARK_pkg_prepare.sh
75 ./CLIENT${i}_pkg_prepare.sh
78 # Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
79 echo "*** install scripts & configure & execute ***********************"
81 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
82 ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
84 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
85 ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
87 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
88 ssh $HTTPD_HOST /tmp/HTTPD_install.sh
90 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
91 ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
93 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
94 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
96 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
97 ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
99 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
100 ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
104 CLIENT_HOST=`printenv CLIENT${i}_HOST`
105 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_rubbos_install.sh
106 ssh $CLIENT_HOST /tmp/CLIENT${i}_rubbos_install.sh
109 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
110 ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
114 CLIENT_HOST=`printenv CLIENT${i}_HOST`
115 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_install.sh
116 ssh $CLIENT_HOST /tmp/CLIENT${i}_install.sh
119 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
120 ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh &
123 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
124 ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
126 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
127 ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
129 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
130 ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
134 CLIENT_HOST=`printenv CLIENT${i}_HOST`
135 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_configure.sh
136 ssh $CLIENT_HOST /tmp/CLIENT${i}_configure.sh
139 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
140 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh
142 ssh $CONTROL_HOST /tmp/CONTROL_rubbos_exec.sh