BSD Ports

net-mgmt/net-snmp 5.9.5.2,1 FreeBSD

Extendable SNMP implementation

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
net-mgmt
Package size
2386.7 KiB, 12727.0 KiB installed

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

SystemPortVersion
FreeBSDnet-mgmt/net-snmp5.9.5.2,1
OpenBSDnet/net-snmp5.9.5.2p1
NetBSDnet/net-snmp5.9.5.2
DragonFlynet-mgmt/net-snmp5.9.4_6,1
MidnightBSDnet-mgmt/net-snmp5.9.5.2_3,1
HardenedBSDnet-mgmt/net-snmp5.9.5.2,1
GhostBSDnet-mgmt/net-snmp5.9.5.2,1
OPNsensenet-mgmt/net-snmp5.9.5.2,1

Install

Binary package:

pkg install net-snmp

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest5.9.5.2,15.9.5.2,15.9.1_2,15.9.4_6,15.9.5.2,1
FreeBSD:14:quarterly5.9.5.2,15.9.5.2,1n/a5.9.4_6,15.9.5.2,1
FreeBSD:15:latest5.9.5.2,15.9.5.2,1n/a5.9.4_6,15.9.4_6,1
FreeBSD:15:quarterly5.9.5.2,15.9.5.2,1n/an/an/a
FreeBSD:16:latest5.9.5.2,15.9.5.2,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Run dependencies 2

Configuration

Options name: net-mgmt_snmp

OptionDefaultDescription
AESoffBuild with Blumenthal AES support
AX_DISABLE_TRAPoffDisable agentx subagent code in snmptrapd
AX_SOCKONLYoffDisable UDP/TCP transports for agentx
DOCSoffBuild and/or install documentation
DUMMYonEnable dummy values as placeholders
MFD_REWRITESoffUse new MFD rewrites of mib modules
MYSQLoffMySQL database support
NEWSYSLOGonAutomatically rotate snmpd.log via newsyslog
NOLIBPKGoffBuild without libpkg
PERLonPerl scripting language support
PERL_EMBEDDEDonBuild embedded perl
PYTHONoffPython bindings or support
SCTPoffBuild with SCTP MIB support
SMUXonBuild with SNMP multiplexing (SMUX) support
TKMIBoffInstall graphical MIB browser
TLSoffSecure network connection support via TLS
UNPRIVILEGEDoffAllow unprivileged users to execute net-snmp
USES
cpe libtool perl5 ssl
Service scripts
snmpd, snmptrapd
Conflicts with
ucd-snmp-4.* net-snmp-5.3.*

Message after installing

**** This port installs snmpd, header files and libraries but does not
     start snmpd by default.
     If you want to auto-start snmpd and snmptrapd, add the following to
     /etc/rc.conf:

	snmpd_enable="YES"
	snmpd_flags="-a"
	snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
	snmptrapd_enable="YES"
	snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

**** You may also specify the following make variables:

	NET_SNMP_SYS_CONTACT="[email protected]"
	NET_SNMP_SYS_LOCATION="USA"
	DEFAULT_SNMP_VERSION=3
	NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
	NET_SNMP_LOGFILE=/var/log/snmpd.log
	NET_SNMP_PERSISTENTDIR=/var/net-snmp

     to define default values (or to override the defaults).  To avoid being
     prompted during the configuration process, you should (minimally) define
     the first two variables. (NET_SNMP_SYS_*)

     You may also define the following to avoid all interactive configuration:

	BATCH="yes"

snmpd now drops privileges by default after initialization is completed.
Ensure that any extension commands defined in your snmpd.conf can be executed
by the snmpd user.

It is possible to start and run snmpd entirely as a non-root user with the
following steps:

1. Add the following lines to /etc/rc.conf:

	snmpd_user="snmpd"
	snmpd_group="snmpd"
	snmpd_pidfile="/var/net-snmp/snmpd.pid"

2. Configure the mac_portacl(4) kernel module:

   a. Load mac_portacl.ko at boot time by adding the following line to
      /etc/rc.conf:

	kld_list="mac_portacl"

   b. Configure the following sysctls in sysctl.conf(5):

      net.inet.ip.portrange.reservedhigh=0
      security.mac.portacl.rules=gid:344:udp:161,gid:344:tcp:161,gid:344:tcp:199,gid:344:tcp:705

   This allows snmpd to bind to these privileged ports without holding
   special privileges.

3. Make sure that the snmpd user has read/write or read-only access to the
   following:

	RW - /var/log/snmpd.log
	RW - /var/net-snmp/*
	RO - /usr/local/share/snmp/*

   Note that snmpd creates the /var/net-snmp directory upon its initial
   startup, and this cannot be done by the snmpd user.

4. Ensure that any and all extension commands defined in snmpd.conf can be
   executed by the snmpd user.

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/snmpcheck
  • bin/snmpconf
  • bin/snmpdelta
  • bin/snmpdf
  • bin/snmpget
  • bin/snmpgetnext
  • bin/snmpinform
  • bin/snmpnetstat
  • bin/snmppcap
  • bin/snmpping
  • bin/snmpps
  • bin/snmpset
  • bin/snmpstatus
  • bin/snmptable
  • bin/snmptest
  • bin/snmptls
  • bin/snmptop
  • 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/net-snmp-agent-includes.h
  • include/net-snmp/agent/netsnmp_close_fds.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/MIB_STATS_CACHE_TIMEOUT.h
  • include/net-snmp/agent/util_funcs/header_generic.h
  • include/net-snmp/agent/util_funcs/header_simple_table.h
  • 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/check_varbind.h
  • include/net-snmp/library/container.h
  • include/net-snmp/library/container_binary_array.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 0

No commits in the history this site was built from.