Difference between revisions of "Template:FAQ:Applications 25"

From Net-SNMP Wiki
Jump to: navigation, search
(5.4 release synchronisation)
m (Latest FAQ revision - preparing for 5.5 release)
 
Line 12: Line 12:
 
(if appropriate) the community string to use.
 
(if appropriate) the community string to use.
  
Some of these (such as the MIB file location), might be best put in
+
Some of these (such as MIB information), might be best put in
 
a shared snmp.conf file (typically <CODE>/usr/local/share/snmp/snmp.conf</CODE> or
 
a shared snmp.conf file (typically <CODE>/usr/local/share/snmp/snmp.conf</CODE> or
 
<CODE>/etc/snmp/snmp.conf</CODE>) to apply to all users of the system.  Others
 
<CODE>/etc/snmp/snmp.conf</CODE>) to apply to all users of the system.  Others
 
(particularly the SNMPv3 security settings), are more likely to refer
 
(particularly the SNMPv3 security settings), are more likely to refer
to a particular user, and should go in a personal snmp.conf file
+
to a particular user, and should probably go in a personal snmp.conf file
 
(typically <CODE>$HOME/.snmp/snmp.conf</CODE>).
 
(typically <CODE>$HOME/.snmp/snmp.conf</CODE>).
 
      
 
      

Latest revision as of 10:40, 28 May 2009

This is used to set common configuration values for most of the applications, to avoid having to specify them every time. Examples are the SNMPv3 settings mentioned above, defaults for which MIBs to load and where from (see the second entry in this section), and the default SNMP version, port and (if appropriate) the community string to use.

Some of these (such as MIB information), might be best put 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 probably go in a personal snmp.conf file (typically $HOME/.snmp/snmp.conf).

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).