# Fichier de configuration /etc/snmp/snmp.conf
# Fichier �crit par ram-0000 (http://ram-0000.developpez.com/)

#
# ------------------------------------------------
# Param�tre de r�glage du comportement des clients
# ------------------------------------------------
#

# The transport domain that should be used for a certain application type
# unless something else is specified.
#defDomain application domain

# The target that should be used for connections to a certain application
# if the connection should be in a specific domain.
#defTarget application domain target

# Defines the default UDP port that client SNMP applications will attempt to
# connect to. This can be overridden by explicitly including a port number in
# the AGENT specification. See the snmpcmd(1) manual page for more details.
# If not specified, the default value for this token is 161.
#defaultPort PORT

# Defines the default version of SNMP to use. This can be overridden using
# the -v option.
#defVersion (1 | 2c | 3)

# Defines the default community to use for SNMPv1 and SNMPv2c requests. This
# can be overridden using the -c option.
#defCommunity STRING

# Defines whether to display a hexadecimal dump of the raw SNMP requests sent
# and received by the application. This is equivalent to the -d option.
#dumpPacket yes

# Turns on debugging for all applications run if set to 1.
#doDebugging (1 | 0)

# Defines the debugging tokens that should be turned on when doDebugging is set.
# This is equivalent to the -D option.
#debugTokens TOKEN[,TOKEN...]

# Restricts requestIDs, etc to 16-bit values. The SNMP specifications define
# these ID fields as 32-bit quantities, and the Net-SNMP library typically
# initialises them to random values for security. However certain (broken)
# agents cannot handle ID values greater than 2^16 - this option allows
# interoperability with such agents.
#16bitIDs yes

# Specifies the source address to be used by command-line applications when
# sending SNMP requests. See snmpcmd(1) for more information about the format
# of addresses. This value is also used by snmpd when generating notifications.
#clientaddr [<transport-specifier>:]<transport-address>

# Specifies the desired size of the buffer to be used when receiving responses
# to SNMP requests. If the OS hard limit is lower than the clientRecvBuf value,
# then this will be used instead. Some platforms may decide to increase the
# size of the buffer actually used for internal housekeeping. This directive
# will be ignored if the platforms does not support setsockopt().
#clientRecvBuf INTEGER

# It is similar to clientRecvBuf, but applies to the size of the buffer used
# when sending SNMP requests.
#clientSendBuf INTEGER

# Disables the validation of varbind values against the MIB definition for the
# relevant OID. This is equivalent to the -Ir option. This directive is
# primarily relevant to the snmpset command, but will also apply to any
# application that calls snmp_add_var() with a non-NULL value.
#noRangeCheck yes

# Disables warnings about unknown config file tokens.
#noTokenWarnings

# Controls how the encoding of SNMP requests is handled. The default behaviour
# is to encode packets starting from the end of the PDU and working backwards.
# This directive can be used to disable this behaviour, and build the encoded
# request in the (more obvious) forward direction. It should not normally be
# necessary to change this setting, as the encoding is basically the same in
# either case but working backwards typically produces a slightly more
# efficient encoding, and hence a smaller network datagram.
#reverseEncodeBER (1 | yes | true | 0 | no | false)

#
# -----------------
# Param�tres SNMPv3
# -----------------
#

# Defines the default security name to use for SNMPv3 requests. This can be
# overridden using the -u option.
#defSecurityName STRING

# Defines the default security level to use for SNMPv3 requests. This can be
# overridden using the -l option. If not specified, the default value for this
# token is noAuthNoPriv. Note: authPriv is only available if the software has
# been compiled to use the OpenSSL libraries.
#defSecurityLevel noAuthNoPriv | authNoPriv | authPriv

# Define the default authentication and privacy pass phrases to use for SNMPv3
# requests. These can be overridden using the ?A and -X options respectively.
# The defPassphrase value will be used for the authentication and/or privacy
# pass phrases if either of the other directives are not specified.
#defPassphrase STRING
#defAuthPassphrase STRING
#defPrivPassphrase STRING

# Define the default authentication and privacy protocols to use for SNMPv3
# requests. These can be overridden using the -a and -x options respectively.
# If not specified, SNMPv3 requests will default to MD5 authentication and DES
# encryption. Note: If the software has not been compiled to use the OpenSSL
# libraries, then only MD5 authentication is supported. Neither SHA
# authentication nor any form of encryption will be available.
#defAuthType MD5 | SHA
#defPrivType DES | AES

# Defines the default context to use for SNMPv3 requests. This can be
# overridden using the -n option. If not specified, the default value for this
# token is the default context (i.e. the empty string "").
#defContext STRING

# Defines the security model to use for SNMPv3 requests. The default value is
# "usm" which is the only widely used security model for SNMPv3.
#defSecurityModel STRING

# Define the (hexadecimal) keys to be used for SNMPv3 secure communications.
# SNMPv3 keys are frequently derived from a passphrase, as discussed in the
# defPassphrase section above. However for improved security a truely random
# key can be generated and used instead (which would normally has better
# entropy than a password unless it is amazingly long). The directives are
# equivalent to the short-form command line options -3m, -3M, -3k, and -3K.
# Localized keys are master keys which have been converted to a unique key
# which is only suitable for on particular SNMP engine (agent). The length of
# the key needs to be appropriate for the authentication or encryption type
# being used (authentication keys: MD5=16 bytes, SHA1=20 bytes; privacy keys:
# DES=16 bytes (8 bytes of which is used as an IV and not a key), and AES=16
# bytes).
#defAuthMasterKey 0xHEXSTRING
#defPrivMasterKey 0xHEXSTRING
#defAuthLocalizedKey 0xHEXSTRING
#defPrivLocalizedKey 0xHEXSTRING

#
# ---------------------
# Param�tres du serveur
# ---------------------
#

# Defines the directory where snmpd and snmptrapd store persistent
# configuration settings. If not specified, the persistent directory defaults
# to /var/lib/snmp
#persistentDir DIRECTORY

# Disable the loading and saving of persistent configuration information. Note:
# This will break SNMPv3 operations (and other behaviour that relies on changes
# persisting across application restart). Use With Care.
#noPersistentLoad yes
#noPersistentSave yes

# Defines a filename template for creating temporary files, for handling input
# to and output from external shell commands. Used by the mkstemp() and
# mktemp() functions. If not specified, the default pattern is
# /tmp/snmpdXXXXXX.
#tempFilePattern PATTERN

# Specifies the desired size of the buffer to be used when receiving incoming
# SNMP requests. If the OS hard limit is lower than the serverRecvBuf value,
# then this will be used instead. Some platforms may decide to increase the
# size of the buffer actually used for internal housekeeping. This directive
# will be ignored if the platforms does not support setsockopt().
#serverRecvBuf INTEGER

# It is similar to serverRecvBuf, but applies to the size of the buffer used
# when sending SNMP responses.
#serverSendBuf INTEGER

#
# -----------------------------
# Param�tres de gestion des MIB
# -----------------------------
#

# Specifies a list of directories to search for MIB files. This operates in the
# same way as the -M option - see snmpcmd(1) for details. Note that this value
# can be overridden by the MIBDIRS environment variable, and the -M option.
#mibdirs DIRLIST
mibdirs /usr/share/mibs/netsnmp

# Specifies a list of MIB modules (not files) that should be loaded. This
# operates in the same way as the -m option - see snmpcmd(1) for details. Note
# that this list can be overridden by the MIBS environment variable, and the -m
# option.
#mibs MIBLIST
mibs :

# Specifies a (single) MIB file to load, in addition to the list read from the
# mibs token (or equivalent configuration). Note that this value can be
# overridden by the MIBFILES environment variable.
#mibfile FILE

# Specifies whether to display MIB parsing errors.
#showMibErrors (1 | yes | true | 0 | no | false)

# Specifies whether MIB parsing should be strict about comment termination.
# Many MIB writers assume that ASN.1 comments extend to the end of the text
# line, rather than being terminated by the next "--" token. This token can be
# used to accept such (strictly incorrect) MIBs. Note that this directive is
# poorly named, since a value of "true" will turn off the strict interpretation
# of MIB comments.
#strictCommentTerm (1 | yes | true | 0 | no | false)

# Specifies whether to allow underline characters in MIB object names and
# enumeration values. This token can be used to accept such (strictly
# incorrect) MIBs.
#mibAllowUnderline (1 | yes | true | 0 | no | false)

# Specifies the minimum warning level of the warnings printed by the MIB
# parser.
#mibWarningLevel INTEGER

#
# ----------------------------------
# Param�tres de gestion de la sortie
# ----------------------------------
#

# Whether the commands should log timestamps with their error/message logging
# or not. Note that output will not look as pretty with timestamps if the
# source code that is doing the logging does incremental logging of messages
# that are not line buffered before being passed to the logging routines. This
# option is only used when file logging is active.
#logTimestamp (1 | yes | true | 0 | no | false)

# Equivalent to ?Oe option.
#printNumericEnums (1 | yes | true | 0 | no | false)

# Equivalent to ?On option.
#printNumericOids (1 | yes | true | 0 | no | false)

# Equivalent to ?Ob option.
#dontBreakdownOids (1 | yes | true | 0 | no | false)

# Equivalent to ?OE option.
#escapeQuotes (1 | yes | true | 0 | no | false)

# Equivalent to ?Oq option.
#quickPrinting (1 | yes | true | 0 | no | false)

# Equivalent to ?Ov option.
#printValueOnly (1 | yes | true | 0 | no | false)

# Equivalent to ?OU option.
#dontPrintUnits (1 | yes | true | 0 | no | false)

# Equivalent to ?Ot option.
#numericTimeticks (1 | yes | true | 0 | no | false)

# Equivalent to ?OT option.
#printHexText (1 | yes | true | 0 | no | false)

# Specifies where to break up the output of hexadecimal strings. Set to 0 to
# disable line breaks. Defaults to 16.
#hexOutputLength integer

# The value 1 is equivalent to -Os option and the value 2 is equivalent to ?OS
# option.
#suffixPrinting (0 | 1 | 2)

# Maps -O options as follow: -Os=1, -OS=2, -Of=3, -On=4, -Ou=5. The value 6 has
# no matching -O option. It suppresses output.
#oidOutputFormat (1 | 2 | 3 | 4 | 5 | 6)

# Equivalent to ?OX option.
#extendedIndex (1 | yes | true | 0 | no | false)

# Disables the use of DISPLAY-HINT information when parsing indices and values
# to set. Equivalent to ?Ih option.
#noDisplayHint (1 | yes | true | 0 | no | false) 