SNMP.CONF(5)SNMP.CONF(5)NAMEsnmp_config - describes how to configure the ucd-snmp
applications.
DESCRIPTION
The ucd-snmp package uses various configuration files to
configure its applications. This manual page merely
describes the overall nature of them, so that the other
manual pages don't have to.
DIRECTORIES SEARCHED
First off, there are numerous places that configuration
files can be found and read from. By default, the appli-
cations look for configuration files in the following 3
directories, in order: /usr/contrib/share/snmp, /usr/con-
trib/lib/snmp, and $HOME/.snmp. In each of these directo-
ries, it looks for files with the extension of both .conf
and default places a configuration file can exist for any
given configuration file type.
Additionally, the above default search path can be over-
ridden by setting the environment variable SNMPCONFPATH to
a ':' separated list of directories to search for.
Finally, applications that store persistent data will also
look in the /var/snmp directory for configuration files
there.
CONFIGURATION FILE TYPES
Each application may use multiple configuration files,
which will configure various different aspects of the
application. For instance, the SNMP agent (snmpd) knows
how to understand configuration directives in both the
snmpd.conf and the snmp.conf files. In fact, most appli-
cations understand how to read the contents of the
snmp.conf files. Note, however, that configuration direc-
tives understood in one file may not be understood in
another file. For further information, read the associ-
ated manual page with each configuration file type. Also,
most of the applications support a '-H' switch on the com-
mand line that will list the configuration files it will
look for and the directives in each one that it under-
stands.
The snmp.conf configuration file is intended to be a
application suite wide configuration file that supports
directives that are useful for controlling the fundamental
nature of all of the snmp applications, such as how they
all manipulate and parse the textual SNMP mib files.
COMMENTS
Any lines beginning with the character '#' in the configu-
ration files are treated as a comment and are not parsed.
14 Apr 1999 1
SNMP.CONF(5)SNMP.CONF(5)API Interface
Information about writing C code that makes use of this
system in either the agent's mib modules or in applica-
tions can be found in the read_config(3) manual page.
SEE ALSOread_config(3).
14 Apr 1999 2