~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to testing/tests/Svacmconfig

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
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.
 
7
 
 
8
if [ "x$snmp_version" = "x" ]; then
 
9
  snmp_version="any"
 
10
fi
 
11
 
 
12
 
 
13
CONFIGAGENT com2sec testcommunitysec1  default testcommunity1
 
14
CONFIGAGENT com2sec testcommunitysec2  default testcommunity2
 
15
 
 
16
if [ "$SNMP_TRANSPORT_SPEC" = "udp6" -o "$SNMP_TRANSPORT_SPEC" = "tcp6" ];then 
 
17
CONFIGAGENT com2sec6 testcommunitysec1  default testcommunity1
 
18
CONFIGAGENT com2sec6 testcommunitysec2  default testcommunity2
 
19
fi
 
20
 
 
21
if [ "$SNMP_TRANSPORT_SPEC" = "unix" ];then 
 
22
CONFIGAGENT com2secunix testcommunitysec1  testcommunity1
 
23
CONFIGAGENT com2secunix testcommunitysec2  testcommunity2
 
24
fi
 
25
 
 
26
CONFIGAGENT group   testcommunitygroup1  $snmp_version     testcommunitysec1
 
27
CONFIGAGENT group   testcommunitygroup2  $snmp_version     testcommunitysec2
 
28
 
 
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'
 
34