2 # Copyright (c) 2001-2003
3 # Fraunhofer Institute for Open Communication Systems (FhG Fokus).
6 # Author: Harti Brandt <harti@freebsd.org>
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
17 # THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 # ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
21 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 # $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $
31 # Example configuration file for testing.
35 # Set some common variables
38 location := "Room 200"
39 contact := "sysmeister@bar.com"
45 write := "geheim" # take care - this allows writing
48 securityModelSNMPv1 := 1
49 securityModelSNMPv2c := 2
57 begemotSnmpdDebugDumpPdus = 2
58 begemotSnmpdDebugSyslogPri = 7
59 begemotSnmpdDebugSnmpTrace = 0
62 # Set community strings.
64 # Each community string has a permission attached to it - 1 for read only
65 # and 2 for read/write. Default is 1. Community strings must be unique.
67 # Be sure to understand the security implications of SNMPv2 - the community
68 # strings are readable on the wire!
70 begemotSnmpdCommunityString.0.1 = $(read)
71 begemotSnmpdCommunityPermission.0.1 = 1
72 #begemotSnmpdCommunityString.0.2 = $(write)
73 #begemotSnmpdCommunityPermission.0.2 = 2
74 #begemotSnmpdCommunityString.0.3 = "otherPublic"
75 begemotSnmpdCommunityDisable = 1
77 # open standard SNMP ports
79 begemotSnmpdTransInetStatus.1.4.0.0.0.0.161.1 = 4
81 # test the port table; IPv4 address
83 begemotSnmpdTransInetStatus.1.4.127.0.0.1.10161.1 = 4
85 # test the port table; IPv6 address
87 begemotSnmpdTransInetStatus.2.16.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.10162.1 = 4
89 begemotSnmpdTransInetStatus.2.16.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.10163.1 = 4
90 # fe80::1%1:10164 - requires inet fe80::1%em0/64
91 begemotSnmpdTransInetStatus.4.20.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.1.10164.1 = 4
92 # fe80::1%2:10164 - requires inet fe80::1%em1/64
93 begemotSnmpdTransInetStatus.4.20.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.2.10164.1 = 4
94 # fe80::1:10170 - should fail (no scope index)
95 # begemotSnmpdTransInetStatus.2.16.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.10170.1 = 4
96 # fe80::1%0:10170 - should fail (default scope index for link local address)
97 # begemotSnmpdTransInetStatus.4.20.254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.0.10170.1 = 4
99 # test the port table; DNS address
100 # :10165 UDPv4 and UDPv6
101 begemotSnmpdTransInetStatus.16.0.10165.1 = 4
104 begemotSnmpdTransInetStatus.16."localhost".10166.1 = 4
106 begemotSnmpdTransInetStatus.16."localhost6".10167.1 = 4
107 # fe80::1%em0:10168 - requires inet fe80::$em0/64
108 begemotSnmpdTransInetStatus.16."fe80::1%em0".10168.1 = 4
109 # fe80::1%em1:10169 - requires inet fe80::$em1/64
110 begemotSnmpdTransInetStatus.16."fe80::1%em1".10169.1 = 4
112 # open a unix domain socket
113 # begemotSnmpdLocalPortStatus."/var/run/snmpd.sock" = 1
114 # begemotSnmpdLocalPortType."/var/run/snmpd.sock" = 4
116 # send traps to the traphost
117 begemotTrapSinkStatus.[$(traphost)].$(trapport) = 4
118 begemotTrapSinkVersion.[$(traphost)].$(trapport) = 2
119 begemotTrapSinkComm.[$(traphost)].$(trapport) = $(trap)
121 sysContact = $(contact)
122 sysLocation = $(location)
123 sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
125 snmpEnableAuthenTraps = 2
130 #begemotSnmpdModulePath."mibII" = "../snmp_mibII/.libs/snmp_mibII.so"
131 begemotSnmpdModulePath."mibII" = "/usr/local/lib/snmp_mibII.so"
134 # SNMPv3 notification targets
136 #begemotSnmpdModulePath."target" = "../snmp_target/.libs/snmp_target.so"
137 begemotSnmpdModulePath."target" = "/usr/local/lib/snmp_target.so"
140 # SNMPv3 user-based security module
142 #begemotSnmpdModulePath."usm" = "../snmp_usm/.libs/snmp_usm.so"
143 begemotSnmpdModulePath."usm" = "/usr/local/lib/snmp_usm.so"
146 # SNMPv3 view-based access control module
148 #begemotSnmpdModulePath."vacm" = "../snmp_vacm/.libs/snmp_vacm.so"
149 begemotSnmpdModulePath."vacm" = "/usr/local/lib/snmp_vacm.so"
154 # begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so"
156 # begemotNgControlNodeName = "snmpd"
160 internetoid := 1.3.6.1
163 vacmSecurityToGroupStatus.$(securityModelSNMPv1).$(read) = 4
164 vacmGroupName.$(securityModelSNMPv1).$(read) = $(read)
166 vacmSecurityToGroupStatus.$(securityModelSNMPv2c).$(read) = 4
167 vacmGroupName.$(securityModelSNMPv2c).$(read) = $(read)
169 vacmSecurityToGroupStatus.$(securityModelSNMPv2c).$(write) = 4
170 vacmGroupName.$(securityModelSNMPv2c).$(write) = $(write)
172 vacmViewTreeFamilyStatus."internet".$(internetoidlen).$(internetoid) = 4
174 vacmAccessStatus.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = 4
175 vacmAccessReadViewName.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = "internet"
177 vacmAccessStatus.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4
178 vacmAccessStatus.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4
179 vacmAccessReadViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet"
180 vacmAccessReadViewName.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet"
181 vacmAccessWriteViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet"
182 vacmAccessWriteViewName.$(read)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet"