Google

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

Higher-level API to SMI and SNMP v.2c objects (RFC 1902 & RFC 1905)

The pysnmp.proto.v2c module implements higher-level, more restrictive API to data structures defined by rfc1902 and rfc1905 modules.

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

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

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

class Response([**kwargs])

Instance of this class represent SNMP v.2c response objects. This class subclasses the rfc1905.Message class, with embedded components (implemented internally) and fixed to message-specific items.

class Report([**kwargs])
class SnmpV2Trap([**kwargs])

Instances of these classes represent SNMP v.2c message objects. Each of these classes subclass the rfc1905.Message class, with embedded components (implemented internally) and fixed to message-specific items.

class Request([**kwargs])

Instances of this class represent a demultiplexor for SNMP v2.c request messages. This is a subclass of rfc1905.Message class, with embedded components (implemented internally) 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