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:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy
37 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy"
41 $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --tproxy
44 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy"
49 EXPECT="Layer-7 Virtual Server version 3.0.0
53 l7vsd_network_qos warn
54 l7vsd_network_bandwidth warn
55 l7vsd_network_num_connection warn
56 l7vsd_network_access warn
58 l7vsd_virtualservice warn
59 l7vsd_virtualservice_thread warn
61 l7vsd_session_thread warn
63 l7vsd_sorryserver warn
65 l7vsd_replication warn
66 l7vsd_replication_sendthread warn
72 l7vsd_system_memory warn
73 l7vsd_system_endpoint warn
74 l7vsd_system_signal warn
75 l7vsd_system_environment warn
87 cache update interval none
89 last request date none
91 total GET requests none
92 total SET requests none
93 total trap counts none
95 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
96 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
97 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
99 Sorry Server 127.0.0.1:50001 Tproxy
107 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
109 TCP_DEFER_ACCEPT disable
114 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
115 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
117 HTTP Total Requests 0
120 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
122 Sorry Server [::1]:50002 Tproxy
130 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
132 TCP_DEFER_ACCEPT disable
137 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
138 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
140 HTTP Total Requests 0
142 HTTP POST Requests 0"
143 if [ "${RET}" != "${EXPECT}" ]
145 echo "Test failed: $L7VSADM -V -n"
149 $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --masq
152 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --masq"
156 $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --masq
159 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --masq"
164 EXPECT="Layer-7 Virtual Server version 3.0.0
168 l7vsd_network_qos warn
169 l7vsd_network_bandwidth warn
170 l7vsd_network_num_connection warn
171 l7vsd_network_access warn
172 l7vsd_mainthread warn
173 l7vsd_virtualservice warn
174 l7vsd_virtualservice_thread warn
176 l7vsd_session_thread warn
177 l7vsd_realserver warn
178 l7vsd_sorryserver warn
180 l7vsd_replication warn
181 l7vsd_replication_sendthread warn
185 l7vsd_start_stop warn
187 l7vsd_system_memory warn
188 l7vsd_system_endpoint warn
189 l7vsd_system_signal warn
190 l7vsd_system_environment warn
199 Agent Status inactive
202 cache update interval none
204 last request date none
206 total GET requests none
207 total SET requests none
208 total trap counts none
210 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
211 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
212 TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0
214 Sorry Server 127.0.0.1:50001 Masq
222 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
224 TCP_DEFER_ACCEPT disable
229 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
230 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
232 HTTP Total Requests 0
235 TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0
237 Sorry Server [::1]:50002 Masq
245 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
247 TCP_DEFER_ACCEPT disable
252 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
253 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
255 HTTP Total Requests 0
257 HTTP POST Requests 0"
258 if [ "${RET}" != "${EXPECT}" ]
260 echo "Test failed: $L7VSADM -V -n"