pysnmp.proto.v1
index
/home/mcfletch/pylive/pysnmp/proto/v1.py

Compatibility API to SMI and SNMP for v.1 (RFC1155 & RFC1157). Do
not use it in new projects.
 
Copyright 1999-2004 by Ilya Etingof <ilya@glas.net>. See LICENSE for
details.

 
Modules
       
pysnmp.proto.error
pysnmp.proto.rfc1157

 
Classes
       
Message(MessageMixIn, MessageMixIn, ProtoVersionId1MixIn, Sequence)
MessageBase
GetNextRequest
GetRequest
GetResponse
GetResponse
SetRequest
Trap
Request

 
class GetNextRequest(MessageBase)
    
Method resolution order:
GetNextRequest
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.GetNextRequestPdu>
The GetNextRequest-PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class GetRequest(MessageBase)
    
Method resolution order:
GetRequest
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.GetRequestPdu>
The GetRequest-PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class GetResponse(MessageBase)
    
Method resolution order:
GetResponse
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.GetResponsePdu>
The GetResponse-PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class MessageBase(Message)
    
Method resolution order:
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Methods defined here:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Request(Message)
    # Requests demux
 
 
Method resolution order:
Request
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__init__(self, **kwargs)
Store dictionary args
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
decode = berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
Response = class GetResponse(MessageBase)
    
Method resolution order:
GetResponse
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.GetResponsePdu>
The GetResponse-PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class SetRequest(MessageBase)
    
Method resolution order:
SetRequest
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.SetRequestPdu>
The SetRequest-PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
class Trap(MessageBase)
    
Method resolution order:
Trap
MessageBase
Message
MessageMixIn
MessageMixIn
ProtoVersionId1MixIn
ProtoVersionIdMixInBase
Sequence
SequenceMixIn
Sequence
RecordTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
Asn1Object
SequenceMixIn
OrderedFixedTypeAsn1Object
FixedTypeAsn1Object
StructuredAsn1Object
SimpleAsn1Object
BerObject

Data and other attributes defined here:
compatMessagePdu = <class pysnmp.proto.rfc1157.TrapPdu>
Trap PDU

Methods inherited from MessageBase:
__init__(self, **kwargs)
decode(self, wholeMsg)

Data and other attributes inherited from Message:
fixedComponents = [<class pysnmp.proto.rfc1157.Version>, <class pysnmp.proto.rfc1157.Community>, <class pysnmp.proto.rfc1157.Pdus>]
fixedNames = ['version', 'community', 'pdu']

Methods inherited from MessageMixIn:
apiGenGetCommunity(self)
apiGenGetPdu(self)
apiGenGetVersion(self)
apiGenSetCommunity(self, value)
apiGenSetPdu(self, value)

Methods inherited from MessageMixIn:
apiAlphaGetCommunity(self)
apiAlphaGetPdu(self)
apiAlphaGetVersion(self)
apiAlphaMatch(self, rsp)
Return true if response message matches this request
apiAlphaReply(self, rsp=None)
Return initialized response message
apiAlphaSetCommunity(self, value)
apiAlphaSetPdu(self, value)
match = apiAlphaMatch(self, rsp)
Return true if response message matches this request
reply = apiAlphaReply(self, rsp=None)
Return initialized response message

Data and other attributes inherited from ProtoVersionId1MixIn:
apiAlphaProtoVersionId = 0

Methods inherited from ProtoVersionIdMixInBase:
apiAlphaGetProtoVersionId(self)

Methods inherited from SequenceMixIn:
apiAlphaSetSimpleComponent(self, key, value)

Data and other attributes inherited from Sequence:
tagId = 16

Methods inherited from RecordTypeAsn1Object:
__setitem__(self, key, value)
Set component by key & value

Methods inherited from FixedTypeAsn1Object:
__cmp__(self, other)
Attempt to compare the payload of instances of the same class
__getitem__(self, key)
Return component by key
__hash__(self)
Returns hash of the payload value
__len__(self)
Get length of the object
__repr__(self)
Return native representation of instance payload
__str__(self)
Return string representation of class instance
get(self, key, default=None)
Lookup by key with default
has_key(self, key)
Return true if key exists
items(self)
Return a list of tuples (key, value)
keys(self)
Return a list of keys
update(self, dict)
Merge dict to ourselves
values(self)
Return a list of values

Data and other attributes inherited from StructuredAsn1Object:
tagFormat = 32

Methods inherited from Asn1Object:
getUnderlyingTag(self)

Data and other attributes inherited from Asn1Object:
allowedTypes = ()
constraints = ()
tagCategory = 1
tagClass = 0

Methods inherited from OrderedFixedTypeAsn1Object:
berDecode(self, input)
berDecode(input) -> rest
 
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.

Methods inherited from FixedTypeAsn1Object:
berEncode(self)
Choose optimised version of berEncode for this class
berEncodeWOutSub(self)
berEncodeWSub() -> octet string
 
For classes which do *not* have a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
berEncodeWSub(self)
berEncodeWSub() -> octet string
 
For classes which *have* a _berEncode only!
 
Note:
    This should be bound by a metaclass on looking
    at the final class, *not* as is done now by
    binding at time-of-use.
encode = berEncode(self)
Choose optimised version of berEncode for this class

Methods inherited from StructuredAsn1Object:
berUnwrapHeader(self, input)
Decode BER header, return (data, rest)
berWrapHeader(self, input)
Add BER header to data chunk if needed

Methods inherited from BerObject:
berDecodeLength(self, input)
berDecodeLength(input) -> (length, size)
 
Return the data item's length (integer) and the size of length
data (integer).
berEncodeLength(self, length)
berEncodeLength(length) -> octet string
 
BER encode ASN.1 data item length (integer).
berEncodeTag(self, (tagClass, tagFormat, tagId)=(None, None, None))
BER encode ASN.1 type tag

 
Data
        __all__ = ['GetRequest', 'GetNextRequest', 'SetRequest', 'Trap', 'GetResponse', 'Request']