Blame testing/fulltests/default/Sv3vacmconfigMD5
|
Packit |
fcad23 |
#!/bin/sh
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
# generically set up the user "initial1" and "initial2" for snmp v3
|
|
Packit |
fcad23 |
# access to the agent.
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
# Configuration:
|
|
Packit |
fcad23 |
#initial1 can access .1.3.6.1.2.1.1.1, deny others
|
|
Packit |
fcad23 |
#initial2 can access all except .1.3.6.1.2.1.1.1
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
# XXX: do autoselection of supported algorithms
|
|
Packit |
fcad23 |
SKIPIF NETSNMP_DISABLE_MD5
|
|
Packit |
fcad23 |
SKIPIFNOT NETSNMP_SECMOD_USM
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
CONFIGAGENT [snmp] persistentdir $SNMP_TMP_PERSISTENTDIR
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
CONFIGAGENT createUser initial1 MD5 initial_test_pass_auth
|
|
Packit |
fcad23 |
CONFIGAGENT createUser initial2 MD5 initial_test_pass_auth
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
CONFIGAGENT group testcommunitygroup1 usm initial1
|
|
Packit |
fcad23 |
CONFIGAGENT group testcommunitygroup2 usm initial2
|
|
Packit |
fcad23 |
|
|
Packit |
fcad23 |
CONFIGAGENT view system1 included .1.3.6.1.2.1.1.1
|
|
Packit |
fcad23 |
CONFIGAGENT view system2 included .1
|
|
Packit |
fcad23 |
CONFIGAGENT view system2 excluded .1.3.6.1.2.1.1.1
|
|
Packit |
fcad23 |
CONFIGAGENT 'access testcommunitygroup1 "" any auth exact system1 none none'
|
|
Packit |
fcad23 |
CONFIGAGENT 'access testcommunitygroup2 "" any auth exact system2 none none'
|
|
Packit |
fcad23 |
|