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"
106 if [ "${RET}" != "${EXPECT}" ]
108 echo "Test failed: $L7VSADM -V -n"
113 $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1
116 echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1"
122 EXPECT="Layer-7 Virtual Server version 3.0.0
126 l7vsd_network_qos warn
127 l7vsd_network_bandwidth warn
128 l7vsd_network_num_connection warn
129 l7vsd_network_access warn
130 l7vsd_mainthread warn
131 l7vsd_virtualservice warn
132 l7vsd_virtualservice_thread warn
134 l7vsd_session_thread warn
135 l7vsd_realserver warn
136 l7vsd_sorryserver warn
138 l7vsd_replication warn
139 l7vsd_replication_sendthread warn
143 l7vsd_start_stop warn
145 l7vsd_system_memory warn
146 l7vsd_system_endpoint warn
147 l7vsd_system_signal warn
148 l7vsd_system_environment warn
157 Agent Status inactive
160 cache update interval none
162 last request date none
164 total GET requests none
165 total SET requests none
166 total trap counts none
168 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
169 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
170 TCP 127.0.0.1:40001 ip lc --timeout 3600 --no-reschedule --sorry-uri '/' --statistic 0
172 Sorry Server 127.0.0.1:50001 Tproxy
179 Access Log File /var/log/l7vs/access_log
180 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
182 TCP_DEFER_ACCEPT disable
187 Current Upload / Limit 0.000000 Mbps / 1.000000 Mbps
188 Current Download / Limit 0.000000 Mbps / 1.000000 Mbps
190 HTTP Total Requests 0
192 HTTP POST Requests 0"
194 if [ "${RET}" != "${EXPECT}" ]
196 echo "Test failed: $L7VSADM -V -n"