This chapter describes the
a multilingual extensible SNMP agent
a SNMP manager
a MIB compiler
The following configuration parameters are defined for the SNMP application. Refer to application(3) for more information about configuration parameters.
The snmp part of the config file specifying the configuration parameters is basically the following tuple:
{snmp, snmp_components_config()}
A minimal config file for starting a node with both a manager and an agent:
[{snmp, [{agent, [{db_dir, "/tmp/snmp/agent/db"}, {config, [{dir, "/tmp/snmp/agent/conf"}]}]}, {manager, [{config, [{dir, "/tmp/snmp/manager/conf"}, {db_dir, "/tmp/snmp/manager/db"}]}]}]} ] } ].
Each snmp component has its own set of configuration parameters, even though some of the types are common to both components.
snmp_components_config() -> [snmp_component_config()] snmp_component_config() -> {agent, agent_options()} | {manager, manager_options()} agent_options() = [agent_option()] agent_option() = {restart_type, restart_type()} | {agent_type, agent_type()} | {agent_verbosity, verbosity()} | {discovery, agent_discovery()} | {versions, versions()} | {gb_max_vbs, gb_max_vbs()} | {priority, priority()} | {multi_threaded, multi_threaded()} | {db_dir, db_dir()} | {db_init_error, db_init_error()} | {local_db, local_db()} | {net_if, agent_net_if()} | {mibs, mibs()} | {mib_storage, mib_storage()} | {mib_server, mib_server()} | {audit_trail_log, audit_trail_log()} | {error_report_mod, error_report_mod()} | {note_store, note_store()} | {symbolic_store, symbolic_store()} | {target_cache, target_cache()} | {config, agent_config()} manager_options() = [manager_option()] manager_option() = {restart_type, restart_type()} | {net_if, manager_net_if()} | {server, server()} | {note_store, note_store()} | {config, manager_config()} | {inform_request_behaviour, manager_irb()} | {mibs, manager_mibs()} | {priority, priority()} | {audit_trail_log, audit_trail_log()} | {versions, versions()} | {def_user_mod, def_user_module() | {def_user_data, def_user_data()}
Agent specific config options and types:
If
Default is
The
The
For defaults see the options in
These are options effecting discovery
The default values for the
These are options effecting discovery
The default values for the
If
Default is
Defines where the SNMP agent internal db files are stored.
Defines the maximum number of varbinds allowed in a Get-BULK response.
Default is
Defines options specific for the SNMP agent local database.
For defaults see the options in
When starting snmpa_local_db it always tries to open an
existing database. If
Default is
The auto save interval. The table is flushed to disk whenever not accessed for this amount of time.
Default is
Defines options specific for the SNMP agent network interface entity.
For defaults see the options in
Module which handles the network interface part for the
SNMP agent. Must implement the
Default is
These options are actually specific to the used module.
The ones shown here are applicable to the default
For defaults see the options in
Max number of simultaneous requests handled by the agent.
Default is
These options are actually specific to the used module.
The ones shown here are applicable to the default
For defaults see the options in
Module which handles the network interface filter part for the
SNMP agent. Must implement the
Default is
Specifies a list of MIBs (including path) that defines which MIBs are initially loaded into the SNMP master agent.
Note that the following mibs will always be loaded:
Default is
Specifies how info retrieved from the mibs will be stored.
If
If
If
Default is
Defines options specific for the SNMP agent mib server.
For defaults see the options in
If this value is false, then when loading a mib each mib- entry is checked prior to installation of the mib. The purpose of the check is to prevent that the same symbolic mibentry name is used for different oid's.
Default is
If this value is false, then when loading a mib each trap is checked prior to installation of the mib. The purpose of the check is to prevent that the same symbolic trap name is used for different trap's.
Default is
Shall the agent utilize the mib server lookup cache or not.
Default is
Defines options specific for the SNMP agent mib server cache.
For defaults see the options in
Defines if the mib server shall perform cache gc automatically or
leave it to the user (see
Default is
Defines how old the entries in the cache will be allowed before they are GC'ed (assuming GC is performed). Each entry in the cache is "touched" whenever it is accessed.
The age is defined in milliseconds.
Default is
When performing a GC, this is the max number of cache entries that will be deleted from the cache.
The reason for having this limit is that if the cache is large, the GC can potentially take a long time, during which the agent is locked.
Default is
Defines an error report module, implementing the
Default is
Defines options specific for the SNMP agent symbolic store.
For defaults see the options in
Defines options specific for the SNMP agent target cache.
For defaults see the options in
Defines specific config related options for the SNMP agent.
For defaults see the options in
Defines where the SNMP agent configuration files are stored.
If
Default is
Manager specific config options and types:
Specifies the options for the manager server process.
Default is
Asynchroneous request cleanup time. For every requests,
some info is stored internally, in order to be able to
deliver the reply (when it arrives) to the proper destination.
If the reply arrives, this info will be deleted. But if
there is no reply (in time), the info has to be deleted
after the best before time has been passed.
This cleanup will be performed at regular intervals, defined
by the
Time in milli-seconds.
Default is
Defines specific config related options for the SNMP manager.
For defaults see the options in
Defines where the SNMP manager configuration files are stored.
Defines where the SNMP manager store persistent data.
Defines the repair option for the persistent database (if and how the table is repaired when opened).
Default is
The auto save interval. The table is flushed to disk whenever not accessed for this amount of time.
Default is
This option defines how the manager will handle the sending of response (acknowledgment) to received inform-requests.
See
Default is
Specifies a list of MIBs (including path) and defines which MIBs are initially loaded into the SNMP manager.
Default is
Defines options specific for the SNMP manager network interface entity.
For defaults see the options in
These options are actually specific to the used module.
The ones shown here are applicable to the default
For defaults see the options in
The module which handles the network interface part for the
SNMP manager. It must implement the
Default is
These options are actually specific to the used module.
The ones shown here are applicable to the default
For defaults see the options in
Module which handles the network interface filter part for the
SNMP manager. Must implement the
Default is
The module implementing the default user. See the
Default is
Data for the default user. Passed to the user module when calling the callback functions.
Default is
Common config types:
See
Default is
Defines what to do if the agent or manager is unable to open an
existing database file.
Default is
Defines the Erlang priority for all SNMP processes.
Default is
Which SNMP versions shall be accepted/used.
Default is
Verbosity for a SNMP process. This specifies now much debug info is printed.
Default is
If
Default is
If
Default is
Receive buffer size.
Default value is defined by
Send buffer size.
Default value is defined by
Specifies the start-up verbosity for the SNMP note store.
For defaults see the options in
Note cleanup time. When storing a note in the note store,
each note is given lifetime. Every
Default is
If present, this option specifies the options for the
audit trail logging. The
If not present, audit trail logging is not used.
Specifies what type of an audit trail log should be used. The effect of the type is actually different for the the agent and the manager.
For the agent:
For the manager:
Default is
Specifies where the audit trail log should be stored.
If
Specifies the size of the audit
trail log. This parameter is sent to
If
Specifies if and how the audit trail log shall be repaired
when opened. Unless this parameter has the value
Default is
Specifies if the audit trail log entries will be (sequence) numbered or not. The range of the sequence numbers are according to RFC 5424, i.e. 1 through 2147483647.
Default is
application(3), disk_log(3)