5 SorryServer1=SorryServer1
6 SorryServer1_ADDR=127.0.0.1
7 SorryServer1_PORT=50001
8 start_lighttpd -s $SorryServer1 -a $SorryServer1_ADDR -p $SorryServer1_PORT
11 echo "Test failed: start_lighttpd SorryServer1"
15 SorryServer2=SorryServer2
16 SorryServer2_ADDR=[::1]
17 SorryServer2_PORT=50002
18 start_lighttpd -s $SorryServer2 -a $SorryServer2_ADDR -p $SorryServer2_PORT -i
21 echo "Test failed: start_lighttpd SorryServer2"
29 echo "Test failed: $L7VSD"
34 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M
37 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M"
41 $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M
44 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M"
48 $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T
51 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T"
55 $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T
58 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T"
63 EXPECT="Layer-7 Virtual Server version 3.0.0
67 l7vsd_network_qos warn
68 l7vsd_network_bandwidth warn
69 l7vsd_network_num_connection warn
70 l7vsd_network_access warn
72 l7vsd_virtualservice warn
73 l7vsd_virtualservice_thread warn
75 l7vsd_session_thread warn
77 l7vsd_sorryserver warn
79 l7vsd_replication warn
80 l7vsd_replication_sendthread warn
86 l7vsd_system_memory warn
87 l7vsd_system_endpoint warn
88 l7vsd_system_signal warn
89 l7vsd_system_environment warn
101 cache update interval none
103 last request date none
105 total GET requests none
106 total SET requests none
107 total trap counts none
109 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
110 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
111 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
113 Sorry Server 127.0.0.1:50001 Masq
121 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
123 TCP_DEFER_ACCEPT disable
128 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
129 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
131 HTTP Total Requests 0
134 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
136 Sorry Server [::1]:50002 Masq
144 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
146 TCP_DEFER_ACCEPT disable
151 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
152 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
154 HTTP Total Requests 0
157 TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
159 Sorry Server 127.0.0.1:50001 Tproxy
167 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
169 TCP_DEFER_ACCEPT disable
174 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
175 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
177 HTTP Total Requests 0
180 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
182 Sorry Server [::1]:50002 Tproxy
190 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
192 TCP_DEFER_ACCEPT disable
197 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
198 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
200 HTTP Total Requests 0
202 HTTP POST Requests 0"
203 if [ "${RET}" != "${EXPECT}" ]
205 echo "Test failed: $L7VSADM -V -n"
209 $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1
212 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1"
216 $L7VSADM -E -t 127.0.0.1:40002 -m sessionless -f 1
219 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40002 -m sessionless -f 1"
223 $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -f 1
226 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -f 1"
230 $L7VSADM -E -t 127.0.0.1:40004 -m sessionless -f 1
233 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1"
238 EXPECT="Layer-7 Virtual Server version 3.0.0
242 l7vsd_network_qos warn
243 l7vsd_network_bandwidth warn
244 l7vsd_network_num_connection warn
245 l7vsd_network_access warn
246 l7vsd_mainthread warn
247 l7vsd_virtualservice warn
248 l7vsd_virtualservice_thread warn
250 l7vsd_session_thread warn
251 l7vsd_realserver warn
252 l7vsd_sorryserver warn
254 l7vsd_replication warn
255 l7vsd_replication_sendthread warn
259 l7vsd_start_stop warn
261 l7vsd_system_memory warn
262 l7vsd_system_endpoint warn
263 l7vsd_system_signal warn
264 l7vsd_system_environment warn
273 Agent Status inactive
276 cache update interval none
278 last request date none
280 total GET requests none
281 total SET requests none
282 total trap counts none
284 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
285 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
286 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
288 Sorry Server 127.0.0.1:50001 Masq
296 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
298 TCP_DEFER_ACCEPT disable
303 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
304 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
306 HTTP Total Requests 0
309 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
311 Sorry Server [::1]:50002 Masq
319 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
321 TCP_DEFER_ACCEPT disable
326 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
327 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
329 HTTP Total Requests 0
332 TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0
334 Sorry Server 127.0.0.1:50001 Tproxy
342 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
344 TCP_DEFER_ACCEPT disable
349 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
350 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
352 HTTP Total Requests 0
355 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
357 Sorry Server [::1]:50002 Tproxy
365 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
367 TCP_DEFER_ACCEPT disable
372 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
373 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
375 HTTP Total Requests 0
377 HTTP POST Requests 0"
378 if [ "${RET}" != "${EXPECT}" ]
380 echo "Test failed: $L7VSADM -V -n"