File: Svanyconfig

package info (click to toggle)
net-snmp 5.2.3-7etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 24,452 kB
  • ctags: 16,045
  • sloc: ansic: 175,930; perl: 11,814; sh: 11,230; makefile: 5,375; pascal: 62
file content (21 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# generically set up the community "testcommunity" for various snmp
# version access to the agent.

if [ "x$snmp_version" = "x" ]; then
  snmp_version="any"
fi

CONFIGAGENT com2sec testcommunitysec  default testcommunity
if [ "$SNMP_TRANSPORT_SPEC" = "udp6" -o "$SNMP_TRANSPORT_SPEC" = "tcp6" ];then 
	CONFIGAGENT com2sec6 testcommunitysec  default testcommunity
fi

if [ "$SNMP_TRANSPORT_SPEC" = "unix" ];then 
	CONFIGAGENT com2secunix testcommunitysec  testcommunity
fi

CONFIGAGENT group   testcommunitygroup  $snmp_version     testcommunitysec
CONFIGAGENT view    all     included .1 80
CONFIGAGENT 'access  testcommunitygroup  "" any noauth exact all none none'