Debian Codegraph @

testing/fulltests/default/T132snmpv3vacmget_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER SNMPv3 vacm acceptance support
6
7 #
8 # Begin test
9 #
10
11 # Configuration:
12 #initial1 can access .1.3.6.1.2.1.1.1, deny others
13 #initial2 can access all except .1.3.6.1.2.1.1.1
14 #This case test for successful access
15
16 snmp_version=v3
17 . ./Sv3vacmconfigMD5
18
19 STARTAGENT
20
21 CAPTURE "snmpget -On $SNMP_FLAGS -v3 -a MD5 -A initial_test_pass_auth -u initial1 -l anp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.1.0"
22
23 CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:"
24
25 CAPTURE "snmpget -On $SNMP_FLAGS -v3 -a MD5 -A initial_test_pass_auth -u initial2 -l anp $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
26
27 CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks: "
28
29 STOPAGENT
30
31 FINISHED