OSDN Git Service

Add DHC Test scripts
author6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 22 Oct 2010 01:23:16 +0000 (01:23 +0000)
committer6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 22 Oct 2010 01:23:16 +0000 (01:23 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10401 1ed66053-1c2d-0410-8867-f7571e6e31d3

74 files changed:
test/script/PT/B/B-1.sh [new file with mode: 0755]
test/script/PT/B/B-11-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-11-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-11-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-12.sh [new file with mode: 0755]
test/script/PT/B/B-3.sh [new file with mode: 0755]
test/script/PT/B/B-38-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-38-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-38-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-39-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-39-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-39-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-4-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-4-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-4-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-40-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-40-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-40-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-41-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-41-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-41-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-42-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-42-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-42-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-43-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-43-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-43-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-44-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-44-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-44-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-45-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-45-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-45-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-46-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-46-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-46-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-47-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-47-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-47-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-48.sh [new file with mode: 0755]
test/script/PT/B/B-49-IPv4.sh [new file with mode: 0755]
test/script/PT/B/B-49-IPv6.sh [new file with mode: 0755]
test/script/PT/B/B-50-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-50-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-50-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-51-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-51-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-51-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-52-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-52-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-52-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-53-IPv4v4.sh [new file with mode: 0755]
test/script/PT/B/B-53-IPv6v4.sh [new file with mode: 0755]
test/script/PT/B/B-53-IPv6v6.sh [new file with mode: 0755]
test/script/PT/B/B-54.sh [new file with mode: 0755]
test/script/PT/B/B-55.sh [new file with mode: 0755]
test/script/PT/B/B-56.sh [new file with mode: 0755]
test/script/PT/B/B-57.sh [new file with mode: 0755]
test/script/PT/B/materials/B-12-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-39-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-4-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-40-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-41-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-47-sslproxy.target1.cf [new file with mode: 0644]
test/script/PT/B/materials/B-47-sslproxy.target2.cf [new file with mode: 0644]
test/script/PT/B/materials/B-48-54-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-48-54-snmptrapd.conf [new file with mode: 0644]
test/script/PT/B/materials/B-55-57-snmptrapd.conf [new file with mode: 0644]
test/script/PT/B/materials/B-55-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-55-snmptrapd.conf [new file with mode: 0644]
test/script/PT/B/materials/B-56-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-56-snmptrapd.conf [new file with mode: 0644]
test/script/PT/B/materials/B-57-l7vs.cf [new file with mode: 0644]
test/script/PT/B/materials/B-57-snmptrapd.conf [new file with mode: 0644]

diff --git a/test/script/PT/B/B-1.sh b/test/script/PT/B/B-1.sh
new file mode 100755 (executable)
index 0000000..9564713
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Check Not Time Out
+$L7VSADM
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-11-IPv4v4.sh b/test/script/PT/B/B-11-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..46e7ce6
--- /dev/null
@@ -0,0 +1,83 @@
+#!/bin/bash
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Print The Status of Virtual Service 
+$L7VSADM -l
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+#Check The Status of Virtual Service 
+RET=`$L7VSADM -l`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    1      0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Change The Weight of Real Service
+$L7VSADM -e -t $VS1:8080 -m sessionless -r $RS1:80 -w 100
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Print The Status of Virtual Service  And Check The Weight of Real Service
+RET=`$L7VSADM -l`
+
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    100    0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+exit 0
+
diff --git a/test/script/PT/B/B-11-IPv6v4.sh b/test/script/PT/B/B-11-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..b651b8d
--- /dev/null
@@ -0,0 +1,83 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Print The Status of Virtual Service 
+$L7VSADM -l
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+#Check The Status of Virtual Service 
+RET=`$L7VSADM -l`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    1      0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Change The Weight of Real Service
+$L7VSADM -e -t $VS1:8080 -m sessionless -r $RS1:80 -w 100
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Print The Status of Virtual Service  And Check The Weight of Real Service
+RET=`$L7VSADM -l`
+
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    100    0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+exit 0
+
diff --git a/test/script/PT/B/B-11-IPv6v6.sh b/test/script/PT/B/B-11-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..7aec6dd
--- /dev/null
@@ -0,0 +1,83 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="[::1]"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Print The Status of Virtual Service 
+$L7VSADM -l
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+#Check The Status of Virtual Service 
+RET=`$L7VSADM -l`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    1      0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Change The Weight of Real Service
+$L7VSADM -e -t $VS1:8080 -m sessionless -r $RS1:80 -w 100
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+#Print The Status of Virtual Service  And Check The Weight of Real Service
+RET=`$L7VSADM -l`
+
+EXPECT="Layer-7 Virtual Server version 3.0.0
+Prot LocalAddress:Port ProtoMod Scheduler
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr
+  -> localhost:http               Masq    100    0          0         "
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -l"
+        exit 1
+fi
+
+
+exit 0
+
diff --git a/test/script/PT/B/B-12.sh b/test/script/PT/B/B-12.sh
new file mode 100755 (executable)
index 0000000..1d3742c
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-12-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Check The Status Of L7vsd
+RET=`$L7VSADM -V | grep "l7vsd_snmpagent                  info"`
+
+if [ -n "${RET}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+#Change The Log Level Of L7vsd_snmpagent To Error
+$L7VSADM -L -c l7vsd_snmpagent -l error
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -L -c l7vsd_snmpagent -l error"
+        exit 1
+fi
+
+#Check The Status Of L7vsd
+RET=`$L7VSADM -V | grep "l7vsd_snmpagent                  error"`
+
+if [ -n "${RET}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-3.sh b/test/script/PT/B/B-3.sh
new file mode 100755 (executable)
index 0000000..d9d92a9
--- /dev/null
@@ -0,0 +1,101 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Check Help
+RET=`$L7VSADM -h`
+
+EXPECT="Usage: 
+  l7vsadm -A -t service-address -m proto-module [module-args]
+          [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
+          [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]
+          [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]
+  l7vsadm -E -t service-address -m proto-module [module-args]
+          [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]
+          [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]
+  l7vsadm -D -t service-address -m proto-module [module-args]
+  l7vsadm -C
+  l7vsadm -a|e -t service-address -m proto-module [module-args]
+          -r server-address [-w weight] [--masq|tproxy]
+  l7vsadm -d -t service-address -m proto-module [module-args]
+          -r server-address
+  l7vsadm -R -s replication-switch
+  l7vsadm -R -f
+  l7vsadm -R -d
+  l7vsadm -L -c log-category -l log-level
+  l7vsadm -S [-f snmp-flag] [-i update-interval] [-t log-trap-flag] [-l log-trap-level]
+  l7vsadm -S -r [-t service-address -m proto-module]
+  l7vsadm -P -r reload-parameter
+  l7vsadm -l [-n]
+  l7vsadm -V [-n]
+  l7vsadm -K [-n]
+  l7vsadm -h
+
+Commands:
+  --add-service      -A        add virtual service with options
+  --edit-service     -E        edit virtual service with options
+  --delete-service   -D        delete virtual service with options
+  --flush            -C        flush virtual service
+  --add-server       -a        add real server with options
+  --edit-server      -e        edit real server with options
+  --delete-server    -d        delete real server with options
+  --replication      -R        control replication-function
+  --log              -L        control logger-function
+  --snmp             -S        control SNMP Agent-function
+  --parameter        -P        control parameter-function
+  --list             -l        list the table
+  --verbose          -V        list the table in verbose format
+  --key              -K        list the table in key setting format
+  --help             -h        show usage
+
+Options:
+  --tcp-service      -t service-address     service-address is host:port
+  --proto-module     -m proto-module        protocol module name and module argument
+                        [module-args]
+  --scheduler        -s scheduler           one of rr,lc,wrr
+  --upper            -u connection-count    maximum number of connections
+  --bypass           -b sorry-server        sorry server address is host:port
+  --tproxy                                  set sorry server connection to IP transparent mode.
+  --masq                                    set sorry server connection to IP masquerade mode.
+  --flag             -f sorry-flag          sorry status set to virtual service
+  --qos-up           -Q QoSval-up           QoS Threshold(bps) set to real server direction
+  --qos-down         -q QoSval-down         QoS Threshold(bps) set to client direction
+  --ssl              -z ssl-config-file     SSL configuration file(Use SSL)
+  --sockopt          -O socket-option       deferaccept,nodelay,cork,quickackon or quickackoff set to socket option
+  --access-log       -L access-log-flag     access log flag 0(none) or 1(output)
+  --access-log-name  -a access-log-file     access log file
+                        [logrotate-args]
+  --real-server      -r server-address      server-address is host:port
+  --weight           -w weight              scheduling weight set to real server
+  --tproxy                                  set real server connection to IP transparent mode.
+  --masq                                    set real server connection to IP masquerade mode.
+  --switch           -s replication-switch  start or stop replication
+  --force            -f                     force replication start
+  --dump             -d                     dump replication memory
+  --category         -c log-category        set log category for l7vsd or SNMP Agent
+  --level            -l log-level           set log level for l7vsd or SNMP Agent
+  --reload           -r reload-parameter    reload specified config parameter
+  --numeric          -n                     list the table in numeric
+  --flag             -f snmp-flag           start or stop snmp function 0(off) 1(on)
+  --interval         -i update-interval     set collect snmp cache collect interval(s)
+  --logtrap          -t log-trap-flag       start or stop log trap function 0(off) 1(on)
+  --logtraplevel     -l log-trap-level      set log trap level for snmp
+  --refresh          -r                     clear statistic info for snmp"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -h"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-38-IPv4v4.sh b/test/script/PT/B/B-38-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..4f8e048
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-38-IPv6v4.sh b/test/script/PT/B/B-38-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..9f33f35
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-38-IPv6v6.sh b/test/script/PT/B/B-38-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..a942826
--- /dev/null
@@ -0,0 +1,63 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="[::1]"
+
+. ${SET_DEFAULT_CONF}
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-39-IPv4v4.sh b/test/script/PT/B/B-39-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..a43bc09
--- /dev/null
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+\cp -f materials/B-39-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-39-IPv6v4.sh b/test/script/PT/B/B-39-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..cf6d6a8
--- /dev/null
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+\cp -f materials/B-39-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-39-IPv6v6.sh b/test/script/PT/B/B-39-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..9412de8
--- /dev/null
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="[::1]"
+
+\cp -f materials/B-39-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   active"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -f 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "Agent Status"`
+EXPECT="Agent Status                   inactive"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-4-IPv4v4.sh b/test/script/PT/B/B-4-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..ce4b67b
--- /dev/null
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+VS1="127.0.0.1"
+SS1="127.0.0.1"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-4-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr -u 100 -b $SS1:80 -f 0 -Q 200K -q 200K
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:8080 -m sessionless -s rr -u 100 -b 127.0.0.1:80 -f 0 -Q 200K -q 200K"
+        exit 1
+fi
+
+#Check Virtual Service status
+RET=`$L7VSADM -V`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+L7vsd Log Level:
+Category                       Level
+l7vsd_network                  warn
+l7vsd_network_qos              warn
+l7vsd_network_bandwidth        warn
+l7vsd_network_num_connection   warn
+l7vsd_network_access           warn
+l7vsd_mainthread               warn
+l7vsd_virtualservice           warn
+l7vsd_virtualservice_thread    warn
+l7vsd_session                  warn
+l7vsd_session_thread           warn
+l7vsd_realserver               warn
+l7vsd_sorryserver              warn
+l7vsd_module                   warn
+l7vsd_replication              warn
+l7vsd_replication_sendthread   warn
+l7vsd_parameter                warn
+l7vsd_logger                   warn
+l7vsd_command                  warn
+l7vsd_start_stop               warn
+l7vsd_system                   warn
+l7vsd_system_memory            warn
+l7vsd_system_endpoint          warn
+l7vsd_system_signal            warn
+l7vsd_system_environment       warn
+l7vsd_snmpagent                warn
+l7vsd_protocol                 warn
+l7vsd_schedule                 warn
+
+Replication Mode:
+SINGLE
+
+SNMPAgent:
+Agent Status                   inactive
+log trap status                none
+log trap level                 none
+cache update interval          none
+start date                     none
+last request date              none
+last trap date                 none
+total GET requests             none
+total SET requests             none
+total trap counts              none
+
+Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr --sorry-uri '/' --statistic 0
+  Bypass Settings:
+    Sorry Server                  localhost:http Masq
+    Max Connection                100
+    Sorry Flag                    off
+  SSL Settings:
+    SSL Config File               none
+  Logging Settings:
+    Access Log                    off
+    Access Log File               none
+    Access Log Rotate             --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
+  Socket Settings:
+    TCP_DEFER_ACCEPT              disable
+    TCP_NODELAY                   disable
+    TCP_CORK                      disable
+    TCP_QUICKACK                  auto
+  Throughput:
+    Current Upload / Limit        0.000000 Mbps / 0.200000 Mbps
+    Current Download / Limit      0.000000 Mbps / 0.200000 Mbps
+  Statistics:
+    HTTP Total Requests           0
+    HTTP GET Requests             0
+    HTTP POST Requests            0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-4-IPv6v4.sh b/test/script/PT/B/B-4-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..e7c676e
--- /dev/null
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+VS1="[::1]"
+SS1="127.0.0.1"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-4-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr -u 100 -b $SS1:80 -f 0 -Q 200K -q 200K
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:8080 -m sessionless -s rr -u 100 -b 127.0.0.1:80 -f 0 -Q 200K -q 200K"
+        exit 1
+fi
+
+#Check Virtual Service status
+RET=`$L7VSADM -V`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+L7vsd Log Level:
+Category                       Level
+l7vsd_network                  warn
+l7vsd_network_qos              warn
+l7vsd_network_bandwidth        warn
+l7vsd_network_num_connection   warn
+l7vsd_network_access           warn
+l7vsd_mainthread               warn
+l7vsd_virtualservice           warn
+l7vsd_virtualservice_thread    warn
+l7vsd_session                  warn
+l7vsd_session_thread           warn
+l7vsd_realserver               warn
+l7vsd_sorryserver              warn
+l7vsd_module                   warn
+l7vsd_replication              warn
+l7vsd_replication_sendthread   warn
+l7vsd_parameter                warn
+l7vsd_logger                   warn
+l7vsd_command                  warn
+l7vsd_start_stop               warn
+l7vsd_system                   warn
+l7vsd_system_memory            warn
+l7vsd_system_endpoint          warn
+l7vsd_system_signal            warn
+l7vsd_system_environment       warn
+l7vsd_snmpagent                warn
+l7vsd_protocol                 warn
+l7vsd_schedule                 warn
+
+Replication Mode:
+SINGLE
+
+SNMPAgent:
+Agent Status                   inactive
+log trap status                none
+log trap level                 none
+cache update interval          none
+start date                     none
+last request date              none
+last trap date                 none
+total GET requests             none
+total SET requests             none
+total trap counts              none
+
+Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr --sorry-uri '/' --statistic 0
+  Bypass Settings:
+    Sorry Server                  localhost:http Masq
+    Max Connection                100
+    Sorry Flag                    off
+  SSL Settings:
+    SSL Config File               none
+  Logging Settings:
+    Access Log                    off
+    Access Log File               none
+    Access Log Rotate             --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
+  Socket Settings:
+    TCP_DEFER_ACCEPT              disable
+    TCP_NODELAY                   disable
+    TCP_CORK                      disable
+    TCP_QUICKACK                  auto
+  Throughput:
+    Current Upload / Limit        0.000000 Mbps / 0.200000 Mbps
+    Current Download / Limit      0.000000 Mbps / 0.200000 Mbps
+  Statistics:
+    HTTP Total Requests           0
+    HTTP GET Requests             0
+    HTTP POST Requests            0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-4-IPv6v6.sh b/test/script/PT/B/B-4-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..2252245
--- /dev/null
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+VS1="[::1]"
+SS1="[::1]"
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-4-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr -u 100 -b $SS1:80 -f 0 -Q 200K -q 200K
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:8080 -m sessionless -s rr -u 100 -b 127.0.0.1:80 -f 0 -Q 200K -q 200K"
+        exit 1
+fi
+
+#Check Virtual Service status
+RET=`$L7VSADM -V`
+EXPECT="Layer-7 Virtual Server version 3.0.0
+L7vsd Log Level:
+Category                       Level
+l7vsd_network                  warn
+l7vsd_network_qos              warn
+l7vsd_network_bandwidth        warn
+l7vsd_network_num_connection   warn
+l7vsd_network_access           warn
+l7vsd_mainthread               warn
+l7vsd_virtualservice           warn
+l7vsd_virtualservice_thread    warn
+l7vsd_session                  warn
+l7vsd_session_thread           warn
+l7vsd_realserver               warn
+l7vsd_sorryserver              warn
+l7vsd_module                   warn
+l7vsd_replication              warn
+l7vsd_replication_sendthread   warn
+l7vsd_parameter                warn
+l7vsd_logger                   warn
+l7vsd_command                  warn
+l7vsd_start_stop               warn
+l7vsd_system                   warn
+l7vsd_system_memory            warn
+l7vsd_system_endpoint          warn
+l7vsd_system_signal            warn
+l7vsd_system_environment       warn
+l7vsd_snmpagent                warn
+l7vsd_protocol                 warn
+l7vsd_schedule                 warn
+
+Replication Mode:
+SINGLE
+
+SNMPAgent:
+Agent Status                   inactive
+log trap status                none
+log trap level                 none
+cache update interval          none
+start date                     none
+last request date              none
+last trap date                 none
+total GET requests             none
+total SET requests             none
+total trap counts              none
+
+Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
+  -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
+TCP localhost:webcache sessionless rr --sorry-uri '/' --statistic 0
+  Bypass Settings:
+    Sorry Server                  localhost:http Masq
+    Max Connection                100
+    Sorry Flag                    off
+  SSL Settings:
+    SSL Config File               none
+  Logging Settings:
+    Access Log                    off
+    Access Log File               none
+    Access Log Rotate             --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M
+  Socket Settings:
+    TCP_DEFER_ACCEPT              disable
+    TCP_NODELAY                   disable
+    TCP_CORK                      disable
+    TCP_QUICKACK                  auto
+  Throughput:
+    Current Upload / Limit        0.000000 Mbps / 0.200000 Mbps
+    Current Download / Limit      0.000000 Mbps / 0.200000 Mbps
+  Statistics:
+    HTTP Total Requests           0
+    HTTP GET Requests             0
+    HTTP POST Requests            0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-40-IPv4v4.sh b/test/script/PT/B/B-40-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..4799b3f
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-40-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-40-IPv6v4.sh b/test/script/PT/B/B-40-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..b712256
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-40-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-40-IPv6v6.sh b/test/script/PT/B/B-40-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..0daaa9c
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="[::1]"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-40-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-41-IPv4v4.sh b/test/script/PT/B/B-41-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..329a1d3
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-41-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-41-IPv6v4.sh b/test/script/PT/B/B-41-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..bf4eaa2
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-41-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-41-IPv6v6.sh b/test/script/PT/B/B-41-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..43819ed
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+
+VS1="[::1]"
+RS1="[::1]"
+
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-41-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#start
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service 
+$L7VSADM -A -t $VS1:8080 -m sessionless -s rr
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:8080 -m sessionless -s rr"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:8080 -m sessionless -r $RS1:80"
+        exit 1
+fi
+
+
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                on"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+#enable snmpagent
+$L7VSADM -S -t 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 0"
+        exit 1
+fi
+
+RET=`$L7VSADM -V 2>&1 | grep "log trap status"`
+EXPECT="log trap status                off"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V"
+        exit 1
+fi
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-42-IPv4v4.sh b/test/script/PT/B/B-42-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..c37d409
--- /dev/null
@@ -0,0 +1,162 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+VS2="127.0.0.1"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=127.0.0.1
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m ip"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS2:40002 -m ip"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc $VS1 40001 -s 127.0.0.2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc $VS2 40002 -s 127.0.0.2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc $VS1 40001 -s 127.0.0.2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc $VS2 40002 -s 127.0.0.2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh --tcp-service  127.0.0.1:40001 --proto-module ip 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh --tcp-service  127.0.0.1:40001 --proto-module ip "
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+300"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-42-IPv6v4.sh b/test/script/PT/B/B-42-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..97ea636
--- /dev/null
@@ -0,0 +1,168 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+VS2="[::1]"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=127.0.0.1
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS2:40002 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh --tcp-service  $VS1:40001 --proto-module ip 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh --tcp-service  $VS1:40001 --proto-module ip "
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+300"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-42-IPv6v6.sh b/test/script/PT/B/B-42-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..27a616f
--- /dev/null
@@ -0,0 +1,168 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+VS2="[::1]"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=[::1]
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=[::1]
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS2:40002 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh --tcp-service  [::1]:40001 --proto-module ip 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh --tcp-service  [::1]:40001 --proto-module ip "
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+300"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-43-IPv4v4.sh b/test/script/PT/B/B-43-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..e3a295f
--- /dev/null
@@ -0,0 +1,162 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+VS2="127.0.0.1"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=127.0.0.1
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -A -t $VS1:40001 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS2:40002 -m ip"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc 127.0.0.1 40001 -s 127.0.0.2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc 127.0.0.1 40002 -s 127.0.0.2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc 127.0.0.1 40001 -s 127.0.0.2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc 127.0.0.1 40002 -s 127.0.0.2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh --tcp-service  127.0.0.1:40001 --proto-module ip "
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+0"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-43-IPv6v4.sh b/test/script/PT/B/B-43-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..fb3616a
--- /dev/null
@@ -0,0 +1,167 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+VS2="[::1]"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=127.0.0.1
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -A -t $VS2:40002 -m ip -c 1 -F"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh"
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+0"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-43-IPv6v6.sh b/test/script/PT/B/B-43-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..df5e178
--- /dev/null
@@ -0,0 +1,167 @@
+#!/bin/bash
+
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+VS2="[::1]"
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=[::1]
+RealServer1_PORT=50001
+
+RealServer2=RealServer2
+RealServer2_ADDR=[::1]
+RealServer2_PORT=50002
+
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer2"
+        exit 1
+fi
+
+
+$L7VSADM -A -t $VS1:40001 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip -c 1 -F "
+        exit 1
+fi
+
+$L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT}"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS2:40002 -m ip -c 1 -F 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS2:40002 -m ip -c 1 -F "
+        exit 1
+fi
+
+$L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS2:40002 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT}"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+#Connect
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+POST_REQ="POST / HTTP/1.0\r\n\r\n"
+for ((I=0; I<100;I++)) 
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${GET_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+for ((I=0; I<200;I++)) 
+{
+    echo -e -n "${POST_REQ}" | nc ::1 40001 -s ::2 >/dev/null 2>&1
+    echo -e -n "${POST_REQ}" | nc ::1 40002 -s ::2 >/dev/null 2>&1
+}
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="300
+300"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="100
+100"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="200
+200"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+#clear statistic(using long option)
+$L7VSADM --snmp --refresh 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM --snmp --refresh"
+        exit 1
+fi
+
+#HTTP Total Requests check
+RET=`$L7VSADM -V -n | grep "HTTP Total Requests" | awk '{ print $4}'`
+EXPECT="0
+0"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP Total Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP GET Requests check
+RET=`$L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP GET Requests" | awk '{print $4}'"
+        exit 1
+fi
+
+#HTTP POST Requests check
+RET=`$L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}'`
+EXPECT="0
+0"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: $L7VSADM -V -n | grep "HTTP POST Requests" | awk '{print $4}"
+        exit 1
+fi
+
+
+
+exit 0
+
+
diff --git a/test/script/PT/B/B-44-IPv4v4.sh b/test/script/PT/B/B-44-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..cbce7c5
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 2>&1`
+
+usleep 100000
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"$VS1\""
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-44-IPv6v4.sh b/test/script/PT/B/B-44-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..e420a97
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 2>&1`
+
+usleep 100000
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"::1\""
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-44-IPv6v6.sh b/test/script/PT/B/B-44-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..11abea4
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="[::1]"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 2>&1`
+
+usleep 100000
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"::1\""
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsVsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-45-IPv4v4.sh b/test/script/PT/B/B-45-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..03399ae
--- /dev/null
@@ -0,0 +1,68 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT"
+        exit 1
+fi
+
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+for((I=0;I<100;I++))
+{
+    echo -e -n "${GET_REQ}" | nc 127.0.0.1 40001
+}
+
+RET=`snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 100"
+echo "$RET"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-45-IPv6v4.sh b/test/script/PT/B/B-45-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..8bd5993
--- /dev/null
@@ -0,0 +1,74 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+for((I=0;I<100;I++))
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2
+}
+
+RET=`snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 100"
+echo "$RET"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-45-IPv6v6.sh b/test/script/PT/B/B-45-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..7b91b17
--- /dev/null
@@ -0,0 +1,74 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=[::1]
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -F -c 1"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r ${RealServer1_ADDR}:$RealServer1_PORT"
+        exit 1
+fi
+
+RET=`ifconfig lo | grep ::2`
+if [ -z "${RET}" ]
+then
+       ifconfig lo add ::2
+fi
+
+GET_REQ="GET / HTTP/1.0\r\n\r\n"
+for((I=0;I<100;I++))
+{
+    echo -e -n "${GET_REQ}" | nc ::1 40001 -s ::2
+}
+
+RET=`snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 100"
+echo "$RET"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "snmpget -v 2c -c public 127.0.0.1 ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-46-IPv4v4.sh b/test/script/PT/B/B-46-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..9031f0a
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 1000000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+usleep 100000
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1`
+
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"$RS1\""
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-46-IPv6v4.sh b/test/script/PT/B/B-46-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..311e948
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 1000000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+usleep 100000
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"$RS1\""
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-46-IPv6v6.sh b/test/script/PT/B/B-46-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..beb5d90
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="[::1]"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 1000000
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless -s rr 
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless -s rr"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+
+usleep 100000
+#Check Return Value
+RET=`snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1`
+echo "$RET"
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"::1\""
+echo "$EXPECT"
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpget -v 2c -c public localhost ULTRAMONKEY-L7-MIB::l7vsRsAddr.1"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-47-IPv4v4.sh b/test/script/PT/B/B-47-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..32e20d0
--- /dev/null
@@ -0,0 +1,178 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-47-sslproxy.target1.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf
+\cp -f materials/B-47-sslproxy.target2.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+
+VS="127.0.0.1"
+RS="127.0.0.1"
+SS="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+RET=`$L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf`
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10"
+        exit 1
+fi
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20"
+        exit 1
+fi
+
+
+#Check Return Value
+RET=`snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey-l7 2>&1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.2 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.2 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.2 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsPort.2 = Gauge32: 40002
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.2 = STRING: ip
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.2 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.2 = STRING: wrr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.2 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.2 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.2 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 80
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.2 = Gauge32: 81
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 5 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.2 = Counter64: 10 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.2 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 100000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.2 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.3 = INTEGER: 3
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.4 = INTEGER: 4
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.3 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.4 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.2 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.3 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.4 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.2 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.3 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.4 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsPort.1 = Gauge32: 50001
+ULTRAMONKEY-L7-MIB::l7vsRsPort.2 = Gauge32: 50002
+ULTRAMONKEY-L7-MIB::l7vsRsPort.3 = Gauge32: 50003
+ULTRAMONKEY-L7-MIB::l7vsRsPort.4 = Gauge32: 50004
+ULTRAMONKEY-L7-MIB::l7vsRsForward.1 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.2 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.3 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.4 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.1 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.2 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.3 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.4 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+
+echo "$RET" >1.log
+echo "$EXPECT" >2.log
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-47-IPv6v4.sh b/test/script/PT/B/B-47-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..d508611
--- /dev/null
@@ -0,0 +1,176 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-47-sslproxy.target1.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf
+\cp -f materials/B-47-sslproxy.target2.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+
+VS="[::1]"
+RS="127.0.0.1"
+SS="127.0.0.1"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+RET=`$L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf`
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10"
+        exit 1
+fi
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20"
+        exit 1
+fi
+
+
+#Check Return Value
+RET=`snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey-l7 2>&1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.2 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.2 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.2 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsPort.2 = Gauge32: 40002
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.2 = STRING: ip
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.2 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.2 = STRING: wrr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.2 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.2 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.2 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 80
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.2 = Gauge32: 81
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 5 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.2 = Counter64: 10 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.2 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 100000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.2 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.3 = INTEGER: 3
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.4 = INTEGER: 4
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.3 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.4 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.2 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.3 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.4 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.2 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.3 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.4 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsRsPort.1 = Gauge32: 50001
+ULTRAMONKEY-L7-MIB::l7vsRsPort.2 = Gauge32: 50002
+ULTRAMONKEY-L7-MIB::l7vsRsPort.3 = Gauge32: 50003
+ULTRAMONKEY-L7-MIB::l7vsRsPort.4 = Gauge32: 50004
+ULTRAMONKEY-L7-MIB::l7vsRsForward.1 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.2 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.3 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.4 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.1 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.2 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.3 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.4 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-47-IPv6v6.sh b/test/script/PT/B/B-47-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..adce070
--- /dev/null
@@ -0,0 +1,178 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+\cp -f materials/B-47-sslproxy.target1.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf
+\cp -f materials/B-47-sslproxy.target2.cf ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+
+VS="[::1]"
+RS="[::1]"
+SS="[::1]"
+
+#Start L7VSD Service
+$INIT_L7VSD start
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $INIT_L7VSD start"
+        exit 1
+fi
+usleep 100000
+
+#enable snmpagent
+$L7VSADM -S -f 1 -i 0
+if [ $? -ne 0 ]
+then
+        echo "Test failed: L7VSADM -S -f 1 -i 0"
+        exit 1
+fi
+usleep 100000
+#Add Virtual Service
+RET=`$L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf`
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40001 -m sessionless -s rr -b $SS:80 -f 0 -u 5 -Q 100K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target1.cf"
+        exit 1
+fi
+
+$L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS:40002 -m ip -s wrr -b $SS:81 -f 0 -u 10 -Q 200K -q 200K -z ${L7VSD_CONF_DIR}/sslproxy/sslproxy.target2.cf"
+        exit 1
+fi
+
+
+#Add Real Service
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50001 -w 10"
+        exit 1
+fi
+$L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40001 -m sessionless -r $RS:50002 -w 20"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50003 -w 10"
+        exit 1
+fi
+
+$L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS:40002 -m ip -r $RS:50004 -w 20"
+        exit 1
+fi
+
+
+#Check Return Value
+RET=`snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey-l7 `
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.2 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.2 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.2 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsPort.2 = Gauge32: 40002
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.2 = STRING: ip
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.2 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.2 = STRING: wrr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.2 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.2 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.2 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 80
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.2 = Gauge32: 81
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 5 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.2 = Counter64: 10 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.2 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.2 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 100000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.2 = Counter64: 200000 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.2 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.2 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.2 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.3 = INTEGER: 3
+ULTRAMONKEY-L7-MIB::l7vsRsIndex.4 = INTEGER: 4
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.2 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.3 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsVsIndex.4 = INTEGER: 2
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.1 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.2 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.3 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsRsAddrType.4 = INTEGER: IPv6(2)
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.1 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.2 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.3 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsRsAddr.4 = STRING: \"::1\"
+ULTRAMONKEY-L7-MIB::l7vsRsPort.1 = Gauge32: 50001
+ULTRAMONKEY-L7-MIB::l7vsRsPort.2 = Gauge32: 50002
+ULTRAMONKEY-L7-MIB::l7vsRsPort.3 = Gauge32: 50003
+ULTRAMONKEY-L7-MIB::l7vsRsPort.4 = Gauge32: 50004
+ULTRAMONKEY-L7-MIB::l7vsRsForward.1 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.2 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.3 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsForward.4 = INTEGER: masq(1)
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.1 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.2 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.3 = INTEGER: 10
+ULTRAMONKEY-L7-MIB::l7vsRsWeight.4 = INTEGER: 20
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.2 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.3 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsRsInActiveConn.4 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+echo "$RET" >1.log
+echo "$EXPECT" >2.log
+
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+        echo "Test failed: snmpwalk -v 2c -c public localhost ULTRAMONKEY-L7-MIB::ultramonkey"
+        exit 1
+fi
+
+exit 0
+
diff --git a/test/script/PT/B/B-48.sh b/test/script/PT/B/B-48.sh
new file mode 100755 (executable)
index 0000000..0363652
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-48-snmptrapd.log
+if [ $? -ne 0 ]
+then
+        echo "Test failed: ${SNMPTRAPD} "
+        exit 1
+fi
+
+
+#Add Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 2000000
+
+#Check Traplog
+RET=`ps -e | grep l7vsd`
+if [ -z "$RET" ]
+then
+        echo "Test failed: ps -e | grep l7vsd"
+        exit 1
+fi
+RET=`cat  ${L7VS_LOG_DIR}/B-48-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.1.1 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00010001,l7vsd start."`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-48-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-49-IPv4.sh b/test/script/PT/B/B-49-IPv4.sh
new file mode 100755 (executable)
index 0000000..670cbea
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-49-IPv4-snmptrapd.log
+
+#Start L7VSD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service
+$L7VSADM -A -t $VS1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless"
+        exit 1
+fi
+
+usleep 100000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-49-IPv4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.1 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020001,A virtual service was added.vs:127.0.0.1:40001"`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-49-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-49-IPv6.sh b/test/script/PT/B/B-49-IPv6.sh
new file mode 100755 (executable)
index 0000000..92d94d0
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-49-IPv6-snmptrapd.log
+
+#Start L7VSD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Service
+$L7VSADM -A -t $VS1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless"
+        exit 1
+fi
+
+usleep 100000
+
+#Check Traplog
+
+RET=`cat  ${L7VS_LOG_DIR}/B-49-IPv6-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.1 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020001,A virtual service was added.vs:\[::1\]:40001"`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-49-IPv6-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-50-IPv4v4.sh b/test/script/PT/B/B-50-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..5530a7b
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-50-IPv4v4-snmptrapd.log
+
+#Start L7VSD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 500000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+usleep 100000
+
+#Check Traplog
+
+RET=`cat  ${L7VS_LOG_DIR}/B-50-IPv4v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.4 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020004,A real server was added.vs:127.0.0.1:40001,rs:127.0.0.1:50001"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-50-IPv4v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-50-IPv6v4.sh b/test/script/PT/B/B-50-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..c457f1e
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-50-IPv6v4-snmptrapd.log
+
+#Start L7VSD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 500000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+usleep 100000
+
+#Check Traplog
+cat ${L7VS_LOG_DIR}/B-50-IPv6v4-snmptrapd.log
+RET=`cat  ${L7VS_LOG_DIR}/B-50-IPv6v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.4 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020004,A real server was added.vs:\[::1\]:40001,rs:127.0.0.1:50001"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-50-IPv6v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-50-IPv6v6.sh b/test/script/PT/B/B-50-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..da098e4
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+VS1="[::1]"
+RS1="[::1]"
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-50-IPv6v6-snmptrapd.log
+
+#Start L7VSD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 500000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m sessionless"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m sessionless -r $RS1:50001"
+        exit 1
+fi
+usleep 100000
+
+#Check Traplog
+cat  ${L7VS_LOG_DIR}/B-50-IPv6v6-snmptrapd.log
+RET=`cat  ${L7VS_LOG_DIR}/B-50-IPv6v6-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.4 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020004,A real server was added.vs:\[::1\]:40001,rs:\[::1\]:50001"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-50-IPv6v6-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-51-IPv4v4.sh b/test/script/PT/B/B-51-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..f88feaf
--- /dev/null
@@ -0,0 +1,74 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+VS1="127.0.0.1"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-51-IPv4v4-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -Q 1M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Rervice
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in materials 
+dd if=/dev/zero of=${TMP_DIR}/10M.dat bs=1024 count=10240
+
+#Get The File
+$WGET http://$VS1:40001 --post-file ${TMP_DIR}/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://127.0.0.1:40001 --post-file 10M.dat"
+        exit 1
+fi
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-51-IPv4v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.7 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020007,Warning: The up-throughput has exceeded the threshold of QoS warning."`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-51-IPv4v4-snmptrapd.log"
+        exit 1
+fi
+
+
+exit 0
diff --git a/test/script/PT/B/B-51-IPv6v4.sh b/test/script/PT/B/B-51-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..6bc92b2
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+VS1="[::1]"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-51-IPv6v4-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -Q 1M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Rervice
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in materials 
+dd if=/dev/zero of=${TMP_DIR}/10M.dat bs=1024 count=10240
+
+#Get The File
+$WGET http://$VS1:40001 --post-file ${TMP_DIR}/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://$VS1:40001 --post-file 10M.dat"
+        exit 1
+fi
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-51-IPv6v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.7 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020007,Warning: The up-throughput has exceeded the threshold of QoS warning."`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-51-IPv6v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-51-IPv6v6.sh b/test/script/PT/B/B-51-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..b5c3d2b
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+
+VS1="[::1]"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-51-IPv6v6-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=[::1]
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -Q 1M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Rervice
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in materials 
+dd if=/dev/zero of=${TMP_DIR}/10M.dat bs=1024 count=10240
+
+#Get The File
+$WGET http://$VS1:40001 --post-file ${TMP_DIR}/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://$VS1:40001 --post-file 10M.dat"
+        exit 1
+fi
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-51-IPv6v6-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.7 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020007,Warning: The up-throughput has exceeded the threshold of QoS warning."`
+
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-51-IPv6v6-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-52-IPv4v4.sh b/test/script/PT/B/B-52-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..3dbad89
--- /dev/null
@@ -0,0 +1,83 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="127.0.0.1"
+
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-52-IPv4v4-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -q 4M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in lighttpd's default folder
+dd if=/dev/zero of="$LIGHTTPD_TMP_DIR"/"$RealServer1"/10M.dat bs=1M count=10
+if [ $? -ne 0 ]
+then
+        echo "dd if=/dev/zero of=$LIGHTTPD_TMP_DIR/$RealServer1/10M.dat bs=1M count=10"
+
+        exit 1
+fi
+
+#Get The File
+$WGET -q -O /dev/null http://$VS1:40001/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://$VS1:40001/10M.dat -t 1"
+       
+       #Delete temporary file
+       \rm -f "$LIGHTTPD_TMP_DIR"/"$RealServer1"/10M.dat 
+        exit 1
+fi
+
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-52-IPv4v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.9 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020009,Warning: The down-throughput has exceeded the threshold of down-QoS warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-52-IPv4v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-52-IPv6v4.sh b/test/script/PT/B/B-52-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..7f9d96a
--- /dev/null
@@ -0,0 +1,80 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="[::1]"
+
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-52-IPv6v4-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=127.0.0.1
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -q 4M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in lighttpd's default folder
+dd if=/dev/zero of="$LIGHTTPD_TMP_DIR"/"$RealServer1"/10M.dat bs=1M count=10
+if [ $? -ne 0 ]
+then
+        echo "dd if=/dev/zero of=$LIGHTTPD_TMP_DIR/$RealServer1/10M.dat bs=1M count=10"
+
+        exit 1
+fi
+
+#Get The File
+$WGET -q -O /dev/null http://$VS1:40001/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://$VS1:40001/10M.dat -t 1"
+        exit 1
+fi
+
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-52-IPv6v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.9 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020009,Warning: The down-throughput has exceeded the threshold of down-QoS warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-52-IPv6v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-52-IPv6v6.sh b/test/script/PT/B/B-52-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..883bd6f
--- /dev/null
@@ -0,0 +1,79 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="[::1]"
+
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-52-IPv6v6-snmptrapd.log
+
+#Run http server
+RealServer1=RealServer1
+RealServer1_ADDR=[::1]
+RealServer1_PORT=50001
+start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -i
+if [ $? -ne 0 ]
+then
+        echo "Test failed: start_lighttpd RealServer1"
+        exit 1
+fi
+
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add Virtual Service
+$L7VSADM -A -t $VS1:40001 -m ip -q 4M
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add Real Service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT"
+        exit 1
+fi
+
+#Make 10M.dat in lighttpd's default folder
+dd if=/dev/zero of="$LIGHTTPD_TMP_DIR"/"$RealServer1"/10M.dat bs=1M count=10
+if [ $? -ne 0 ]
+then
+        echo "dd if=/dev/zero of=$LIGHTTPD_TMP_DIR/$RealServer1/10M.dat bs=1M count=10"
+        exit 1
+fi
+
+#Get The File
+$WGET -q -O /dev/null http://$VS1:40001/10M.dat -t 1
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $WGET http://$VS1:40001/10M.dat -t 1"
+        exit 1
+fi
+
+usleep 5000000
+
+#Check Traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-52-IPv6v6-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.9 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020009,Warning: The down-throughput has exceeded the threshold of down-QoS warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-52-IPv6v6-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-53-IPv4v4.sh b/test/script/PT/B/B-53-IPv4v4.sh
new file mode 100755 (executable)
index 0000000..62d5952
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="127.0.0.1"
+RS1="127.0.0.1"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-53-IPv4v4-snmptrapd.log
+
+
+#nc server
+#Run nc server
+nc -i 1 -l 50001 > ${TMP_DIR}/nc_tmp &
+NC_PID=$!
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add virtual service
+$L7VSADM -A -t $VS1:40001 -m ip
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add real service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001"
+        exit 1
+fi
+
+#Make 28 active connection
+for ((i=0;i<28;i++)){ nc 127.0.0.1 40001 -w 5& }
+wait $NC_PID
+
+usleep 5000000
+#Check traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-53-IPv4v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.11 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020011,Warning: The left-session has fell below the threshold of left-session warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-53-IPv4v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-53-IPv6v4.sh b/test/script/PT/B/B-53-IPv6v4.sh
new file mode 100755 (executable)
index 0000000..f9b6f29
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="[::1]"
+RS1="127.0.0.1"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-53-IPv6v4-snmptrapd.log
+
+
+#nc server
+#Run nc server
+nc -i 1 -l 50001 > ${TMP_DIR}/nc_tmp &
+NC_PID=$!
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add virtual service
+$L7VSADM -A -t $VS1:40001 -m ip
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add real service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001"
+        exit 1
+fi
+
+#Make 28 active connection
+for ((i=0;i<28;i++)){ nc ::1 40001 -w 5& }
+wait $NC_PID
+
+usleep 5000000
+#Check traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-53-IPv6v4-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.11 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020011,Warning: The left-session has fell below the threshold of left-session warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-53-IPv6v4-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-53-IPv6v6.sh b/test/script/PT/B/B-53-IPv6v6.sh
new file mode 100755 (executable)
index 0000000..212a281
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+VS1="[::1]"
+RS1="[::1]"
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-53-IPv6v6-snmptrapd.log
+
+
+#nc server
+#Run nc server
+nc -i 1 -l 50001 -6 > ${TMP_DIR}/nc_tmp &
+NC_PID=$!
+
+#Start L7VAD Service
+TIME=`date`
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Add virtual service
+$L7VSADM -A -t $VS1:40001 -m ip
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t $VS1:40001 -m ip"
+        exit 1
+fi
+
+#Add real service
+$L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -a -t $VS1:40001 -m ip -r $RS1:50001"
+        exit 1
+fi
+
+#Make 28 active connection
+for ((i=0;i<28;i++)){ nc ::1 40001 -w 5& }
+wait $NC_PID
+
+usleep 5000000
+#Check traplog
+RET=`cat  ${L7VS_LOG_DIR}/B-53-IPv6v6-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.2.11 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},TRAP00020011,Warning: The left-session has fell below the threshold of left-session warning."`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-53-IPv6v6-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-54.sh b/test/script/PT/B/B-54.sh
new file mode 100755 (executable)
index 0000000..b916f1b
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-48-54-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-48-54-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-54-snmptrapd.log
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+usleep 100000
+
+#Set Trap Log Level
+$L7VSADM -S -t 1 -l warn
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 1 -l warn"
+        exit 1
+fi
+
+#Add virtual Service
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless 1"
+        exit 1
+fi
+#Add virtual Service Again
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+
+usleep 1000000
+
+#Check Trap Log
+
+RET=`cat  ${L7VS_LOG_DIR}/B-54-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.3.3 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},VSD3.*"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-48-54-snmptrapd.log"
+        exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-55.sh b/test/script/PT/B/B-55.sh
new file mode 100755 (executable)
index 0000000..8583b3e
--- /dev/null
@@ -0,0 +1,108 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-55-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-55-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-55-snmptrapd.log
+
+#service snmpd stopped
+${INIT_SNMPD} stop
+
+RET=`pgrep snmpd`
+if [ -n "${RET}" ]
+then
+    echo "Test failed: ${INIT_SNMPD} stop"
+    exit 1
+fi
+
+usleep 100000
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#service snmpd start
+${INIT_SNMPD} start
+RET=`pgrep snmpd`
+if [ -z "${RET}" ]
+then
+    echo "Test failed: ${INIT_SNMPD} start"
+    exit 1
+fi
+
+#need time to recovery AgentX utility
+usleep 15000000
+
+#Add virtual Service
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless "
+        exit 1
+fi
+
+#Add virtual Service Again
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+
+usleep 1000000
+
+
+#Check Trap Log
+RET=`cat  ${L7VS_LOG_DIR}/B-55-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.3.3 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},VSD3.*"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-55-snmptrapd.log"
+        exit 1
+fi
+
+#Check MIB
+RET=`snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7 2>&1`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"0.0.0.0\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 0 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+
+echo "$RET" >1.log
+echo "$EXPECT" >2.log
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+       echo "Test failed: snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7"
+       exit 1
+fi
+
+exit 0
diff --git a/test/script/PT/B/B-56.sh b/test/script/PT/B/B-56.sh
new file mode 100755 (executable)
index 0000000..8e112be
--- /dev/null
@@ -0,0 +1,162 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+#copy config file
+\cp -f materials/B-56-l7vs.cf ${L7VSD_CONF_DIR}/l7vs.cf
+
+#Start snmptrapd
+${SNMPTRAPD} -c ./materials/B-56-snmptrapd.conf -Lf ${L7VS_LOG_DIR}/B-56-snmptrapd.log
+
+#check service snmpd is running
+RET=`pgrep snmpd`
+if [ -z "${RET}" ]
+then
+    echo "Test failed: snmp is not running"
+    exit 1
+fi
+
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Set Trap Log Level
+$L7VSADM -S -t 1 -l warn
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -t 1 -l warn"
+        exit 1
+fi
+
+#Add virtual Service
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless"
+        exit 1
+fi
+#Add virtual Service Again
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+
+#need time to write log file
+usleep 1000000
+
+
+#Check Trap Log
+RET=`cat  ${L7VS_LOG_DIR}/B-56-snmptrapd.log | grep -e  "SNMPv2-SMI::enterprises.32132.1.0.3.3 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},VSD3.*"`
+if [ -z "${RET}" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-56-snmptrapd.log"
+        exit 1
+fi
+
+#Check MIB
+RET=`snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"0.0.0.0\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 0 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+       echo "Test failed: snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7"
+       exit 1
+fi
+
+#restart snmpd
+${INIT_SNMPD} stop
+sleep 2
+${INIT_SNMPD} start
+sleep 2
+
+#Add virtual Service Again
+#warnning log trap 
+$L7VSADM -A -t 127.0.0.1:40001 -m sessionless
+sleep 1
+
+RET=`cat ${L7VS_LOG_DIR}/B-56-snmptrapd.log | grep -e "SNMPv2-SMI::enterprises.32132.1.0.3.3 = STRING: \"[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\},VSD3.*" | wc -l`
+echo "TEST:: $RET"
+if [ "${RET}" != "2" ]
+then
+        echo "Test failed: cat ${L7VS_LOG_DIR}/B-56-snmptrapd.log"
+        exit 1
+fi
+
+sleep 20
+
+#Check MIB
+RET=`snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7`
+EXPECT="ULTRAMONKEY-L7-MIB::l7vsVsNumber.0 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsIndex.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsProtocol.1 = INTEGER: tcp(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsAddr.1 = STRING: \"127.0.0.1\"
+ULTRAMONKEY-L7-MIB::l7vsVsPort.1 = Gauge32: 40001
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleName.1 = STRING: sessionless
+ULTRAMONKEY-L7-MIB::l7vsVsProtocolModuleOptions.1 = STRING: 
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleName.1 = STRING: rr
+ULTRAMONKEY-L7-MIB::l7vsVsScheduleModuleOptions.1 = STRING:  
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddrType.1 = INTEGER: IPv4(1)
+ULTRAMONKEY-L7-MIB::l7vsVsSorryAddr.1 = STRING: \"0.0.0.0\"
+ULTRAMONKEY-L7-MIB::l7vsVsSorryPort.1 = Gauge32: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSorryConnLimit.1 = Counter64: 0 Connections
+ULTRAMONKEY-L7-MIB::l7vsVsSorryForceEnabled.1 = INTEGER: off(2)
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUp.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDown.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputUpQoS.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsThroughputDownQos.1 = Counter64: 0 B/s
+ULTRAMONKEY-L7-MIB::l7vsVsSslFlag.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionPoolCount.1 = INTEGER: 31
+ULTRAMONKEY-L7-MIB::l7vsVsSessionActiveCount.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsVsSessionWaitCount.1 = INTEGER: 1
+ULTRAMONKEY-L7-MIB::l7vsVsHttpTotalCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpGetCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsHttpPostCount.1 = Counter64: 0
+ULTRAMONKEY-L7-MIB::l7vsVsRsNumber.1 = INTEGER: 0
+ULTRAMONKEY-L7-MIB::l7vsReplicationMode.0 = INTEGER: single(1)"
+
+echo "$EXPECT" > /tmp/1.txt
+echo "$RET" > /tmp/2.txt
+diff /tmp/1.txt /tmp/2.txt
+
+if [ "${RET}" != "${EXPECT}" ]
+then
+       echo "Test failed: snmpwalk -v 2c -c public localhost  ULTRAMONKEY-L7-MIB::ultramonkey-l7"
+       exit 1
+fi
+
+
+
+exit 0
diff --git a/test/script/PT/B/B-57.sh b/test/script/PT/B/B-57.sh
new file mode 100755 (executable)
index 0000000..ccb5726
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+# set config file
+. ${SET_DEFAULT_CONF}
+
+
+#stop snmpd
+${INIT_SNMPD} stop
+#check service snmpd is running
+RET=`pgrep snmpd`
+if [ -n "${RET}" ]
+then
+    echo "Test failed: ${INIT_SNMPD} stop"
+    exit 1
+fi
+
+
+#Start L7VAD Service
+$L7VSD
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSD"
+        exit 1
+fi
+
+usleep 100000
+
+#Set Trap Log Level
+$L7VSADM -L -c all -l debug
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -L -c all -l debug"
+        exit 1
+fi
+
+$L7VSADM -S -f 1 -t  1 -l debug
+if [ $? -ne 0 ]
+then
+        echo "Test failed: $L7VSADM -S -f 1 -t  1 -l debug"
+        exit 1
+fi
+
+
+exit 0
diff --git a/test/script/PT/B/materials/B-12-l7vs.cf b/test/script/PT/B/materials/B-12-l7vs.cf
new file mode 100644 (file)
index 0000000..ad48e26
--- /dev/null
@@ -0,0 +1,155 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "info"
+l7vsd_network_qos                = "info"
+l7vsd_network_bandwidth          = "info"
+l7vsd_network_num_connection     = "info"
+l7vsd_network_access             = "info"
+l7vsd_mainthread                 = "info"
+l7vsd_virtualservice             = "info"
+l7vsd_virtualservice_thread      = "info"
+l7vsd_session                    = "info"
+l7vsd_session_thread             = "info"
+l7vsd_realserver                 = "info"
+l7vsd_sorryserver                = "info"
+l7vsd_module                     = "info"
+l7vsd_replication                = "info"
+l7vsd_replication_sendthread     = "info"
+l7vsd_parameter                  = "info"
+l7vsd_logger                     = "info"
+l7vsd_command                    = "info"
+l7vsd_start_stop                 = "info"
+l7vsd_system                     = "info"
+l7vsd_system_memory              = "info"
+l7vsd_system_endpoint            = "info"
+l7vsd_system_signal              = "info"
+l7vsd_system_environment         = "info"
+l7vsd_snmpagent                  = "info"
+
+l7vsd_protocol                   = "info"
+l7vsd_schedule                   = "info"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "info"
+l7vsadm_operate                  = "info"
+l7vsadm_config_result            = "info"
+l7vsadm_common                   = "info"
+l7vsadm_logger                   = "info"
+l7vsadm_parameter                = "info"
+l7vsadm_module                   = "info"
+
+l7vsadm_protocol                 = "info"
+l7vsadm_schedule                 = "info"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "false"
+cache_update_interval = 1
+logtrap = "false"
+logtrap_level = "info"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
diff --git a/test/script/PT/B/materials/B-39-l7vs.cf b/test/script/PT/B/materials/B-39-l7vs.cf
new file mode 100644 (file)
index 0000000..9eb301c
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 1
+logtrap = "false"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-4-l7vs.cf b/test/script/PT/B/materials/B-4-l7vs.cf
new file mode 100644 (file)
index 0000000..e404dbc
--- /dev/null
@@ -0,0 +1,155 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "false"
+cache_update_interval = 1
+logtrap = "false"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
diff --git a/test/script/PT/B/materials/B-40-l7vs.cf b/test/script/PT/B/materials/B-40-l7vs.cf
new file mode 100644 (file)
index 0000000..9eb301c
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 1
+logtrap = "false"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-41-l7vs.cf b/test/script/PT/B/materials/B-41-l7vs.cf
new file mode 100644 (file)
index 0000000..e6d1aaa
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 1
+logtrap = "true"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-47-sslproxy.target1.cf b/test/script/PT/B/materials/B-47-sslproxy.target1.cf
new file mode 100644 (file)
index 0000000..b482d9b
--- /dev/null
@@ -0,0 +1,57 @@
+# ssl configuration file.
+# /etc/l7vs/sslproxy/sslproxy.target.cf
+
+[ssl]
+# Global configuration.
+timeout_sec = 30
+
+# SSL configuration.
+ca_dir = "/etc/l7vs/sslproxy/"
+ca_file = "root.pem"
+cert_chain_dir = "/etc/l7vs/sslproxy/"
+cert_chain_file = "server.pem"
+private_key_dir = "/etc/l7vs/sslproxy/"
+private_key_file = "server.pem"
+private_key_filetype = "SSL_FILETYPE_PEM"
+#private_key_filetype = "SSL_FILETYPE_ASN1"
+private_key_passwd_dir = "/etc/l7vs/sslproxy/"
+private_key_passwd_file = "passwd.txt"
+verify_options = "SSL_VERIFY_NONE"
+#verify_options = "SSL_VERIFY_PEER"
+#verify_options = "SSL_VERIFY_FAIL_IF_NO_PEER_CERT"
+#verify_options = "SSL_VERIFY_CLIENT_ONCE"
+verify_cert_depth = 9
+#ssl_options = "SSL_OP_MICROSOFT_SESS_ID_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_CHALLENGE_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG"
+#ssl_options = "SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG"
+#ssl_options = "SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER"
+#ssl_options = "SSL_OP_MSIE_SSLV2_RSA_PADDING"
+#ssl_options = "SSL_OP_SSLEAY_080_CLIENT_DH_BUG"
+#ssl_options = "SSL_OP_TLS_D5_BUG"
+#ssl_options = "SSL_OP_TLS_BLOCK_PADDING_BUG"
+#ssl_options = "SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS"
+ssl_options = "SSL_OP_ALL"
+#ssl_options = "SSL_OP_NO_QUERY_MTU"
+#ssl_options = "SSL_OP_COOKIE_EXCHANGE"
+#ssl_options = "SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION"
+#ssl_options = "SSL_OP_SINGLE_ECDH_USE"
+#ssl_options = "SSL_OP_SINGLE_DH_USE"
+#ssl_options = "SSL_OP_EPHEMERAL_RSA"
+#ssl_options = "SSL_OP_CIPHER_SERVER_PREFERENCE"
+#ssl_options = "SSL_OP_TLS_ROLLBACK_BUG"
+ssl_options = "SSL_OP_NO_SSLv2"
+#ssl_options = "SSL_OP_NO_SSLv3"
+#ssl_options = "SSL_OP_NO_TLSv1"
+#ssl_options = "SSL_OP_PKCS1_CHECK_1"
+#ssl_options = "SSL_OP_PKCS1_CHECK_2"
+#ssl_options = "SSL_OP_NETSCAPE_CA_DN_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG"
+#tmp_dh_dir = "/etc/l7vs/sslproxy/"
+#tmp_dh_file = "dh512.pem"
+cipher_list = "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"
+
+# SSL session cache configuration.
+session_cache = "on"
+session_cache_size = 20480
+session_cache_timeout = 300
diff --git a/test/script/PT/B/materials/B-47-sslproxy.target2.cf b/test/script/PT/B/materials/B-47-sslproxy.target2.cf
new file mode 100644 (file)
index 0000000..b482d9b
--- /dev/null
@@ -0,0 +1,57 @@
+# ssl configuration file.
+# /etc/l7vs/sslproxy/sslproxy.target.cf
+
+[ssl]
+# Global configuration.
+timeout_sec = 30
+
+# SSL configuration.
+ca_dir = "/etc/l7vs/sslproxy/"
+ca_file = "root.pem"
+cert_chain_dir = "/etc/l7vs/sslproxy/"
+cert_chain_file = "server.pem"
+private_key_dir = "/etc/l7vs/sslproxy/"
+private_key_file = "server.pem"
+private_key_filetype = "SSL_FILETYPE_PEM"
+#private_key_filetype = "SSL_FILETYPE_ASN1"
+private_key_passwd_dir = "/etc/l7vs/sslproxy/"
+private_key_passwd_file = "passwd.txt"
+verify_options = "SSL_VERIFY_NONE"
+#verify_options = "SSL_VERIFY_PEER"
+#verify_options = "SSL_VERIFY_FAIL_IF_NO_PEER_CERT"
+#verify_options = "SSL_VERIFY_CLIENT_ONCE"
+verify_cert_depth = 9
+#ssl_options = "SSL_OP_MICROSOFT_SESS_ID_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_CHALLENGE_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG"
+#ssl_options = "SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG"
+#ssl_options = "SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER"
+#ssl_options = "SSL_OP_MSIE_SSLV2_RSA_PADDING"
+#ssl_options = "SSL_OP_SSLEAY_080_CLIENT_DH_BUG"
+#ssl_options = "SSL_OP_TLS_D5_BUG"
+#ssl_options = "SSL_OP_TLS_BLOCK_PADDING_BUG"
+#ssl_options = "SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS"
+ssl_options = "SSL_OP_ALL"
+#ssl_options = "SSL_OP_NO_QUERY_MTU"
+#ssl_options = "SSL_OP_COOKIE_EXCHANGE"
+#ssl_options = "SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION"
+#ssl_options = "SSL_OP_SINGLE_ECDH_USE"
+#ssl_options = "SSL_OP_SINGLE_DH_USE"
+#ssl_options = "SSL_OP_EPHEMERAL_RSA"
+#ssl_options = "SSL_OP_CIPHER_SERVER_PREFERENCE"
+#ssl_options = "SSL_OP_TLS_ROLLBACK_BUG"
+ssl_options = "SSL_OP_NO_SSLv2"
+#ssl_options = "SSL_OP_NO_SSLv3"
+#ssl_options = "SSL_OP_NO_TLSv1"
+#ssl_options = "SSL_OP_PKCS1_CHECK_1"
+#ssl_options = "SSL_OP_PKCS1_CHECK_2"
+#ssl_options = "SSL_OP_NETSCAPE_CA_DN_BUG"
+#ssl_options = "SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG"
+#tmp_dh_dir = "/etc/l7vs/sslproxy/"
+#tmp_dh_file = "dh512.pem"
+cipher_list = "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"
+
+# SSL session cache configuration.
+session_cache = "on"
+session_cache_size = 20480
+session_cache_timeout = 300
diff --git a/test/script/PT/B/materials/B-48-54-l7vs.cf b/test/script/PT/B/materials/B-48-54-l7vs.cf
new file mode 100644 (file)
index 0000000..e6d1aaa
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 1
+logtrap = "true"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-48-54-snmptrapd.conf b/test/script/PT/B/materials/B-48-54-snmptrapd.conf
new file mode 100644 (file)
index 0000000..0ac77b1
--- /dev/null
@@ -0,0 +1,30 @@
+###########################################################################
+#
+# snmptrapd.conf
+#
+#   - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+
+
+
+###########################################################################
+# SECTION: Authentication options
+#
+#   Authentication options
+
+# ignoreauthfailure: Ignore authentication failure traps
+#   arguments: (1|yes|true|0|no|false)
+
+authcommunity execute,log,net public
+
+
+
+
+
+
diff --git a/test/script/PT/B/materials/B-55-57-snmptrapd.conf b/test/script/PT/B/materials/B-55-57-snmptrapd.conf
new file mode 100644 (file)
index 0000000..0ac77b1
--- /dev/null
@@ -0,0 +1,30 @@
+###########################################################################
+#
+# snmptrapd.conf
+#
+#   - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+
+
+
+###########################################################################
+# SECTION: Authentication options
+#
+#   Authentication options
+
+# ignoreauthfailure: Ignore authentication failure traps
+#   arguments: (1|yes|true|0|no|false)
+
+authcommunity execute,log,net public
+
+
+
+
+
+
diff --git a/test/script/PT/B/materials/B-55-l7vs.cf b/test/script/PT/B/materials/B-55-l7vs.cf
new file mode 100644 (file)
index 0000000..7133c31
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 0
+logtrap = "true"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-55-snmptrapd.conf b/test/script/PT/B/materials/B-55-snmptrapd.conf
new file mode 100644 (file)
index 0000000..0ac77b1
--- /dev/null
@@ -0,0 +1,30 @@
+###########################################################################
+#
+# snmptrapd.conf
+#
+#   - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+
+
+
+###########################################################################
+# SECTION: Authentication options
+#
+#   Authentication options
+
+# ignoreauthfailure: Ignore authentication failure traps
+#   arguments: (1|yes|true|0|no|false)
+
+authcommunity execute,log,net public
+
+
+
+
+
+
diff --git a/test/script/PT/B/materials/B-56-l7vs.cf b/test/script/PT/B/materials/B-56-l7vs.cf
new file mode 100644 (file)
index 0000000..7133c31
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 0
+logtrap = "true"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-56-snmptrapd.conf b/test/script/PT/B/materials/B-56-snmptrapd.conf
new file mode 100644 (file)
index 0000000..0ac77b1
--- /dev/null
@@ -0,0 +1,30 @@
+###########################################################################
+#
+# snmptrapd.conf
+#
+#   - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+
+
+
+###########################################################################
+# SECTION: Authentication options
+#
+#   Authentication options
+
+# ignoreauthfailure: Ignore authentication failure traps
+#   arguments: (1|yes|true|0|no|false)
+
+authcommunity execute,log,net public
+
+
+
+
+
+
diff --git a/test/script/PT/B/materials/B-57-l7vs.cf b/test/script/PT/B/materials/B-57-l7vs.cf
new file mode 100644 (file)
index 0000000..e6d1aaa
--- /dev/null
@@ -0,0 +1,156 @@
+#
+# UltraMonkey - L7 configuration file
+# Copyright (C) 2008-2009  NTT COMWARE Corporation.
+# License: GNU General Public License (GPL)
+#
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+# 
+#
+# Rivision History.
+#    3.0.0    MultiThread version release.
+#    1.2.0    First verion release.(version was put together l7vsd)
+#        - 2008/03/26 Norihisa Nakai.
+
+
+#
+# l7vs log setting
+#
+[logger]
+# l7vsd logfile base name
+l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
+# l7vsd log rotate pattern
+l7vsd_rotation = "size"
+# l7vsd rotate max backup number
+l7vsd_max_backup_index = "10"
+# l7vsd rotate file size
+l7vsd_max_filesize = "10M"
+
+# l7vsd access log rotate pattern
+l7vsd_accesslog_rotate_type = "size"
+# l7vsd access rotate max backup number
+l7vsd_accesslog_rotate_max_backup_index = "10"
+# l7vsd access rotate file size
+l7vsd_accesslog_rotate_max_filesize = "10M"
+
+# l7vsd log categories level
+l7vsd_network                    = "warn"
+l7vsd_network_qos                = "warn"
+l7vsd_network_bandwidth          = "warn"
+l7vsd_network_num_connection     = "warn"
+l7vsd_network_access             = "warn"
+l7vsd_mainthread                 = "warn"
+l7vsd_virtualservice             = "warn"
+l7vsd_virtualservice_thread      = "warn"
+l7vsd_session                    = "warn"
+l7vsd_session_thread             = "warn"
+l7vsd_realserver                 = "warn"
+l7vsd_sorryserver                = "warn"
+l7vsd_module                     = "warn"
+l7vsd_replication                = "warn"
+l7vsd_replication_sendthread     = "warn"
+l7vsd_parameter                  = "warn"
+l7vsd_logger                     = "warn"
+l7vsd_command                    = "warn"
+l7vsd_start_stop                 = "warn"
+l7vsd_system                     = "warn"
+l7vsd_system_memory              = "warn"
+l7vsd_system_endpoint            = "warn"
+l7vsd_system_signal              = "warn"
+l7vsd_system_environment         = "warn"
+l7vsd_snmpagent                  = "warn"
+
+l7vsd_protocol                   = "warn"
+l7vsd_schedule                   = "warn"
+
+# l7vsadm log file base name
+l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
+# l7vsadm rotate pattern
+l7vsadm_rotation = "date"
+# l7vsadm rotate max backup number
+l7vsadm_max_backup_index = "10"
+# l7vsadm rotate timing ( every month rotate )
+l7vsadm_rotation_timing = "month"
+# l7vsadm rotate timing ( day and time )
+l7vsadm_rotation_timing_value = "1 0:01"
+
+# l7vsadm log categories level
+l7vsadm_parse                    = "warn"
+l7vsadm_operate                  = "warn"
+l7vsadm_config_result            = "warn"
+l7vsadm_common                   = "warn"
+l7vsadm_logger                   = "warn"
+l7vsadm_parameter                = "warn"
+l7vsadm_module                   = "warn"
+
+l7vsadm_protocol                 = "warn"
+l7vsadm_schedule                 = "warn"
+
+#
+# l7vsadm setting
+#
+[l7vsadm]
+cmd_interval = 1
+cmd_count = 10
+
+#
+# l7vsd setting
+#
+[l7vsd]
+maxfileno = 65535
+
+#
+# virtualservice setting
+#
+[virtualservice]
+session_thread_pool_size    = 32
+throughput_calc_interval    = 500
+
+#
+# l7vsd replication setting
+#
+[replication]
+#ip_addr = "192.168.0.254"
+#service_name = "40000"
+#recv_ip_addr = "192.168.0.253"
+#interval = 1000
+#compulsorily_interval = 40
+
+#cmponent_id_00 = "virtualservice"
+#cmponent_size_00 = 64
+#cmponent_id_01 = "chash"
+#cmponent_size_01 = 1
+#cmponent_id_02 = "sslid"
+#cmponent_size_02 = 222
+
+#
+# snmpagent settings
+#
+[snmpagent]
+enable = "true"
+cache_update_interval = 1
+logtrap = "true"
+logtrap_level = "warn"
+qos_up_alert_on = 85
+qos_up_alert_off = 50
+qos_down_alert_on = 85
+qos_down_alert_off = 50
+sessionpool_alert_on = 5
+sessionpool_alert_off = 8
+trap_queue_polling_interval = 100000000
+trap_queue_max_size = 1000
+
diff --git a/test/script/PT/B/materials/B-57-snmptrapd.conf b/test/script/PT/B/materials/B-57-snmptrapd.conf
new file mode 100644 (file)
index 0000000..0ac77b1
--- /dev/null
@@ -0,0 +1,30 @@
+###########################################################################
+#
+# snmptrapd.conf
+#
+#   - created by the snmpconf configuration program
+#
+
+
+
+
+
+
+
+
+
+###########################################################################
+# SECTION: Authentication options
+#
+#   Authentication options
+
+# ignoreauthfailure: Ignore authentication failure traps
+#   arguments: (1|yes|true|0|no|false)
+
+authcommunity execute,log,net public
+
+
+
+
+
+