SNMP_TARGET(3)
β¨ NAME β¨
SNMP_TARGET(3) Β· Library Functions Manual, but make it bestie-friendly π. This is snmp_target β Target addresses and notifications module for bsnmpd(1). Periodt.
π LIBRARY π
(begemotSnmpdModulePath."target" = /usr/lib/snmp_target.so)
π DESCRIPTION π
okay so the snmp_target module implements SNMPv3 Management Target MIB and basic functionality from Notification MIB as defined in RFC 3413. Translation: it manages the internal list of SNMPv3 notification target addresses in bsnmpd and their associated transport and encapsulation parameters. The module must be loaded for bsnmpd to send SNMPv3 Trap-PDUs to the configured notification target addresses. No cap. π
π§ IMPLEMENTATION NOTES π§
A short description of the objects implemented in the module follows.
snmpTargetSpinLockβ An advisory lock used to coordinate several Command Generator Applications when altering the SNMP Target addresses and their associated parameters.
πΈ snmpTargetAddrTable
The table contains the transport addresses to be used in generation of SNMP messages. The table contains the following objects:
snmpTargetAddrNameβ A unique local identifier used as entry key. Not accessible for GET or SET operations.snmpTargetAddrTDomainβ The transport domain of the target address. Currently only UDP over IPv4 is supported and any attempt to SET the value of this object will return an"inconsistentValue"error. Additional transport domains will be supported in future via the object definitions in TRANSPORT-ADDRESS-MIB (RFC 3419).snmpTargetAddrTAddressβ The transport address of this entry interpreted within the context of the value ofsnmpTargetAddrTDomain. For UDP over IPv4, this is a 6-byte long octetstring, with the first 4 bytes representing the IPv4 address and the last 2 bytes the UDP port number in network-byte order.snmpTargetAddrTimeoutβ The value of this object is only relevant when the receiver of the SNMP message is to send an acknowledgment that the message was received, i.e for SNMP notifications it is relevant if the notification is SNMP Inform rather than SNMP Trap. Currentlybsnmpdsupports only SNMP Trap notifications, so the value of this object is meaningless.snmpTargetAddrRetryCountβ As withsnmpTargetAddrTimeoutthe value of this object currently is meaningless.snmpTargetAddrTagListβ A list of human-readable tag values used to select target addresses for a particular operation. Recognized ASCII delimiting characters between tags are space (0x20), tab (0x20), carriage return (0xOD) and line feed (0x0A).snmpTargetAddrParamsβ The value of this object contains the value of a key insnmpTargetParamsTablecontaining SNMP parameters used when generating messages to this transport address.snmpTargetAddrStorageTypeβ This column always has either of two values. Entries created viabsnmpd's configuration file always have this column set to readOnly (5) and it is not possible to modify those entries. Entries created by Command Generator Applications always have this column set to volatile(2) and such entries are lost when the module is restarted. A SET operation on this column is not allowed.snmpTargetAddrRowStatusβ This column is used to create new target address entries or delete existing ones from the table.
π snmpTargetParamsTable
The table contains the target information to be used in generation of SNMP messages. The table contains the following objects:
snmpTargetParamsNameβ A unique local identifier used as entry key. Not accessible for GET or SET operations.snmpTargetParamsMPModelβ The Message Processing Model to be used when generating SNMP PDUs using this entry. Supported values are 0 for SNMPv1, 1 for SNMPv2c and 3 for SNMPv3.snmpTargetParamsSecurityModelβ The Security Model to be used when generating SNMP PDUs using this entry. Supported values are 1 for SNMPv1, 2 for SNMPv2c and 3 for SNMPv3 User-Based Security Model.snmpTargetParamsSecurityNameβ ThesecurityNamewhich identifies the Principal on whose behalf SNMP PDUs will be generated using this entry. For SNMPv1 and SNMPv2c this is the name of a community configured inbsnmpd, and for SNMPv3 USM, this is the name of an existing user configured via thesnmp_usmmodule.snmpTargetParamsSecurityLevelβ The Security Level to be used when generating SNMP PDUs using this entry. Supported values are noAuthNoPriv(1) for plain-text PDUs with no authentication, authNoPriv(2) for authenticated plain-text PDUs and authPriv(3) for encrypted PDUs.snmpTargetParamsStorageTypeβ As withsnmpTargetAddrStorageTypethis column always has either of two values. Entries created viabsnmpd's configuration file always have this column set to readOnly (5), while entries created by Command Generator Applications always have this column set to volatile(2). A SET operation on this column is not allowed.snmpTargetParamsRowStatusβ This column is used to create new target address parameters entries or delete existing ones from the table.
π¦ snmpNotifyTable
The table is used to select the management targets which should receive SNMP notifications. The table contains the following objects:
snmpNotifyNameβ A unique local identifier used as entry key. Not accessible for GET or SET operations.snmpNotifyTagβ This object contains a single tag value used to select target addresses from thesnmpTargetAddrTableto which the notifications will be send.snmpNotifyTypeβ The type of SNMP notifications that will be send to the target addresses matching the correspondingsnmpNotifyTag. Possible values are Trap (1) or Inform (2). Currently only SNMP Traps are supported and any attempt to SET the value of this object will return an"inconsistentValue"error.snmpNotifyStorageTypeβ Again this column always has either of two values. Entries created viabsnmpd's configuration file always have this column set to readOnly (5), while entries created by Command Generator Applications always have this column set to volatile(2). A SET operation on this column is not allowed.snmpNotifyRowStatusβ This column is used to create new notification target entries or delete existing ones from the table.
The snmpNotifyFilterProfileTable and snmpNotifyFilterTable tables from the SNMP-NOTIFICATION-MIB are not supported by the module. Notification filtering is supported via the snmp_vacm(3) module instead.
π FILES π
/usr/share/snmp/defs/target_tree.defβ The description of the MIB tree implemented bysnmp_target.
π SEE ALSO π
bsnmpd(1), gensnmptree(1), snmpmod(3), snmp_usm(3), snmp_vacm(3)
π STANDARDS π
IETF RFC 3413
π AUTHORS π
Shteryana Shopova <syrinx@FreeBSD.org>
okay bestie, thatβs the whole lore π β footer vibes: source/version: Debian Β· date: December 16, 2010 Β· manual: SNMP_TARGET(3). π«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (C) 2010 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms