Template:FAQ:Applications 25
This is used to set common configuration values for most of the applications, to avoid having to specify them every time. Examples include the SNMPv3 settings mentioned above, defaults for which MIBs to load and where from, and the default SNMP version, port and (if appropriate) the community string to use.
Some of these (such as the MIB file location), might belong in a
shared snmp.conf file (typically /usr/local/share/snmp/snmp.conf
or
/etc/snmp/snmp.conf
) to apply to all users of the system. Others
(particularly the SNMPv3 security settings), are more likely to refer
to a particular user, and should go in a personal snmp.conf file
(typically $HOME/.snmp/snmp.conf
).
Note that the Net-SNMP package does not come with an example 'snmp.conf'
file. See 'snmpget -H'
and/or the snmp.conf(5)
man page for more details.
You can also use the "snmpconf"
command to help you generate your
snmp.conf
configuration file (just run it and answer its questions).