Overview
Start by reading the snmp_config
manual page that describes how the
Net-SNMP configuration files operate and
how they all work together. Note: When using Windows, all
configuration files should be placed in the (install
folder)\etc\snmp folder.
Note: The Net-SNMP configuration
files generally contain sensitive
information such as passphrases and community strings so permissions
should be set to restrict who can read the files.
A Perl script called snmpconf is included which can be used to
create configuration files. Full documentation on using snmpconf
is available in the 'Applications' section.
To run snmpconf, use the following command line:
snmpconf -i
The following registry keys are defined during installation:
- HKEY_LOCAL_MACHINE\Software\Net-SNMP\SNMPCONFPATH=(install folder)/etc/snmp
- HKEY_LOCAL_MACHINE\Software\Net-SNMP\SNMPSHAREPATH=(install folder)/share/snmp
If Net-SNMP is installed in a folder other than the default c:\usr, the above registry keys
must match, and the snmp.conf
file must contain a definition for mibdirs,
persistentDir and tempFilePattern. For example,
if Net-SNMP was installed in c:\net-snmp:
mibdirs
c:/net-snmp/share/snmp/mibs
persistentDir c:/net-snmp/snmp/persist
tempFilePattern c:/net-snmp/temp/snmpdXXXXXX
Note1: All paths contained in
configuration files must use forward
slashes (Unix convention), NOT back
slashes.
Note2: HKEY_CURRENT_USER can be used instead of HKEY_LOCAL_MACHINE if desired. All applications will search for SNMPCONFPATH and SNMPSHAREPATH (and any other variable normally defined as an environment variable) in the following order:
- Environment space
- HKEY_CURRENT_USER\Software\Net-SNMP\
- HKEY_LOCAL_MACHINE\Software\Net-SNMP\
Note3: If the registry keys are not defined, the following
environment variables will be used:
- SNMPCONFPATH=(install folder)/etc/snmp
- SNMPSHAREPATH=(install folder)/share/snmp