SnmpKit.SnmpLib.Manager.V3 (snmpkit v2.0.1)

SNMPv3 (USM) request path for the manager: engine discovery, key localization, time synchronisation, and the report-driven retries RFC 3414 requires.

Used by SnmpKit.SnmpLib.Manager.Request.perform_snmp_request/4 when the options carry version: :v3. Options:

  • :security_name - the USM user name (required)
  • :auth_protocol (:md5, :sha1, :sha256, :sha384, :sha512) and :auth_password
  • :priv_protocol (:des, :aes128, :aes192, :aes256) and :priv_password
  • :security_level - :no_auth_no_priv, :auth_no_priv or :auth_priv; derived from the protocols when omitted
  • :context_name - default ""
  • :engine_id - skip discovery and use this authoritative engine id

The result has the shape the v1/v2c path returns, %{version: 3, community: security_name, pdu: pdu}, so response extraction is shared.

Summary

Functions

Sends pdu to ip:port over SNMPv3 and returns the response message.

Functions

perform(socket, ip, port, pdu, opts)

@spec perform(port(), :inet.ip_address(), :inet.port_number(), map(), keyword()) ::
  {:ok, map()} | {:error, term()}

Sends pdu to ip:port over SNMPv3 and returns the response message.