blob: c7be8c73304249dd61fb0bd310c64ce905f8c36a (
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
|
cd /root/rui/rubbos/rubbosMulini6/1-1-1
source set_elba_env.sh
cd /root/rui/rubbos/rubbosMulini6/1-1-1/scripts
# Transfer all sub scripts to target hosts
echo "*** scp scripts *************************************************"
scp -o StrictHostKeyChecking=no -o BatchMode=yes CONTROL_checkScp_exec.sh $CONTROL_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CONTROL_emulabConf_exec.sh $CONTROL_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CONTROL_rubbos_exec.sh $CONTROL_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes BENCHMARK_rubbos_install.sh $BENCHMARK_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes BENCHMARK_install.sh $BENCHMARK_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes BENCHMARK_configure.sh $BENCHMARK_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes BENCHMARK_uninstall.sh $BENCHMARK_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes BENCHMARK_rubbos_uninstall.sh $BENCHMARK_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT1_rubbos_install.sh $CLIENT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT1_install.sh $CLIENT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT1_configure.sh $CLIENT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT1_uninstall.sh $CLIENT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT1_rubbos_uninstall.sh $CLIENT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT2_rubbos_install.sh $CLIENT2_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT2_install.sh $CLIENT2_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT2_configure.sh $CLIENT2_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT2_uninstall.sh $CLIENT2_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT2_rubbos_uninstall.sh $CLIENT2_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT3_rubbos_install.sh $CLIENT3_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT3_install.sh $CLIENT3_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT3_configure.sh $CLIENT3_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT3_uninstall.sh $CLIENT3_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT3_rubbos_uninstall.sh $CLIENT3_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT4_rubbos_install.sh $CLIENT4_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT4_install.sh $CLIENT4_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT4_configure.sh $CLIENT4_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT4_uninstall.sh $CLIENT4_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes CLIENT4_rubbos_uninstall.sh $CLIENT4_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_install.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_rubbos_install.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_configure.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_ignition.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_stop.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_rubbos_uninstall.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes HTTPD_uninstall.sh $HTTPD_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_install.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_rubbos_install.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_configure.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_rubbosSL_configure.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_ignition.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_stop.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_rubbos_uninstall.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes TOMCAT1_uninstall.sh $TOMCAT1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_install.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_rubbos_install.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_configure.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_reset.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_ignition.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_stop.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_rubbos_uninstall.sh $MYSQL1_HOST:/tmp
scp -o StrictHostKeyChecking=no -o BatchMode=yes MYSQL1_uninstall.sh $MYSQL1_HOST:/tmp
# Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
echo "*** install scripts & configure & execute ***********************"
ssh $CONTROL_HOST /tmp/CONTROL_checkScp_exec.sh
ssh $CONTROL_HOST /tmp/CONTROL_emulabConf_exec.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_install.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_install.sh
ssh $HTTPD_HOST /tmp/HTTPD_install.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_rubbos_install.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_rubbos_install.sh
ssh $CLIENT2_HOST /tmp/CLIENT2_rubbos_install.sh
ssh $CLIENT3_HOST /tmp/CLIENT3_rubbos_install.sh
ssh $CLIENT4_HOST /tmp/CLIENT4_rubbos_install.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_install.sh
ssh $CLIENT2_HOST /tmp/CLIENT2_install.sh
ssh $CLIENT3_HOST /tmp/CLIENT3_install.sh
ssh $CLIENT4_HOST /tmp/CLIENT4_install.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh &
sleep 60
ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
ssh $CLIENT1_HOST /tmp/CLIENT1_configure.sh
ssh $CLIENT2_HOST /tmp/CLIENT2_configure.sh
ssh $CLIENT3_HOST /tmp/CLIENT3_configure.sh
ssh $CLIENT4_HOST /tmp/CLIENT4_configure.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh
#ssh $CONTROL_HOST /tmp/CONTROL_rubbos_exec.sh
|