Debian Codegraph @

testing/fulltests/default/T027snmpv3Defaults_simple

raw
1 #!/bin/sh
2
3 . ../support/simple_eval_tools.sh
4
5 HEADER SNMPv3 get using default config of .1.3.6.1.2.1.1.3.0
6
7 SKIPIFNOT NETSNMP_CAN_DO_CRYPTO
8 SKIPIFNOT NETSNMP_ENABLE_SCAPI_AUTHPRIV
9 SKIPIFNOT HAVE_AES_CFB128_ENCRYPT
10
11 #
12 # Begin test
13 #
14
15 # standard V3 configuration for templateSHA user
16 DEFPRIVTYPE="AES"
17 DEFAUTHTYPE="SHA"
18 . ./Sv3config
19
20 STARTAGENT
21
22 CONFIGAPP defVersion 3
23 CONFIGAPP defPrivType AES
24 CONFIGAPP defAuthType SHA
25 CONFIGAPP defContext \"\"
26 CONFIGAPP defAuthPassPhrase initial_test_pass_auth
27 CONFIGAPP defPrivPassPhrase initial_test_pass_auth
28 CONFIGAPP defSecurityLevel authPriv
29 CONFIGAPP defSecurityName initial
30
31 # make sure that the above configuration tokens properly set things up so that
32 # no flags are needed
33 CAPTURE "snmpget -On $SNMP_FLAGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.3.0"
34
35 STOPAGENT
36
37 CHECK ".1.3.6.1.2.1.1.3.0 = Timeticks:"
38
39 FINISHED