1 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
2 source set_bottlenecks_rubbos_env.sh
3 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1/scripts
4 # Transfer all sub scripts to target hosts
5 echo "*** scp scripts *************************************************"
7 scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
10 for script in BENCHMARK_rubbos_install.sh BENCHMARK_install.sh \
11 BENCHMARK_configure.sh BENCHMARK_uninstall.sh \
12 BENCHMARK_rubbos_uninstall.sh
14 scp $scp_options $script $BENCHMARK_HOST:/tmp
21 for script in CLIENT${i}_rubbos_install.sh CLIENT${i}_install.sh \
22 CLIENT${i}_configure.sh CLIENT${i}_uninstall.sh \
23 CLIENT${i}_rubbos_uninstall.sh
25 CLIENT_HOST=`printenv CLIENT${i}_HOST`
26 scp $scp_options $script $CLIENT_HOST:/tmp
32 for script in HTTPD_install.sh HTTPD_rubbos_install.sh \
33 HTTPD_configure.sh HTTPD_ignition.sh \
34 HTTPD_stop.sh HTTPD_rubbos_uninstall.sh \
37 scp $scp_options $script $HTTPD_HOST:/tmp
42 for script in TOMCAT1_install.sh TOMCAT1_rubbos_install.sh \
43 TOMCAT1_configure.sh TOMCAT1_rubbosSL_configure.sh \
44 TOMCAT1_ignition.sh TOMCAT1_stop.sh \
45 TOMCAT1_rubbos_uninstall.sh TOMCAT1_uninstall.sh
47 scp $scp_options $script $TOMCAT1_HOST:/tmp
52 for script in MYSQL1_install.sh MYSQL1_rubbos_install.sh \
53 MYSQL1_configure.sh MYSQL1_reset.sh \
54 MYSQL1_ignition.sh MYSQL1_stop.sh \
55 MYSQL1_rubbos_uninstall.sh \
58 scp $scp_options $script $MYSQL1_HOST:/tmp
62 # Prepare software packages
63 echo "*** prepare software packages ***"
64 ./MYSQL1_pkg_prepare.sh
65 ./TOMCAT1_pkg_prepare.sh
66 ./HTTPD_pkg_prepare.sh
67 ./BENCHMARK_pkg_prepare.sh
70 ./CLIENT${i}_pkg_prepare.sh
73 # Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
74 echo "*** install scripts & configure & execute ***********************"
76 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
77 ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
79 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
80 ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
82 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
83 ssh $HTTPD_HOST /tmp/HTTPD_install.sh
85 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
86 ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
88 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
89 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
91 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
92 ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
94 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
95 ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
99 CLIENT_HOST=`printenv CLIENT${i}_HOST`
100 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_rubbos_install.sh
101 ssh $CLIENT_HOST /tmp/CLIENT${i}_rubbos_install.sh
104 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
105 ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
109 CLIENT_HOST=`printenv CLIENT${i}_HOST`
110 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_install.sh
111 ssh $CLIENT_HOST /tmp/CLIENT${i}_install.sh
114 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
115 ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh
117 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
118 ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
120 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
121 ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
123 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
124 ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
128 CLIENT_HOST=`printenv CLIENT${i}_HOST`
129 ssh root@$CLIENT_HOST chmod 770 /tmp/CLIENT${i}_configure.sh
130 ssh $CLIENT_HOST /tmp/CLIENT${i}_configure.sh
133 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
134 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh