sv3vacmconfig

来自「开发snmp的开发包有两个开放的SNMP开发库」· 代码 · 共 29 行

TXT
29
字号
#!/bin/sh# generically set up the user "initial1" and "initial2"  for snmp v3# access to the agent.# 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 # XXX: do autoselection of supported algorithmsSKIPIF DISABLE_MD5SKIPIF DISABLE_DESCONFIGAGENT [snmp] persistentdir $SNMP_TMP_PERSISTENTDIRCONFIGAGENT createUser initial1 MD5 initial_test_pass_auth DESCONFIGAGENT createUser initial2 MD5 initial_test_pass_auth DESCONFIGAGENT group   testcommunitygroup1  usm     initial1CONFIGAGENT group   testcommunitygroup2  usm     initial2CONFIGAGENT view    system1     included .1.3.6.1.2.1.1.1 CONFIGAGENT view    system2     included .1CONFIGAGENT view    system2     excluded .1.3.6.1.2.1.1.1 CONFIGAGENT 'access  testcommunitygroup1  "" any auth exact system1 none none'CONFIGAGENT 'access  testcommunitygroup2  "" any auth exact system2 none none'

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?