and added files
[bcm963xx.git] / userapps / opensource / net-snmp / testing / tests / T016snmpv2cgetfail
diff --git a/userapps/opensource/net-snmp/testing/tests/T016snmpv2cgetfail b/userapps/opensource/net-snmp/testing/tests/T016snmpv2cgetfail
new file mode 100644 (file)
index 0000000..17ece10
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+#
+# test snmpv2c get support by reading a variable
+#
+
+. ../eval_tools.sh
+
+HEADER for failure of SNMPv2c get with wrong community
+
+#
+# Begin test
+#
+
+# standard V2C configuration: testcomunnity
+. ./Sv2cconfig
+
+STARTAGENT
+
+CAPTURE "snmpget -On $SNMP_FLAGS -c notavalidcommunity -v 2c udp:localhost:$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
+
+STOPAGENT
+
+CHECK "Timeout"
+
+FINISHED