6 SorryServer1=SorryServer1
7 SorryServer1_ADDR=127.0.0.1
8 SorryServer1_PORT=50001
9 start_lighttpd -s $SorryServer1 -a $SorryServer1_ADDR -p $SorryServer1_PORT
12 echo "Test failed: start_lighttpd SorryServer1"
20 echo "Test failed: $L7VSD"
25 $L7VSADM -A -t 127.0.0.1:40001 -m ip -L 0 -a /var/log/l7vs/access_log
28 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip -L 0 -a /var/log/l7vs/access_log"
34 EXPECT="Layer-7 Virtual Server version 3.0.0
38 l7vsd_network_qos warn
39 l7vsd_network_bandwidth warn
40 l7vsd_network_num_connection warn
41 l7vsd_network_access warn
43 l7vsd_virtualservice warn
44 l7vsd_virtualservice_thread warn
46 l7vsd_session_thread warn
48 l7vsd_sorryserver warn
50 l7vsd_replication warn
51 l7vsd_replication_sendthread warn
57 l7vsd_system_memory warn
58 l7vsd_system_endpoint warn
59 l7vsd_system_signal warn
60 l7vsd_system_environment warn
72 cache update interval none
74 last request date none
76 total GET requests none
77 total SET requests none
78 total trap counts none
80 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
81 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
82 TCP 127.0.0.1:40001 ip rr --timeout 3600 --no-reschedule --sorry-uri '/' --statistic 0
91 Access Log File /var/log/l7vs/access_log
92 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
94 TCP_DEFER_ACCEPT disable
99 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
100 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
102 HTTP Total Requests 0
104 HTTP POST Requests 0"
105 if [ "${RET}" != "${EXPECT}" ]
107 echo "Test failed: $L7VSADM -V -n"
112 $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1
115 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1"
121 EXPECT="Layer-7 Virtual Server version 3.0.0
125 l7vsd_network_qos warn
126 l7vsd_network_bandwidth warn
127 l7vsd_network_num_connection warn
128 l7vsd_network_access warn
129 l7vsd_mainthread warn
130 l7vsd_virtualservice warn
131 l7vsd_virtualservice_thread warn
133 l7vsd_session_thread warn
134 l7vsd_realserver warn
135 l7vsd_sorryserver warn
137 l7vsd_replication warn
138 l7vsd_replication_sendthread warn
142 l7vsd_start_stop warn
144 l7vsd_system_memory warn
145 l7vsd_system_endpoint warn
146 l7vsd_system_signal warn
147 l7vsd_system_environment warn
156 Agent Status inactive
159 cache update interval none
161 last request date none
163 total GET requests none
164 total SET requests none
165 total trap counts none
167 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
168 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
169 TCP 127.0.0.1:40001 ip lc --timeout 3600 --no-reschedule --sorry-uri '/' --statistic 0
171 Sorry Server 127.0.0.1:50001 Tproxy
178 Access Log File /var/log/l7vs/access_log
179 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
181 TCP_DEFER_ACCEPT disable
186 Current Upload / Limit 0.000000 Mbps / 8.000000 Mbps
187 Current Download / Limit 0.000000 Mbps / 8.000000 Mbps
189 HTTP Total Requests 0
191 HTTP POST Requests 0"
192 if [ "${RET}" != "${EXPECT}" ]
194 echo "Test failed: $L7VSADM -V -n"