Debian Codegraph @

testing/fulltests/default/T140snmpv1vacmgetfail_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER SNMPv1 vacm denial support
6
7 SKIPIF NETSNMP_DISABLE_SNMPV1
8
9 #
10 # Begin test
11 #
12
13 # standard V1 configuration: testcommunity1 testcommunity2
14 # testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied
15 # testcommunity2 can access all except .1.3.6.1.2.1.1.1
16 # This case test for denied access
17
18 snmp_version=v1
19 . ./Svacmconfig
20
21 STARTAGENT
22
23
24 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"
25
26 CHECKORDIE "Reason: (noSuchName) There is no such variable name in this MIB."
27
28
29 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"
30
31 CHECKORDIE "Reason: (noSuchName) There is no such variable name in this MIB."
32
33 STOPAGENT
34
35 FINISHED