net-snmp-config(1)
π net-snmp-config(1) β the Net-SNMP tea π«
okay so bestie, welcome to net-snmp-config, part of the Net-SNMP family of manual pages. this one is literally your little lookup bestie for everything SNMP-shaped on your system. let's get into it β¨
πΈ NAME πΈ
net-snmp-config β the script that spills the tea about your installed net-snmp libraries and binaries πββοΈ
β SYNOPSIS β
net-snmp-config [OPTIONS]
π¦ DESCRIPTION π¦
so the net-snmp-config shell script is literally designed to fetch all the config info about the libraries and binaries that deal with the Simple Network Management Protocol (SNMP), built from the net-snmp source package. no cap. π
and like β why do you care? because this info is especially useful for applications that need to link against the SNMP libraries, which means they absolutely must know about any other libraries that have to be linked in too. it's giving "let me introduce you to my friends" energy. iykyk π
β¨ OPTIONS β¨
π§ the general ones
--versionβ shows you the net-snmp version number. the classic "who am i" moment π--indent-optionsβ prints out the indent options from the Coding Style. formatting queen behavior π--debug-tokensβ prints an example command line you can use to search the source code for the list of available debug tokens π
π₯ SNMP Setup commands
--create-snmpv3-user [-ro] [-a authpass] [-x privpass] [-X DES|AES] [-A MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224] [username]β sets up an SNMPv3 user. that's the whole bit π«Ά
π compilation flags for building external SNMP applications
these options produce the various compilation flags you need when you're building external SNMP applications:
--base-cflagsβ lists extra compilation flags needed for external applications (this one excludes-I.and any extra developer warning flags, if there are any) π--cflagsβ lists the additional compilation flags needed--libsβ lists the libraries needed for building applications--agent-libsβ lists the libraries needed for building subagents--netsnmp-libsβ lists the netsnmp-specific libraries--external-libsβ lists the libraries needed by netsnmp libs--netsnmp-agent-libsβ lists the netsnmp-specific agent libraries--external-agent-libsβ lists libraries needed by netsnmp libs
π automated subagent building (produces an OUTPUTNAME binary file)
β οΈ heads up bestie: this feature has not been extensively tested, so use at your own risk π no pressure, but likeβ¦ pressure.
--compile-subagent OUTPUTNAME [--norm] [--cflags flags] [--ldflags flags] mibmodule1.c [...]]β builds a subagent and spits out a binary namedOUTPUTNAME--normβ leaves the generated.cfile around so you can read it π--cflagsflags β extra cflags to use (e.g.-I...)--ldflagsflags β extra ld flags to use (e.g.-L... -l...)
π details on how the net-nsmp package was compiled
--configure-optionsβ displays the original configure arguments--snmpd-module-listβ displays the modules compiled into the agent--prefixβ displays the installation prefix
as always: every flag above is exactly what it says on the tin, no invented extras, no fake features. the vibes are mine, the facts are the manpage's π
and that's the whole page, bestie!! π this one's from Net-SNMP, version V5.9.5.2, dated 16 Nov 2006 β yes she's an icon, yes she's been serving since 2006, periodt πβ¨ slay responsibly π«Ά
π¦ where this page comes from
- alpine 3.23: net-snmp-doc 5.9.5.2-r0 Β· Net-SNMP
- alpine 3.24: net-snmp-doc 5.9.5.2-r0 Β· Net-SNMP
- arch rolling: net-snmp 5.9.5.2-2 Β· BSD
- nixos 26.05: net-snmp 5.9.5.2
- nixpkgs unstable: net-snmp 5.9.5.2
- ubuntu stonking: libsnmp-dev 5.9.5.2+dfsg-2.1ubuntu5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms