The work to be carried out in BS2000 is described in the sections listed below. For general recommendations, please refer to section “Recommendations for using the SNMP service safely”.
Configuration can be useful for controlling the fundamental nature of all of the SNMP applications. This could be achieved by using one of the available configuration methods in the following order of preference:
Command line arguments
Environment variables (MIBS and MIBDIRS)
Configuration files with extension .conf or .local.conf (will be read the last) from the following directories:
/etc/snmp
(searched the first)/usr/local/share/snmp
/usr/local/lib/snmp
~/.snmp
/var/net-snmp
(searched the latest)
There are a couple of the SNMP configuration files available for different parts of NET-SNMP:
<NAME_OF_BINARY>.conf
or<NAME_OF_BINARY>.local.conf
controls parameters and capabilities of the specific binary.
Example:
snmpd
->snmpd.conf
openUTMAgent
->openUTMAgent.conf
snmpwalk
->snmpwalk.conf
snmp.conf
orsnmp.local.conf
NET-SNMP general configuration file.
agentx.conf
oragentx.local.conf
master/agent configuration for AgentX
snmpapp.conf
orsnmpapp.local.conf
SNMP tools configuration (snmpwalk, snmpget... )
Each application may use multiple methods of configuration. 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. 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 the corresponding understands.