SNMP::Client
Constructors
Class methods
Instance methods
Walk oid's subtree using GetBulk (fewer round-trips than GetNext), yielding
each in-subtree VarBind. Stops at endOfMibView or the first varbind that
leaves the subtree. max_repetitions bounds the varbinds fetched per request.
Non-block form: collect the whole subtree into an array of VarBind.
Close the underlying UDP socket. The next request reconnects transparently.
A Client is not safe for concurrent use — use one per fiber.
Multi-varbind Get: one round-trip binding every OID; the Response carries a varbind per requested OID.
GetBulk: one round-trip returning up to max_repetitions successors per repeating OID. Returns the raw Response message (its PDU holds every varbind).
Multi-varbind GetNext: advances every supplied OID in one round-trip.
Send an Inform and return the receiver's acknowledging Response.
Send an SNMPv1 Trap (RFC 1157). Fire-and-forget.
Send an SNMPv2-Trap to the configured host/port (typically a trap sink on 162). Fire-and-forget: a trap is unacknowledged, so nothing is read back.
Set a single OID to value (a typed SNMP value, a Crystal primitive, or a
raw ASN1::BER) and return the agent's Response.
Multi-varbind Set: assign every OID => value pair in one round-trip.
Collect a subtree into an array. NOTE: this buffers every message in memory;
for large subtrees prefer the block form below or #bulk_walk, which stream.