blob: 698eb415084df331263991b2f9ee82f6ffe7a589 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
source set_bottlenecks_rubbos_env.sh
cd /bottlenecks/rubbos/rubbos_scripts/1-1-1/scripts
# Transfer all sub scripts to target hosts
echo "*** scp scripts *************************************************"
scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
scp $scp_options CONTROL_checkScp_exec.sh $CONTROL_HOST:/tmp
scp $scp_options CONTROL_emulabConf_exec.sh $CONTROL_HOST:/tmp
scp $scp_options CONTROL_rubbos_exec.sh $CONTROL_HOST:/tmp
scp $scp_options BENCHMARK_rubbos_install.sh $BENCHMARK_HOST:/tmp
scp $scp_options BENCHMARK_install.sh $BENCHMARK_HOST:/tmp
scp $scp_options BENCHMARK_configure.sh $BENCHMARK_HOST:/tmp
scp $scp_options BENCHMARK_uninstall.sh $BENCHMARK_HOST:/tmp
scp $scp_options BENCHMARK_rubbos_uninstall.sh $BENCHMARK_HOST:/tmp
scp $scp_options CLIENT1_rubbos_install.sh $CLIENT1_HOST:/tmp
scp $scp_options CLIENT1_install.sh $CLIENT1_HOST:/tmp
scp $scp_options CLIENT1_configure.sh $CLIENT1_HOST:/tmp
scp $scp_options CLIENT1_uninstall.sh $CLIENT1_HOST:/tmp
scp $scp_options CLIENT1_rubbos_uninstall.sh $CLIENT1_HOST:/tmp
scp $scp_options CLIENT2_rubbos_install.sh $CLIENT2_HOST:/tmp
scp $scp_options CLIENT2_install.sh $CLIENT2_HOST:/tmp
scp $scp_options CLIENT2_configure.sh $CLIENT2_HOST:/tmp
scp $scp_options CLIENT2_uninstall.sh $CLIENT2_HOST:/tmp
scp $scp_options CLIENT2_rubbos_uninstall.sh $CLIENT2_HOST:/tmp
scp $scp_options CLIENT3_rubbos_install.sh $CLIENT3_HOST:/tmp
scp $scp_options CLIENT3_install.sh $CLIENT3_HOST:/tmp
scp $scp_options CLIENT3_configure.sh $CLIENT3_HOST:/tmp
scp $scp_options CLIENT3_uninstall.sh $CLIENT3_HOST:/tmp
scp $scp_options CLIENT3_rubbos_uninstall.sh $CLIENT3_HOST:/tmp
scp $scp_options CLIENT4_rubbos_install.sh $CLIENT4_HOST:/tmp
scp $scp_options CLIENT4_install.sh $CLIENT4_HOST:/tmp
scp $scp_options CLIENT4_configure.sh $CLIENT4_HOST:/tmp
scp $scp_options CLIENT4_uninstall.sh $CLIENT4_HOST:/tmp
scp $scp_options CLIENT4_rubbos_uninstall.sh $CLIENT4_HOST:/tmp
scp $scp_options HTTPD_install.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_rubbos_install.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_configure.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_ignition.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_stop.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_rubbos_uninstall.sh $HTTPD_HOST:/tmp
scp $scp_options HTTPD_uninstall.sh $HTTPD_HOST:/tmp
scp $scp_options TOMCAT1_install.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_rubbos_install.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_configure.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_rubbosSL_configure.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_ignition.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_stop.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_rubbos_uninstall.sh $TOMCAT1_HOST:/tmp
scp $scp_options TOMCAT1_uninstall.sh $TOMCAT1_HOST:/tmp
scp $scp_options MYSQL1_install.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_rubbos_install.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_configure.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_reset.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_ignition.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_stop.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_rubbos_uninstall.sh $MYSQL1_HOST:/tmp
scp $scp_options MYSQL1_uninstall.sh $MYSQL1_HOST:/tmp
# Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
echo "*** install scripts & configure & execute ***********************"
#ssh root@$CONTROL_HOST chmod 777 /tmp/CONTROL_checkScp_exe.sh
#ssh $CONTROL_HOST /tmp/CONTROL_checkScp_exec.sh
#ssh root@$CONTROL_HOST chmod 777 /tmp/CONTROL_emulabConf_exec.sh
#ssh $CONTROL_HOST /tmp/CONTROL_emulabConf_exec.sh
ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_install.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_install.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_install.sh
ssh $HTTPD_HOST /tmp/HTTPD_install.sh
ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_rubbos_install.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbos_install.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
ssh root@$CLIENT1_HOST chmod 770 /tmp/CLIENT1_rubbos_install.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_rubbos_install.sh
ssh root@$CLIENT2_HOST chmod 770 /tmp/CLIENT2_rubbos_install.sh
ssh $CLIENT2_HOST /tmp/CLIENT2_rubbos_install.sh
ssh root@$CLIENT3_HOST chmod 770 /tmp/CLIENT3_rubbos_install.sh
ssh $CLIENT3_HOST /tmp/CLIENT3_rubbos_install.sh
ssh root@$CLIENT4_HOST chmod 770 /tmp/CLIENT4_rubbos_install.sh
ssh $CLIENT4_HOST /tmp/CLIENT4_rubbos_install.sh
ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
ssh root@$CLIENT1_HOST chmod 770 /tmp/CLIENT1_install.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_install.sh
#ssh root@$CLIENT2_HOST chmod 777 /tmp/CLIENT2_install.sh
#ssh $CLIENT2_HOST /tmp/CLIENT2_install.sh
#ssh root@$CLIENT3_HOST chmod 777 /tmp/CLIENT3_install.sh
#ssh $CLIENT3_HOST /tmp/CLIENT3_install.sh
#ssh root@$CLIENT4_HOST chmod 777 /tmp/CLIENT4_install.sh
#ssh $CLIENT4_HOST /tmp/CLIENT4_install.sh
ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh &
sleep 60
ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_configure.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
ssh root@$CLIENT1_HOST chmod 770 /tmp/CLIENT1_configure.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_configure.sh
#ssh root@$CLIENT2_HOST chmod 777 /tmp/CLIENT2_configure.sh
#ssh $CLIENT2_HOST /tmp/CLIENT2_configure.sh
#ssh root@$CLIENT3_HOST chmod 777 /tmp/CLIENT3_configure.sh
#ssh $CLIENT3_HOST /tmp/CLIENT3_configure.sh
#ssh root@$CLIENT4_HOST chmod 777 /tmp/CLIENT4_configure.sh
#ssh $CLIENT4_HOST /tmp/CLIENT4_configure.sh
ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh
#ssh $CONTROL_HOST /tmp/CONTROL_rubbos_exec.sh
|