High-level API to SNMP v.1 Get*/SetRequest PDU objects

The rfc1157.GetRequestMixIn (and similar) mix-in classes define the following high-level API methods:

apiGenGetRequestId()

Returns current PDU request ID (as integer).

apiGenSetRequestId(requestId)

Sets request-ID request ID (as integer) to SNMP PDU object.

apiGenGetVarBind()

Returns current PDU variables bindings as a list of tuples (objectId, value) where:

apiGenSetVarBind(varBind)

Sets variables bindings VarBind (specified as a list of tuples) to SNMP PDU object. This method applies new variables bindings to PDU all at once and drops previous PDU's payload.


ilya@glas.net