summaryrefslogtreecommitdiff
path: root/testing/fulltests/default/T027snmpv3Defaults_simple
blob: ea42f474ff9d47d227ec5ba03479db9fb1c60052 (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
32
33
34
35
36
37
38
#!/bin/sh

. ../support/simple_eval_tools.sh

HEADER SNMPv3 get using default config of .1.3.6.1.2.1.1.3.0

SKIPIFNOT NETSNMP_CAN_DO_CRYPTO
SKIPIFNOT NETSNMP_ENABLE_SCAPI_AUTHPRIV
SKIPIFNOT HAVE_AES_CFB128_ENCRYPT

#
# Begin test
#

# standard V3 configuration for templateSHA user
DEFPRIVTYPE="AES"
DEFAUTHTYPE="SHA"
. ./Sv3config

STARTAGENT

CONFIGAPP defPrivType AES
CONFIGAPP defAuthType SHA
CONFIGAPP defContext \"\"
CONFIGAPP defAuthPassPhrase initial_test_pass_auth
CONFIGAPP defPrivPassPhrase initial_test_pass_auth
CONFIGAPP defSecurityLevel authPriv
CONFIGAPP defSecurityName initial

# make sure that the above configuration tokens properly set things up so that
# no flags are needed
CAPTURE "snmpget -On $SNMP_FLAGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"

STOPAGENT

CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks:"

FINISHED