Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, February 10, 2021

net-snmp-config (1)


net-snmp-config - snmp libraries and binaries


net-snmp-config [OPTIONS]


net-snmp-config(1)                 Net-SNMP                 net-snmp-config(1)

       net-snmp-config   -   returns   information  about  installed  net-snmp
       libraries and binaries

       net-snmp-config [OPTIONS]

       The net-snmp-config shell script is designed to retrieve the configura-
       tion information about the libraries and binaries dealing with the Sim-
       ple Network Management Protocol (SNMP), built from the net-snmp  source
       package.  The  information is particularly useful for applications that
       need to link against the SNMP libraries and hence must know  about  any
       other libraries that must be linked in as well.

              displays the net-snmp version number

              displays the indent options from the Coding Style

              displays  a  example command line to search to source code for a
              list of available debug tokens

       SNMP Setup commands:

       --create-snmpv3-user [-ro] [-a authpass] [-x privpass]
              [-X DES|AES] [-A MD5|SHA] [username]

       These options produce the various compilation flags needed when  build-
       ing external SNMP applications:

              lists  additional compilation flags needed for external applica-
              tions (excludes -I. and extra developer warning flags, if any)

              lists additional compilation flags needed

       --libs lists libraries needed for building applications

              lists libraries needed for building subagents

              lists netsnmp specific libraries

              lists libraries needed by netsnmp libs

              lists netsnmp specific agent libraries

       --external-agent-libs lists libraries needed by netsnmp libs

       Automated subagent building (produces an OUTPUTNAME binary file): [This
       feature has not been extensively tested,  use at your own 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-nsmp package was compiled:

              Display original configure arguments

              Display the modules compiled into the agent

              Display the installation prefix

       See attributes(7) for descriptions of the following attributes:

       |ATTRIBUTE TYPE |               ATTRIBUTE VALUE                 |
       |Availability   | system/management/snmp/net-snmp/documentation |
       |Stability      | Volatile                                      |
       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source  was  downloaded  from   http://ftp.ntua.gr/mirror/net-snmp/net-

       Further information about this software can be found on the open source
       community website at http://www.net-snmp.org/.

V5.7.3                            16 Nov 2006               net-snmp-config(1)