fd0915d63e26efd2fa99ce16cbaad643d043aee6
[bottlenecks.git] / rubbos / rubbos_scripts / 1-1-1 / scripts / run.sh
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 *************************************************"
6
7 scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
8
9 if true; then
10 for script in BENCHMARK_rubbos_install.sh BENCHMARK_install.sh \
11               BENCHMARK_configure.sh BENCHMARK_uninstall.sh \
12               BENCHMARK_rubbos_uninstall.sh
13 do
14     scp $scp_options $script $BENCHMARK_HOST:/tmp
15 done
16 fi
17
18 if true; then
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 \
22               HTTPD_uninstall.sh
23 do
24     scp $scp_options $script $HTTPD_HOST:/tmp
25 done
26 fi
27
28 if true; then
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
33 do
34     scp $scp_options $script $TOMCAT1_HOST:/tmp
35 done
36 fi
37
38 if true; then
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 \
43               MYSQL1_uninstall.sh
44 do
45     scp $scp_options $script $MYSQL1_HOST:/tmp
46 done
47 fi
48
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
55
56 # Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
57 echo "*** install scripts & configure & execute ***********************"
58
59 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
60 ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
61
62 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
63 ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
64
65 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
66 ssh $HTTPD_HOST /tmp/HTTPD_install.sh
67
68 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
69 ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
70
71 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
72 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
73
74 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
75 ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
76
77 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
78 ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
79
80 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
81 ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
82
83 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
84 ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh
85
86 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
87 ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
88
89 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
90 ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
91
92 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
93 ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
94
95 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
96 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh
97