PySNMP Project Logo

Project diary
Documentation
Examples
License
Download
Mailing lists

Projects using PySNMP
TwistedSNMP
Zenoss


Relevant projects
SNMPy
YAPSNMP
LibSMI
Scotty software

SourceForge Logo

Objects of the v1.GETREQUEST, v1.SETREQUEST, v1.GETNEXTREQUEST classes.

Instances of these classes have the following methods:

encode([kwargs])

The encode method converts the entire SNMP message into BER octet-stream (string) in accordance with RFC 1157 specification.

The kwargs keyword arguments may be used for last-minute assignments to corresponding message components (see v1 module documentation for valid values.

decode(data)

The decode method attempts to convert the data octet-stream (string) into SNMP message.

The type and protocol version of the SNMP message carried in the data octet-stream must match instance's class type.

Any unprocessed part of data octet-stream is returned.

reply([kwargs])

The reply method creates and returns an instance of GETRESPONSE class and initializes it with its own values applicible for reply.

The kwargs keyword arguments may be used for overriding values of corresponding message components.


Need help? Try PySNMP mailing lists.