OSDN Git Service

trunk整理
[ultramonkey-l7/ultramonkey-l7-v3.git] / test / script / snmpagent / para-3.sh
1 #!/bin/bash
2
3 # set config file
4 . ${SET_DEFAULT_CONF}
5 \cp -f materials/para-3-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
6
7 #Add Service
8 $L7VSD
9 if [ $? -ne 0 ]
10 then
11         echo "Test failed: $L7VSD"
12         exit 1
13 fi
14 usleep 100000
15
16 RET=`$L7VSADM -V | grep "Agent Status"`
17 EXPECT="Agent Status                   inactive"
18 if [ "${RET}" != "${EXPECT}" ]
19 then
20         echo "Test failed: $L7VSADM -V"
21         exit 1
22 fi
23
24 exit 0