Update Client configure
[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 i in {1..4}
20 do
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
24     do
25         CLIENT_HOST=`printenv CLIENT${i}_HOST`
26         scp $scp_options $script $CLIENT_HOST:/tmp
27     done
28 done
29 fi
30
31 if true; then
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 \
35               HTTPD_uninstall.sh
36 do
37     scp $scp_options $script $HTTPD_HOST:/tmp
38 done
39 fi
40
41 if true; then
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
46 do
47     scp $scp_options $script $TOMCAT1_HOST:/tmp
48 done
49 fi
50
51 if true; then
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 \
56               MYSQL1_uninstall.sh
57 do
58     scp $scp_options $script $MYSQL1_HOST:/tmp
59 done
60 fi
61
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
68 for i in {1..4}
69 do
70     ./CLIENT${i}_pkg_prepare.sh
71 done
72
73 # Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
74 echo "*** install scripts & configure & execute ***********************"
75
76 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
77 ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
78
79 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
80 ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
81
82 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
83 ssh $HTTPD_HOST /tmp/HTTPD_install.sh
84
85 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
86 ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
87
88 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
89 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
90
91 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
92 ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
93
94 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
95 ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
96
97 for i in {1..4}
98 do
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
102 done
103
104 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
105 ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
106
107 for i in {1..4}
108 do
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
112 done
113
114 ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
115 ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh
116
117 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
118 ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
119
120 ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
121 ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
122
123 ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
124 ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
125
126 for i in {1..4}
127 do
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
131 done
132
133 ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
134 ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh
135