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

Turns decoded SNMP response messages into the manager's result tuples: GET / GETNEXT / GETBULK / SET result extraction and error-status decoding (RFC 1157 and RFC 3416 error codes).

Summary

Functions

Returns every varbind of a response as {oid, type, value}, with SNMPv2c exceptions normalised into the type field (:no_such_object, :no_such_instance, :end_of_mib_view, value nil). A non-zero error-status (SNMPv1 noSuchName, tooBig, ...) is {:error, reason}.

Functions

decode_error_status(error)

extract_bulk_result(response)

extract_get_next_result(response)

extract_get_result(response)

extract_get_result_with_oid(response)

extract_set_result(arg1)

extract_varbinds(arg1)

Returns every varbind of a response as {oid, type, value}, with SNMPv2c exceptions normalised into the type field (:no_such_object, :no_such_instance, :end_of_mib_view, value nil). A non-zero error-status (SNMPv1 noSuchName, tooBig, ...) is {:error, reason}.