version 1.2.14.1, 2014/09/23 14:18:19
|
version 1.3.2.1, 2017/06/28 11:59:10
|
Line 1
|
Line 1
|
# $FreeBSD: src/etc/snmpd.config,v 1.14 2012/11/17 01:49:02 svnexp Exp $ | # $FreeBSD: head/etc/snmpd.config 311601 2017-01-07 09:03:40Z ngie $ |
# |
# |
# Example configuration file for bsnmpd(1). |
# Example configuration file for bsnmpd(1). |
# |
# |
Line 112 sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
|
Line 112 sysObjectId = 1.3.6.1.4.1.12325.1.1.2.1.$(system)
|
|
|
snmpEnableAuthenTraps = 2 |
snmpEnableAuthenTraps = 2 |
|
|
|
# Uncomment `begemotSnmpdModulePath.".." = ".."' entries below to enable |
|
# modules |
|
|
# |
# |
|
# Control configuration for the modules in the module specific sections, e.g. |
|
# the "usm" module (begemotSnmpdModulePath."usm") can be controlled in the |
|
# %usm specific section. You must uncomment the section specific header in |
|
# order to use the enclosed variables, e.g. `usmUserStatus.$(engine).$(user1)` |
|
# can only be used if %usm is uncommented. |
|
# |
|
# Modules are loaded in the order listed, so they must be before any |
|
# dependent modules, e.g. "mibII" vs "bridge". |
|
# |
|
|
|
# |
|
# MIB-2 module |
|
# |
|
begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" |
|
|
|
# |
|
# Bridge module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" |
|
|
|
# |
|
# Host resources module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" |
|
|
|
# |
|
# LM75 Sensor module |
|
# |
|
#begemotSnmpdModulePath."lm75" = "/usr/lib/snmp_lm75.so" |
|
|
|
# |
|
# Netgraph module |
|
# |
|
#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" |
|
|
|
# |
|
# pf(4) module |
|
# |
|
#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" |
|
|
|
# |
|
# SNMPv3 Notification Targets |
|
# |
|
# begemotSnmpdModulePath."target" = "/usr/lib/snmp_target.so" |
|
|
|
# |
# SNMPv3 User-based security module - must be loaded for SNMPv3 USM |
# SNMPv3 User-based security module - must be loaded for SNMPv3 USM |
# |
# |
#begemotSnmpdModulePath."usm" = "/usr/lib/snmp_usm.so" |
#begemotSnmpdModulePath."usm" = "/usr/lib/snmp_usm.so" |
|
|
# |
# |
|
# SNMPv3 View-based Access Control module |
|
# |
|
#begemotSnmpdModulePath."vacm" = "/usr/lib/snmp_vacm.so" |
|
|
|
# |
|
# Wireless module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."wlan" = "/usr/lib/snmp_wlan.so" |
|
|
|
# |
# SNMPv3 USM User definition. |
# SNMPv3 USM User definition. |
# |
# |
|
|
Line 127 snmpEnableAuthenTraps = 2
|
Line 189 snmpEnableAuthenTraps = 2
|
# The following block creates a user with name "bsnmp" and sets privacy |
# The following block creates a user with name "bsnmp" and sets privacy |
# and encryption options to SHA256 message digests and AES encryption |
# and encryption options to SHA256 message digests and AES encryption |
# for this user. |
# for this user. |
# | # |
# usmUserStatus.$(engine).$(user1) = 5 |
# usmUserStatus.$(engine).$(user1) = 5 |
# usmUserAuthProtocol.$(engine).$(user1) = $(HMACSHAAuthProtocol) |
# usmUserAuthProtocol.$(engine).$(user1) = $(HMACSHAAuthProtocol) |
# usmUserAuthKeyChange.$(engine).$(user1) = $(user1passwd) |
# usmUserAuthKeyChange.$(engine).$(user1) = $(user1passwd) |
Line 147 snmpEnableAuthenTraps = 2
|
Line 209 snmpEnableAuthenTraps = 2
|
# |
# |
|
|
# |
# |
# SNMPv3 View-based Access Control module |
|
# |
|
#begemotSnmpdModulePath."vacm" = "/usr/lib/snmp_vacm.so" |
|
|
|
# |
|
# Definition of view-based access control entries. |
# Definition of view-based access control entries. |
# |
# |
#%vacm |
#%vacm |
Line 170 snmpEnableAuthenTraps = 2
|
Line 227 snmpEnableAuthenTraps = 2
|
# vacmSecurityToGroupStatus.$(securityModelUSM).$(read) = 4 |
# vacmSecurityToGroupStatus.$(securityModelUSM).$(read) = 4 |
# vacmGroupName.$(securityModelUSM).$(read) = $(write) |
# vacmGroupName.$(securityModelUSM).$(read) = $(write) |
|
|
# | # |
# The OID of the .iso.org.dod.internet subtree |
# The OID of the .iso.org.dod.internet subtree |
# |
# |
# internetoid := 1.3.6.1 |
# internetoid := 1.3.6.1 |
Line 193 snmpEnableAuthenTraps = 2
|
Line 250 snmpEnableAuthenTraps = 2
|
# vacmAccessReadViewName.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = "internet" |
# vacmAccessReadViewName.$(read)."".$(securityModelSNMPv1).$(noAuthNoPriv) = "internet" |
|
|
# |
# |
# Read-write access for SNMPv2 users | # Read-write access for SNMPv2 users |
# |
# |
# vacmAccessStatus.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4 |
# vacmAccessStatus.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = 4 |
# vacmAccessReadViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" |
# vacmAccessReadViewName.$(write)."".$(securityModelSNMPv2c).$(noAuthNoPriv) = "internet" |
Line 210 snmpEnableAuthenTraps = 2
|
Line 267 snmpEnableAuthenTraps = 2
|
# |
# |
#Read-write-notify access to restricted for SNMPv3 USM users with authPriv |
#Read-write-notify access to restricted for SNMPv3 USM users with authPriv |
# |
# |
# vacmAccessStatus.$(write)."".3.$(authPriv) = 4 | # vacmAccessStatus.$(write)."".$(securityModelUSM).$(authPriv) = 4 |
# vacmAccessReadViewName.$(write)."".3.$(authPriv) = "restricted" | # vacmAccessReadViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted" |
# vacmAccessWriteViewName.$(write)."".3.$(authPriv) = "restricted" | # vacmAccessWriteViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted" |
# vacmAccessNotifyViewName.$(write)."".3.$(authPriv) = "restricted" | # vacmAccessNotifyViewName.$(write)."".$(securityModelUSM).$(authPriv) = "restricted" |
|
|
# |
|
# SNMPv3 Notification Targets |
|
# |
|
# begemotSnmpdModulePath."target" = "/usr/lib/snmp_target.so" |
|
|
|
#%target |
#%target |
# Send notifications to target tag "test" |
# Send notifications to target tag "test" |
# tag := "test" |
# tag := "test" |
Line 259 snmpEnableAuthenTraps = 2
|
Line 311 snmpEnableAuthenTraps = 2
|
# snmpTargetAddrParams.$(tagremote) = $(tag) |
# snmpTargetAddrParams.$(tagremote) = $(tag) |
# snmpTargetAddrRowStatus.$(tagremote) = 1 |
# snmpTargetAddrRowStatus.$(tagremote) = 1 |
|
|
# |
|
# Load MIB-2 module |
|
# |
|
begemotSnmpdModulePath."mibII" = "/usr/lib/snmp_mibII.so" |
|
|
|
# Force a polling rate for the 64-bit interface counters in case |
# Force a polling rate for the 64-bit interface counters in case |
# the automatic computation is wrong (which may be the case if an interface |
# the automatic computation is wrong (which may be the case if an interface |
# announces the wrong bit rate via its MIB). |
# announces the wrong bit rate via its MIB). |
#%mibII |
#%mibII |
#begemotIfForcePoll = 2000 |
#begemotIfForcePoll = 2000 |
|
|
|
|
# Netgraph module |
|
# |
|
#begemotSnmpdModulePath."netgraph" = "/usr/lib/snmp_netgraph.so" |
|
# |
|
#%netgraph |
#%netgraph |
#begemotNgControlNodeName = "snmpd" |
#begemotNgControlNodeName = "snmpd" |
|
|
# |
|
# pf(4) module |
|
# |
|
#begemotSnmpdModulePath."pf" = "/usr/lib/snmp_pf.so" |
|
|
|
# |
|
# Host resources module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."hostres" = "/usr/lib/snmp_hostres.so" |
|
|
|
# |
|
# Bridge module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."bridge" = "/usr/lib/snmp_bridge.so" |
|
|
|
# |
|
# Wireless module |
|
# This requires the mibII module. |
|
# |
|
#begemotSnmpdModulePath."wlan" = "/usr/lib/snmp_wlan.so" |
|