Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 6.2

(Zoot)

snmp_config(5)


SNMP.CONF

SNMP.CONF

NAME
DESCRIPTION
DIRECTORIES SEARCHED
CONFIGURATION FILE TYPES
COMMENTS
API Interface
SEE ALSO

NAME

snmp_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 applications look for configuration files in the following 3 directories, in order: /usr/share/snmp, /usr/lib/snmp, and $HOME/.snmp. In each of these directories, 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 overridden 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 applications understand how to read the contents of the snmp.conf files. Note, however, that configuration directives understood in one file may not be understood in another file. For further information, read the associated manual page with each configuration file type. Also, most of the applications support a ’-H’ switch on the command line that will list the configuration files it will look for and the directives in each one that it understands.

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 configuration files are treated as a comment and are not parsed.

API Interface

Information about writing C code that makes use of this system in either the agent’s mib modules or in applications can be found in the read_config(3) manual page.

SEE ALSO

read_config(3).



snmp_config(5)