LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

Higher-level API to SMI and SNMP v.1 objects (RFC 1155 & RFC 1157)

The pysnmp.proto.v1 module implements higher-level, more restrictive API to data structures defined by rfc1155 and rfc1157 modules.

This module imports everything from the rfc1155 module into its own namespace and implements the following classes:

class GetRequest([**kwargs])
class GetNextRequest([**kwargs])
class SetRequest([**kwargs])

Instances of these classes represent SNMP v.1 request objects. Each of these classes is a subclass of rfc1157.Message class, with embedded components fixed to (internally implemented) message-specific items and a few additional methods (see below) defined.

class GetResponse([**kwargs])

Instance of this class represent SNMP v.1 response object. This class is a subclass of rfc1157.Messageclass, with embedded components fixed to (internally implemented) message-specific items.

class Trap([**kwargs])

Instances of these classes represent SNMP v.1 trap object. This class is a subclass of rfc1157.Message class, with embedded components fixed to (internally implemented) message-specific items.

class Request([**kwargs])

Instances of this class represent a demultiplexor for SNMP v.1 request messages. This is a subclass of rfc1157.Message class, with embedded components (internally implemented) fixed to requests-specific items.

Objects of this class are supposed to be used on SNMP agent side for decoding any request message to request object.


Subsections


ilya@glas.net