7 \cp -f materials/snmpagent-1-19-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
10 ${SNMPTRAPD} -c ./materials/snmpagent-1-19-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/snmpagent-1-19-snmptrapd.log
13 RealServer1=RealServer1
14 RealServer1_ADDR=127.0.0.1
15 RealServer1_PORT=50001
16 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
19 echo "Test failed: start_lighttpd RealServer1"
28 echo "Test failed: $L7VSD"
34 $L7VSADM -A -t 127.0.0.1:40001 -m ip -Q 50M
37 echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip"
42 $L7VSADM -a -t 127.0.0.1:40001 -m ip -r 127.0.0.1:50001
45 echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r 127.0.0.1:50001"
49 #Make 10M.dat in materials
50 dd if=/dev/zero of=${TMP_DIR}/10M.dat bs=1024 count=10240
53 $WGET http://127.0.0.1:40001 --post-file ${TMP_DIR}/10M.dat -t 1
56 echo "Test failed: $WGET http://127.0.0.1:40001 --post-file 10M.dat"
63 cat ${L7VS_LOG_DIR}/snmpagent-1-19-snmptrapd.log
65 RET=`cat ${L7VS_LOG_DIR}/snmpagent-1-19-snmptrapd.log | grep -e "SNMPv2-SMI::enterprises.32132.1.0.2.8 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020008,Warning release: The up-throughput has fell below the release threshold of up-QoS warning."`
69 echo "Test failed: cat ${L7VS_LOG_DIR}/snmpagent-1-19-snmptrapd.log"