net-snmp-config --version (return code: 0)
5.7.3
net-snmp-config --help (return code: 0)
Usage:
net-snmp-config [--cflags] [--agent-libs] [--libs] [--version]
... [see below for complete flag list]
--version displays the net-snmp version number
--indent-options displays the indent options from the Coding Style
--debug-tokens displays a example command line to search to source
code for a list of available debug tokens
SNMP Setup commands:
--create-snmpv3-user creates a SNMPv3 user in Net-SNMP config file.
See net-snmp-create-v3-user --help for list of
accepted options.
These options produce the various compilation flags needed when
building external SNMP applications:
--base-lib-cflags lists additional compilation flags needed for linking
against libsnmp
--base-cflags lists additional compilation flags needed
--cflags lists additional compilation flags needed
(includes -I. and extra developer warning flags)
These options produce the various link flags needed when
building external SNMP applications:
--libs lists libraries needed for building applications
--agent-libs lists libraries needed for building subagents
These options produce various link flags broken down into parts.
(Most of the time the simple options above should be used.)
--libdir path to netsnmp libraries
--base-agent-libs netsnmp specific agent libraries
--netsnmp-libs netsnmp specific libraries (with path)
--netsnmp-agent-libs netsnmp specific agent libraries (with path)
--ldflags link flags for external libraries
--external-libs external libraries needed by netsnmp libs
--external-agent-libs external libraries needed by netsnmp agent libs
These options produce various link flags used when linking an
external application against an uninstalled build directory.
--build-includes include path to build/source includes
--build-lib-dirs link path to libraries
--build-lib-deps path to libraries for dependency target
--build-command command to compile $3... to $2
Automated subagent building (produces an OUTPUTNAME binary file):
[this feature has not been tested very well yet. use at your risk.]
--compile-subagent OUTPUTNAME [--norm] [--cflags flags]
[--ldflags flags] mibmodule1.c [...]]
--norm leave the generated .c file around to read.
--cflags flags extra cflags to use (e.g. -I...).
--ldflags flags extra ld flags to use (e.g. -L... -l...).
Details on how the net-snmp package was compiled:
--configure-options display original configure arguments
--prefix display the installation prefix
--snmpd-module-list display the modules compiled into the agent
--default-mibs display default list of MIBs
--default-mibdirs display default list of MIB directories
--snmpconfpath display default SNMPCONFPATH
--persistent-directory display default persistent directory
--perlprog display path to perl for the perl modules