6 RealServer1=RealServer1
7 RealServer1_ADDR=127.0.0.1
9 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
12 echo "Test failed: start_lighttpd RealServer1"
16 RealServer2=RealServer2
17 RealServer2_ADDR=127.0.0.1
18 RealServer2_PORT=50002
19 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
22 echo "Test failed: start_lighttpd RealServer2"
30 echo "Test failed: $L7VSD"
35 $L7VSADM -A -t localhost6:40001 -m sessionless
38 echo "Test failed: $L7VSADM -A -t localhost4:40001 -m sessionless"
42 $L7VSADM -a -t localhost6:40001 -m sessionless -r localhost6:${RealServer1_PORT} -w 3
45 echo "Test failed: $L7VSADM -a -t localhost4:40001 -m sessionless -r localhost4:${RealServer1_PORT} -w 3"
49 $L7VSADM -a -t localhost6:40001 -m sessionless -r localhost6:${RealServer2_PORT} -w 0
52 echo "Test failed: $L7VSADM -a -t localhost4:40001 -m sessionless -r localhost4:${RealServer2_PORT} -w 0"
59 EXPECT="Layer-7 Virtual Server version 3.0.1
63 l7vsd_network_qos warn
64 l7vsd_network_bandwidth warn
65 l7vsd_network_num_connection warn
66 l7vsd_network_access warn
68 l7vsd_virtualservice warn
69 l7vsd_virtualservice_thread warn
71 l7vsd_session_thread warn
73 l7vsd_sorryserver warn
75 l7vsd_replication warn
76 l7vsd_replication_sendthread warn
82 l7vsd_system_memory warn
83 l7vsd_system_endpoint warn
84 l7vsd_system_signal warn
85 l7vsd_system_environment warn
97 cache update interval none
99 last request date none
101 total GET requests none
102 total SET requests none
103 total trap counts none
105 Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
106 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
107 TCP localhost:40001 sessionless rr --sorry-uri '/' --statistic 0
108 -> localhost:50001 Masq 3 0 0
109 -> localhost:50002 Masq 0 0 0
119 Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
121 TCP_DEFER_ACCEPT disable
126 Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps
127 Current Download / Limit 0.000000 Mbps / 0.000000 Mbps
129 HTTP Total Requests 0
131 HTTP POST Requests 0"
133 if [ "${RET}" != "${EXPECT}" ]
135 echo "Test failed: $L7VSADM -V"