13 echo "Test failed: $L7VSD"
18 #Print The Status of Virtual Service
22 echo "Test failed: $L7VSADM -l"
28 $L7VSADM -A -t $VS1:8080 -m sessionless -s rr
31 echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
37 $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
40 echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
44 #Check The Status of Virtual Service
46 EXPECT="Layer-7 Virtual Server version 3.0.0
47 Prot LocalAddress:Port ProtoMod Scheduler
48 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
49 TCP localhost:webcache sessionless rr
50 -> localhost:http Masq 1 0 0 "
52 if [ "${RET}" != "${EXPECT}" ]
54 echo "Test failed: $L7VSADM -l"
58 #Change The Weight of Real Service
59 $L7VSADM -e -t $VS1:8080 -m sessionless -r $RS1:80 -w 100
62 echo "Test failed: $L7VSADM -l"
66 #Print The Status of Virtual Service And Check The Weight of Real Service
69 EXPECT="Layer-7 Virtual Server version 3.0.0
70 Prot LocalAddress:Port ProtoMod Scheduler
71 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
72 TCP localhost:webcache sessionless rr
73 -> localhost:http Masq 100 0 0 "
75 if [ "${RET}" != "${EXPECT}" ]
77 echo "Test failed: $L7VSADM -l"