summaryrefslogtreecommitdiff
path: root/testing/fulltests/default/T132snmpv3vacmget_simple
blob: 004d0dd818334f365583a0ba8a2101fdcc2be54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

. ../support/simple_eval_tools.sh

HEADER SNMPv3 vacm acceptance support

#
# Begin test
#

# Configuration:
#initial1 can access .1.3.6.1.2.1.1.1, deny others
#initial2 can access all except .1.3.6.1.2.1.1.1 
#This case test for successful access

snmp_version=v3
. ./Sv3vacmconfig

STARTAGENT

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" 

CHECKORDIE ".1.3.6.1.2.1.1.1.0 = STRING:"

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" 

CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks: "

STOPAGENT

FINISHED