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
19 for script in HTTPD_install.sh HTTPD_rubbos_install.sh \
20 HTTPD_configure.sh HTTPD_ignition.sh \
21 HTTPD_stop.sh HTTPD_rubbos_uninstall.sh \
24 scp $scp_options $script $HTTPD_HOST:/tmp
29 for script in TOMCAT1_install.sh TOMCAT1_rubbos_install.sh \
30 TOMCAT1_configure.sh TOMCAT1_rubbosSL_configure.sh \
31 TOMCAT1_ignition.sh TOMCAT1_stop.sh \
32 TOMCAT1_rubbos_uninstall.sh TOMCAT1_uninstall.sh
34 scp $scp_options $script $TOMCAT1_HOST:/tmp
39 for script in MYSQL1_install.sh MYSQL1_rubbos_install.sh \
40 MYSQL1_configure.sh MYSQL1_reset.sh \
41 MYSQL1_ignition.sh MYSQL1_stop.sh \
42 MYSQL1_rubbos_uninstall.sh \
45 scp $scp_options $script $MYSQL1_HOST:/tmp
49 # Prepare software packages
50 echo "*** prepare software packages ***"
51 ./MYSQL1_pkg_prepare.sh
52 ./TOMCAT1_pkg_prepare.sh
53 ./HTTPD_pkg_prepare.sh
54 ./BENCHMARK_pkg_prepare.sh
56 # Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
57 echo "*** install scripts & configure & execute ***********************"
59 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
60 ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
62 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
63 ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
65 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
66 ssh $HTTPD_HOST /tmp/HTTPD_install.sh
68 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
69 ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
71 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
72 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
74 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
75 ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
77 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
78 ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
80 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
81 ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
83 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
84 ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh
86 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
87 ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
89 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
90 ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
92 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
93 ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
95 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
96 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh