BSD Ports

net-mgmt/net-snmp 5.9.5.2_3,1 MidnightBSD

Extendable SNMP implementation

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
323a538188
License
bsd3
Categories
net-mgmt

Description

This is Net-SNMP (previously known as "ucd-snmp").

Various tools relating to the Simple Network Management Protocol including:

An extensible agent
An SNMP library
tools to request or set information from SNMP agents
tools to generate and handle SNMP traps
a version of the Unix 'netstat' command using SNMP
a graphical Perl/Tk/SNMP based mib browser

In the other systems

The newest version among them is 5.9.5.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDnet-mgmt/net-snmp5.9.5.2_3,1 newestno data-[email protected]2026-09-22
FreeBSDnet-mgmt/net-snmp5.9.5.2,1 newestnone known-[email protected]-
OpenBSDnet/net-snmp by name5.9.5.2p1 newestno data-Stuart Henderson <[email protected]>2026-07-17
NetBSDnet/net-snmp by name5.9.5.2 newest2 known-[email protected]2026-09-22
DragonFlynet-mgmt/net-snmp5.9.4_6,1 behind since 2026-09-221 known-[email protected]-
HardenedBSDnet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-
GhostBSDnet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-
OPNsensenet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install net-snmp

From mports:

cd /usr/mports/net-mgmt/net-snmp && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	net-snmp>0:net-mgmt/net-snmp
LIB_DEPENDS=	libnetsnmp.so:net-mgmt/net-snmp

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Library 1

Build dependencies 1
Run dependencies 1

Configuration

Options name: net-mgmt_snmp

OptionDefaultDescription
AX_DISABLE_TRAPoffDisable agentx subagent code in snmptrapd
AX_SOCKONLYoffDisable UDP/TCP transports for agentx
DOCSoff
DUMMYonEnable dummy values as placeholders
IPV6off
JAILoffOptions for running snmpd within a jail(8)
MFD_REWRITESoffUse new MFD rewrites of mib modules
MYSQLoff
NEWSYSLOGonAutomatically rotate snmpd.log via newsyslog
PERLon
PERL_EMBEDDEDonBuild embedded perl
PYTHONoff
SMUXonBuild with SNMP multiplexing (SMUX) support
TKMIBoffInstall graphical MIB browser
TLSoff
UNPRIVILEGEDoffAllow unprivileged users to execute net-snmp
USES
cpe libtool perl5 shebangfix ssl
Service scripts
snmpd, snmptrapd
Conflicts with
ucd-snmp-4.* net-snmp-5.3.*

Files

Manual pages 142
  • NetSNMP::ASN(3)
  • NetSNMP::OID(3)
  • NetSNMP::TrapReceiver(3)
  • NetSNMP::agent(3)
  • NetSNMP::agent::default_store(3)
  • NetSNMP::default_store(3)
  • NetSNMP::netsnmp_request_infoPtr(3)
  • SNMP(3)
  • add_mibdir(3)
  • add_module_replacement(3)
  • agentxtrap(1)
  • config_perror(3)
  • config_pwarn(3)
  • default_store(3)
  • encode_keychange(1)
  • fixproc(1)
  • fprint_description(3)
  • fprint_objid(3)
  • fprint_value(3)
  • fprint_variable(3)
  • get_module_node(3)
  • mib2c(1)
  • mib2c-update(1)
  • mib2c.conf(5)
  • net-snmp-config(1)
  • net-snmp-create-v3-user(1)
  • netsnmp_agent_api(3)
  • netsnmp_config_api(3)
  • netsnmp_init_mib(3)
  • netsnmp_mib_api(3)
  • netsnmp_pdu_api(3)
  • netsnmp_read_module(3)
  • netsnmp_sess_api(3)
  • netsnmp_session_api(3)
  • netsnmp_trap_api(3)
  • netsnmp_varbind_api(3)
  • print_description(3)
  • print_mib(3)
  • print_objid(3)
  • print_value(3)
  • print_variable(3)
  • read_all_mibs(3)
  • read_config_print_usage(3)
  • read_configs(3)
  • read_mib(3)
  • read_objid(3)
  • read_premib_configs(3)
  • register_app_config_handler(3)
  • register_app_prenetsnmp_mib_handler(3)
  • register_config_handler(3)
  • register_const_config_handler(3)
  • register_mib_handlers(3)
  • register_prenetsnmp_mib_handler(3)
  • send_easy_trap(3)
  • send_trap_vars(3)
  • send_v2trap(3)
  • shutdown_mib(3)
  • snmp-bridge-mib(1)
  • snmp.conf(5)
  • snmp_add_null_var(3)
  • snmp_alarm(3)
  • snmp_alarm_register(3)
  • snmp_alarm_register_hr(3)
  • snmp_alarm_unregister(3)
  • snmp_api_errstring(3)
  • snmp_async_send(3)
  • snmp_clone_pdu(3)
  • snmp_clone_varbind(3)
  • snmp_close(3)
  • snmp_config(5)
  • snmp_error(3)
  • snmp_fix_pdu(3)
  • snmp_free_pdu(3)
  • snmp_free_var(3)
  • snmp_free_varbind(3)
  • snmp_open(3)
  • snmp_parse_oid(3)
  • snmp_pdu_add_variable(3)
  • snmp_pdu_create(3)
  • snmp_perror(3)
  • snmp_read(3)
  • snmp_select_info(3)
  • snmp_send(3)
  • snmp_sess_async_send(3)
  • snmp_sess_close(3)
  • snmp_sess_error(3)
  • snmp_sess_init(3)
  • snmp_sess_open(3)
  • snmp_sess_perror(3)
  • snmp_sess_read(3)
  • snmp_sess_select_info(3)
  • snmp_sess_send(3)
  • snmp_sess_session(3)
  • snmp_sess_synch_response(3)
  • snmp_sess_timeout(3)
  • snmp_set_mib_errors(3)
  • snmp_set_mib_warnings(3)
  • snmp_set_save_descriptions(3)
  • snmp_set_var_objid(3)
  • snmp_set_var_typed_integer(3)
  • snmp_set_var_typed_value(3)
  • snmp_set_var_value(3)
  • snmp_synch_response(3)
  • snmp_timeout(3)
  • snmp_varlist_add_variable(3)
  • snmpbulkget(1)
  • snmpbulkwalk(1)
  • snmpcmd(1)
  • snmpconf(1)
  • snmpd(8)
  • snmpd.conf(5)
  • snmpd.examples(5)
  • snmpd.internal(5)
  • snmpdelta(1)
  • snmpdf(1)
  • snmpget(1)
  • snmpgetnext(1)
  • snmpinform(1)
  • snmpnetstat(1)
  • snmpps(1)
  • snmpset(1)
  • snmpstatus(1)
  • snmptable(1)
  • snmptest(1)
  • snmptop(1)
  • snmptranslate(1)
  • snmptrap(1)
  • snmptrapd(8)
  • snmptrapd.conf(5)
  • snmpusm(1)
  • snmpvacm(1)
  • snmpwalk(1)
  • snprint_description(3)
  • snprint_objid(3)
  • snprint_value(3)
  • snprint_variable(3)
  • tkmib(1)
  • traptoemail(1)
  • unregister_all_config_handlers(3)
  • unregister_app_config_handler(3)
  • unregister_config_handler(3)
  • variables(5)
pkg-plist 626
  • bin/agentxtrap
  • bin/checkbandwidth
  • bin/encode_keychange
  • bin/fixproc
  • bin/ipf-mod.pl
  • bin/mib2c
  • bin/mib2c-update
  • bin/net-snmp-cert
  • bin/net-snmp-config
  • bin/net-snmp-create-v3-user
  • bin/snmp-bridge-mib
  • bin/snmpbulkget
  • bin/snmpbulkwalk
  • bin/snmppcap
  • bin/snmpcheck
  • bin/snmpconf
  • bin/snmpdelta
  • bin/snmpdf
  • bin/snmpget
  • bin/snmpgetnext
  • bin/snmpinform
  • bin/snmpnetstat
  • bin/snmpping
  • bin/snmpps
  • bin/snmpset
  • bin/snmpstatus
  • bin/snmptable
  • bin/snmptest
  • bin/snmptop
  • bin/snmptls
  • bin/snmptranslate
  • bin/snmptrap
  • bin/snmpusm
  • bin/snmpvacm
  • bin/snmpwalk
  • bin/tkmib
  • bin/traptoemail
  • @dir etc/newsyslog.conf.d
  • @sample share/net-snmp/newsyslog.conf.sample etc/newsyslog.conf.d/net-snmp.conf
  • include/net-snmp/agent/agent_callbacks.h
  • include/net-snmp/agent/agent_handler.h
  • include/net-snmp/agent/agent_index.h
  • include/net-snmp/agent/agent_module_config.h
  • include/net-snmp/agent/agent_read_config.h
  • include/net-snmp/agent/agent_registry.h
  • include/net-snmp/agent/agent_sysORTable.h
  • include/net-snmp/agent/agent_trap.h
  • include/net-snmp/agent/all_helpers.h
  • include/net-snmp/agent/auto_nlist.h
  • include/net-snmp/agent/baby_steps.h
  • include/net-snmp/agent/bulk_to_next.h
  • include/net-snmp/agent/cache_handler.h
  • include/net-snmp/agent/debug_handler.h
  • include/net-snmp/agent/ds_agent.h
  • include/net-snmp/agent/instance.h
  • include/net-snmp/agent/mfd.h
  • include/net-snmp/agent/mib_module_config.h
  • include/net-snmp/agent/mib_module_includes.h
  • include/net-snmp/agent/mib_modules.h
  • include/net-snmp/agent/mode_end_call.h
  • include/net-snmp/agent/multiplexer.h
  • include/net-snmp/agent/netsnmp_close_fds.h
  • include/net-snmp/agent/net-snmp-agent-includes.h
  • include/net-snmp/agent/null.h
  • include/net-snmp/agent/old_api.h
  • include/net-snmp/agent/read_only.h
  • include/net-snmp/agent/row_merge.h
  • include/net-snmp/agent/scalar.h
  • include/net-snmp/agent/scalar_group.h
  • include/net-snmp/agent/serialize.h
  • include/net-snmp/agent/set_helper.h
  • include/net-snmp/agent/snmp_agent.h
  • include/net-snmp/agent/snmp_get_statistic.h
  • include/net-snmp/agent/snmp_vars.h
  • include/net-snmp/agent/stash_cache.h
  • include/net-snmp/agent/stash_to_next.h
  • include/net-snmp/agent/struct.h
  • include/net-snmp/agent/sysORTable.h
  • include/net-snmp/agent/table.h
  • include/net-snmp/agent/table_array.h
  • include/net-snmp/agent/table_container.h
  • include/net-snmp/agent/table_data.h
  • include/net-snmp/agent/table_dataset.h
  • include/net-snmp/agent/table_iterator.h
  • include/net-snmp/agent/table_tdata.h
  • include/net-snmp/agent/util_funcs.h
  • include/net-snmp/agent/util_funcs/header_generic.h
  • include/net-snmp/agent/util_funcs/header_simple_table.h
  • include/net-snmp/agent/util_funcs/MIB_STATS_CACHE_TIMEOUT.h
  • @dir include/net-snmp/agent/util_funcs
  • include/net-snmp/agent/var_struct.h
  • include/net-snmp/agent/watcher.h
  • include/net-snmp/config_api.h
  • include/net-snmp/definitions.h
  • include/net-snmp/library/README
  • include/net-snmp/library/asn1.h
  • include/net-snmp/library/callback.h
  • include/net-snmp/library/cert_util.h
  • include/net-snmp/library/oid.h
  • include/net-snmp/library/check_varbind.h

The first 100 are listed.

distinfo 1
FileSizeSHA256
net-snmp-5.9.5.2.tar.gz6.826866e+0616707719f833184a4b72835dac359ae188123b06b5e42817c00790d7dc1384bf
Master sites 2
  • SF/net-snmp/net-snmp/5.9.5.2
  • ZI

Commit history 5

DateCommitCreditsLog message
323a538188 Lucas Holt net-mgmt/net-snmp: use base libpcap (#1519)
Fix the net-snmp package dependency failure behind Magus run 648 port IDs 2268727, 2268733, 2268734, 2268751, and 2268752. MidnightBSD provides libpcap in the base system, so do not record a package dependency on net/libpcap. Validation: patch, build, fake, and package completed; git diff --check passed. Portlint findings are pre-existing. ## Summary by Sourcery Bug Fixes: - Stop net-snmp from declaring an unnecessary net/libpcap package dependency when using the base-system libpcap. Signed-off-by: Lucas Holt <[email protected]>
4c0133807b Lucas Holt net-mgmt/net-snmp: drop the bogus elfutils dependency
MidnightBSD 4.x ships libelf in base, so the LIB_DEPENDS check is satisfied by /usr/lib/libelf.so and devel/elfutils is never installed -- but the origin is still recorded in the package, so installing net-snmp fails: net-snmp-5.9.5.2_2,1 depends on shared library: libelf.so - found (/usr/lib/libelf.so) mport.install: install failed: net-snmp depends on elfutils, which is not installed. That broke net-mgmt/php82-snmp through php85-snmp, which build net-snmp as a dependency. FreeBSD's net-snmp declares no libelf dependency either. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
f35583cb4f Lucas Holt net-mgmt/net-snmp: strip Perl XS modules
Strip installed Perl architecture modules so fake package QA accepts the generated shared objects. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
69c4a3acfd Lucas Holt net-snmp: stop packaging private headers
factory.h and snmpIPBaseDomain.h are private upstream headers in the current net-snmp release. Remove the stale plist entries and avoid staging them as public headers so package creation succeeds. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
713329222d Lucas Holt net-mgmt/net-snmp: fix MidnightBSD IP scalar build
Include the sysctl IP scalar backend for MidnightBSD so mibII/ip has the ipReasmTimeout implementation when linking libnetsnmpmibs. Also align the packaged shared-library version with the built libraries and stage the private headers still listed by the port plist. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>