Debian Codegraph @

testing/fulltests/default/Sv3vacmconfig

raw
1 #!/bin/sh
2
3 # generically set up the user "initial1" and "initial2" for snmp v3
4 # access to the agent.
5
6 # Configuration:
7 #initial1 can access .1.3.6.1.2.1.1.1, deny others
8 #initial2 can access all except .1.3.6.1.2.1.1.1
9
10 # XXX: do autoselection of supported algorithms
11 SKIPIF NETSNMP_DISABLE_MD5
12 SKIPIF NETSNMP_DISABLE_DES
13 SKIPIFNOT NETSNMP_SECMOD_USM
14
15 CONFIGAGENT [snmp] persistentdir $SNMP_TMP_PERSISTENTDIR
16
17 CONFIGAGENT createUser initial1 MD5 initial_test_pass_auth DES
18 CONFIGAGENT createUser initial2 MD5 initial_test_pass_auth DES
19
20
21 CONFIGAGENT group testcommunitygroup1 usm initial1
22 CONFIGAGENT group testcommunitygroup2 usm initial2
23
24 CONFIGAGENT view system1 included .1.3.6.1.2.1.1.1
25 CONFIGAGENT view system2 included .1
26 CONFIGAGENT view system2 excluded .1.3.6.1.2.1.1.1
27 CONFIGAGENT 'access testcommunitygroup1 "" any auth exact system1 none none'
28 CONFIGAGENT 'access testcommunitygroup2 "" any auth exact system2 none none'
29