SNMP::Session
Constants
Standard first two varbinds of an SNMPv2 notification (RFC 3416 4.2.6).
Constructors
Instance methods
Multi-varbind Get: one GetRequest carrying every OID (RFC 3416 allows a PDU to bind several variables), answered by a single Response with N varbinds.
GetBulk (RFC 3416): retrieve up to max_repetitions successors for each repeating varbind in one round-trip. The first non_repeaters OIDs are treated as plain GetNext, the rest as repeaters.
Build an Inform (same shape as a v2 trap, but confirmed by the receiver).
Decode a v1/v2c message, rejecting a v3 one. The security parameter is
accepted for signature parity with V3::Session#parse but is unused here.
Multi-varbind Set: one SetRequest assigning every OID => value pair. The Hash keeps insertion order, so the varbinds go out in the order they were given.
Build an RFC 1157 SNMPv1 Trap (its own wire structure). enterprise is the enterprise OID, agent_address a dotted-quad IPv4 string.
Build an SNMPv2-Trap: sysUpTime.0 + snmpTrapOID.0 followed by varbinds.