diff options
Diffstat (limited to 'testing/tests/T140snmpv1vacmgetfail')
-rw-r--r-- | testing/tests/T140snmpv1vacmgetfail | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/tests/T140snmpv1vacmgetfail b/testing/tests/T140snmpv1vacmgetfail new file mode 100644 index 0000000..0510008 --- /dev/null +++ b/testing/tests/T140snmpv1vacmgetfail @@ -0,0 +1,35 @@ +#!/bin/sh + +. ../eval_tools.sh + +HEADER SNMPv1 vacm denial support + +SKIPIF NETSNMP_DISABLE_SNMPV1 + +# +# Begin test +# + +# standard V1 configuration: testcommunity1 testcommunity2 +# testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied +# testcommunity2 can access all except .1.3.6.1.2.1.1.1 +# This case test for denied access + +snmp_version=v1 +. ./Svacmconfig + +STARTAGENT + + +CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity1 -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0" + +CHECKORDIE "Reason: (noSuchName) There is no such variable name in this MIB." + + +CAPTURE "snmpget -On $SNMP_FLAGS -c testcommunity2 -v 1 $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.1.0" + +CHECKORDIE "Reason: (noSuchName) There is no such variable name in this MIB." + +STOPAGENT + +FINISHED |