3
# standard V1 configuration: testcommunity1 testcommunity2
4
# testcommunity1 can access .1.3.6.1.2.1.1.1, others are denied
5
# generically set up the community "testcommunity1 and testcommunity2" for various snmp
6
# version access to the agent.
8
if [ "x$snmp_version" = "x" ]; then
13
CONFIGAGENT com2sec testcommunitysec1 default testcommunity1
14
CONFIGAGENT com2sec testcommunitysec2 default testcommunity2
16
if [ "$SNMP_TRANSPORT_SPEC" = "udp6" -o "$SNMP_TRANSPORT_SPEC" = "tcp6" ];then
17
CONFIGAGENT com2sec6 testcommunitysec1 default testcommunity1
18
CONFIGAGENT com2sec6 testcommunitysec2 default testcommunity2
21
if [ "$SNMP_TRANSPORT_SPEC" = "unix" ];then
22
CONFIGAGENT com2secunix testcommunitysec1 testcommunity1
23
CONFIGAGENT com2secunix testcommunitysec2 testcommunity2
26
CONFIGAGENT group testcommunitygroup1 $snmp_version testcommunitysec1
27
CONFIGAGENT group testcommunitygroup2 $snmp_version testcommunitysec2
29
CONFIGAGENT view system1 included .1.3.6.1.2.1.1.1
30
CONFIGAGENT view system2 included .1
31
CONFIGAGENT view system2 excluded .1.3.6.1.2.1.1.1
32
CONFIGAGENT 'access testcommunitygroup1 "" any noauth exact system1 none none'
33
CONFIGAGENT 'access testcommunitygroup2 "" any noauth exact system2 none none'