6 \cp -f materials/mib-7-43-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
9 RealServer1=RealServer1
10 RealServer1_ADDR=127.0.0.1
11 RealServer1_PORT=50001
12 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
15 echo "Test failed: start_lighttpd RealServer1"
19 SorryServer=SorryServer
20 SorryServer_ADDR=127.0.0.1
21 SorryServer_PORT=50002
22 start_lighttpd -s $SorryServer -a $SorryServer_ADDR -p $SorryServer_PORT
25 echo "Test failed: start_lighttpd SorryServer"
33 echo "Test failed: $L7VSD"
39 $L7VSADM -A -t 127.0.0.1:40001 -m sessionless --sorry-uri /index.html -s rr -u 10000 -b ${SorryServer_ADDR}:${SorryServer_PORT} -f 0 -Q 100 -q 200 -z /etc/l7vs/sslproxy/sslproxy.target.cf
43 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless
44 --sorry-uri /index.html -s rr -u 10000
45 -b ${SorryServer_ADDR}:${SorryServer_PORT}
46 -f 0 -Q 100 -q 200 -z /etc/l7vs/sslproxy/sslproxy.target.cf"
50 $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r 127.0.0.1:50001 -w 100
53 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001
54 -m sessionless -r 127.0.0.1:50001 -w 100"
60 RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1`
62 EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 50002"
64 if [ "${RET}" != "${EXPECT}" ]
66 echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1"