| |
- GetBulkRequestPduTypeMixIn(PduTypeMixInBase)
-
- GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu)
- GetNextRequestPduTypeMixIn(PduTypeMixInBase)
-
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPduTypeMixIn(PduTypeMixInBase)
-
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- GetResponsePduTypeMixIn(PduTypeMixInBase)
-
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- InformRequestPduTypeMixIn(PduTypeMixInBase)
-
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- ReportPduTypeMixIn(PduTypeMixInBase)
-
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- SetRequestPduTypeMixIn(PduTypeMixInBase)
-
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- TrapPduTypeMixIn(PduTypeMixInBase)
-
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- GetBulkRequestPduMixIn(RequestPduMixIn)
-
- GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu)
- GetNextRequestPduMixIn(RequestPduMixIn)
-
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPduMixIn(RequestPduMixIn)
-
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- InformRequestPduMixIn(RequestPduMixIn)
-
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- MessageMixIn(MessageMixIn)
-
- Message(MessageMixIn, MessageMixIn, ProtoVersionId2cMixIn, Sequence)
- ReportPduMixIn(PduMixInBase)
-
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- ResponsePduMixIn(RequestPduMixIn, GetResponsePduMixIn)
-
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- SetRequestPduMixIn(RequestPduMixIn)
-
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- SnmpV2TrapPduMixIn(PduMixInBase)
-
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- VarBindMixIn(VarBindMixIn)
-
- VarBind(VarBindMixIn, ProtoVersionId2cMixIn, Sequence)
- ProtoVersionId2cMixIn(ProtoVersionIdMixInBase)
-
- BindValue(ProtoVersionId2cMixIn, Choice)
- Community(ProtoVersionId2cMixIn, OctetString)
- EndOfMibView(ProtoVersionId2cMixIn, Null)
- GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu)
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- MaxRepetitions(ProtoVersionId2cMixIn, Integer)
- Message(MessageMixIn, MessageMixIn, ProtoVersionId2cMixIn, Sequence)
- NoSuchInstance(ProtoVersionId2cMixIn, Null)
- NoSuchObject(ProtoVersionId2cMixIn, Null)
- NonRepeaters(ProtoVersionId2cMixIn, Integer)
- Pdu(ProtoVersionId2cMixIn, Sequence)
-
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- Pdus(ProtoVersionId2cMixIn, Choice)
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- RequestId(ProtoVersionId2cMixIn, InitialRequestIdMixIn, Integer)
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- VarBind(VarBindMixIn, ProtoVersionId2cMixIn, Sequence)
- VarBindList(ProtoVersionId2cMixIn, SequenceOf)
- Version(ProtoVersionId2cMixIn, Integer)
- GetBulkRequestPduMixIn(RequestPduMixIn)
-
- GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu)
- GetNextRequestPduMixIn(RequestPduMixIn)
-
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPduMixIn(RequestPduMixIn)
-
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- InformRequestPduMixIn(RequestPduMixIn)
-
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- MessageMixIn(MessageMixIn)
-
- Message(MessageMixIn, MessageMixIn, ProtoVersionId2cMixIn, Sequence)
- ReportPduMixIn(RequestPduMixIn)
-
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- ResponsePduMixIn(GetResponsePduMixIn)
-
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- SetRequestPduMixIn(RequestPduMixIn)
-
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- SnmpV2TrapPduMixIn(RequestPduMixIn)
-
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- InitialRequestIdMixIn
-
- RequestId(ProtoVersionId2cMixIn, InitialRequestIdMixIn, Integer)
- Choice(ProtoVersionId2cMixIn, Choice)
-
- BindValue(ProtoVersionId2cMixIn, Choice)
- Pdus(ProtoVersionId2cMixIn, Choice)
- Integer(ProtoVersionId2cMixIn, Integer)
-
- ErrorIndex
- ErrorStatus
- MaxRepetitions(ProtoVersionId2cMixIn, Integer)
- NonRepeaters(ProtoVersionId2cMixIn, Integer)
- RequestId(ProtoVersionId2cMixIn, InitialRequestIdMixIn, Integer)
- Version(ProtoVersionId2cMixIn, Integer)
- Null(ProtoVersionId2cMixIn, Null)
-
- EndOfMibView(ProtoVersionId2cMixIn, Null)
- NoSuchInstance(ProtoVersionId2cMixIn, Null)
- NoSuchObject(ProtoVersionId2cMixIn, Null)
- OctetString(ProtoVersionId2cMixIn, OctetString)
-
- Community(ProtoVersionId2cMixIn, OctetString)
- Sequence(ProtoVersionId2cMixIn, Sequence)
-
- BulkPdu
-
- GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu)
- Message(MessageMixIn, MessageMixIn, ProtoVersionId2cMixIn, Sequence)
- Pdu(ProtoVersionId2cMixIn, Sequence)
-
- GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu)
- GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu)
- InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu)
- ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu)
- ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu)
- SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu)
- VarBind(VarBindMixIn, ProtoVersionId2cMixIn, Sequence)
- SequenceOf(ProtoVersionId2cMixIn, SequenceOf)
-
- VarBindList(ProtoVersionId2cMixIn, SequenceOf)
class BindValue(ProtoVersionId2cMixIn, Choice) |
|
Binding value |
|
- Method resolution order:
- BindValue
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Choice
- Choice
- ChoiceMixIn
- ProtoVersionId1MixIn
- Choice
- ChoiceTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- ChoiceMixIn
- SingleFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- choiceComponents = [<class pysnmp.proto.rfc1902.ObjectSyntax>, <class pysnmp.proto.rfc1902.Null>, <class pysnmp.proto.rfc1905.NoSuchObject>, <class pysnmp.proto.rfc1905.NoSuchInstance>, <class pysnmp.proto.rfc1905.EndOfMibView>]
- choiceNames = ['value', 'unspecified', 'noSuchObject', 'noSuchInstance', 'endOfMibView']
- initialComponent = <class pysnmp.proto.rfc1902.Null>
- SMI NULL data type
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from ChoiceMixIn:
- apiAlphaGetCurrentComponent(self)
- apiAlphaGetTerminalValue(self)
- apiAlphaSetTerminalValue(self, value)
- getTerminal = apiAlphaGetTerminalValue(self)
Data and other attributes inherited from Choice:
- tagCategory = 4
Methods inherited from ChoiceTypeAsn1Object:
- __delitem__(self, key)
- Delete component by key
- __init__(self, **kwargs)
- Store dictionary args
- __setitem__(self, key, value)
- Set component by key & value
- componentFactoryBorrow(self, key)
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 = ()
- tagClass = 0
- tagId = None
Methods inherited from SingleFixedTypeAsn1Object:
- berDecode(self, input)
- decode = berDecode(self, input)
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 BulkPdu(Sequence) |
|
Base class for bulk PDU |
|
- Method resolution order:
- BulkPdu
- Sequence
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.NonRepeaters>, <class pysnmp.proto.rfc1905.MaxRepetitions>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'non_repeaters', 'max_repetitions', 'variable_bindings']
- tagClass = 128
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
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
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
|
class Community(ProtoVersionId2cMixIn, OctetString) |
|
Community name |
|
- Method resolution order:
- Community
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- OctetString
- OctetString
- ProtoVersionId1MixIn
- OctetString
- SimpleAsn1Object
- Asn1Object
- OctetStringMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- initialValue = 'public'
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from OctetString:
- constraints = (<function _ValueSizeConstraint>,)
Methods inherited from OctetString:
- __add__(self, other)
- Add sub-id with input verification
- __getitem__(self, i)
- Get string component by index or slice
- __len__(self)
- __mul__(self, value)
- Multiply a value
- __radd__(self, other)
- Add sub-id with input verification
- __rmul__ = __mul__(self, value)
- Multiply a value
Data and other attributes inherited from OctetString:
- allowedTypes = (<type 'str'>,)
- tagId = 4
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 EndOfMibView(ProtoVersionId2cMixIn, Null) |
|
endOfMibView exception |
|
- Method resolution order:
- EndOfMibView
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Null
- Null
- ProtoVersionId1MixIn
- Null
- SimpleAsn1Object
- Asn1Object
- NullMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagClass = 128
- tagId = 2
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from Null:
- allowedTypes = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>)
- constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
- initialValue = ''
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 ErrorIndex(Integer) |
|
Error index |
|
- Method resolution order:
- ErrorIndex
- Integer
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- constraints = (<function _ValueRangeConstraint>,)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- initialValue = 0L
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 ErrorStatus(Integer) |
|
Error status |
|
- Method resolution order:
- ErrorStatus
- Integer
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Methods defined here:
- __str__(self)
- Return verbose error message if known
Data and other attributes defined here:
- constraints = (<function _ValueRangeConstraint>,)
- initialValue = 0
- pduErrors = ['(noError) No Error', '(tooBig) Response message would have been too large', '(noSuchName) There is no such variable name in this MIB', '(badValue) The value given has the wrong type or length', '(readOnly) No modifications allowed to this object', '(genError) A general failure occured', '(noAccess) Access denied', '(wrongType) Wrong BER type', '(wrongLength) Wrong BER length', '(wrongEncoding) Wrong BER encoding', '(wrongValue) Wrong value', '(noCreation) Object creation prohibited', '(inconsistentValue) Inconsistent value', '(resourceUnavailable) Resource unavailable', '(commitFailed) Commit failed', '(undoFailed) Undo failed', '(authorizationError) Authorization error', '(notWritable) Object is not writable', '(inconsistentName) Inconsistent object name']
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 GetBulkRequestPdu(GetBulkRequestPduMixIn, GetBulkRequestPduMixIn, ProtoVersionId2cMixIn, GetBulkRequestPduTypeMixIn, BulkPdu) |
|
The GetBulkRequestPdu-PDU |
|
- Method resolution order:
- GetBulkRequestPdu
- GetBulkRequestPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- GetBulkRequestPduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- GetBulkRequestPduTypeMixIn
- PduTypeMixInBase
- BulkPdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 5
Methods inherited from GetBulkRequestPduMixIn:
- apiGenGetMaxRepetitions(self)
- apiGenGetNonRepeaters(self)
- apiGenSetMaxRepetitions(self, value)
- apiGenSetNonRepeaters(self, value)
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from GetBulkRequestPduMixIn:
- apiAlphaGetMaxRepetitions(self)
- apiAlphaGetNonRepeaters(self)
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaSetMaxRepetitions(self, value)
- apiAlphaSetNonRepeaters(self, value)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from GetBulkRequestPduTypeMixIn:
- apiAlphaPduType = 'BulkRequest'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from BulkPdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.NonRepeaters>, <class pysnmp.proto.rfc1905.MaxRepetitions>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'non_repeaters', 'max_repetitions', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class GetNextRequestPdu(GetNextRequestPduMixIn, GetNextRequestPduMixIn, ProtoVersionId2cMixIn, GetNextRequestPduTypeMixIn, Pdu) |
|
The GetNextRequest-PDU |
|
- Method resolution order:
- GetNextRequestPdu
- GetNextRequestPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- GetNextRequestPduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- GetNextRequestPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 1
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from GetNextRequestPduTypeMixIn:
- apiAlphaPduType = 'GetNextRequest'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class GetRequestPdu(GetRequestPduMixIn, GetRequestPduMixIn, ProtoVersionId2cMixIn, GetRequestPduTypeMixIn, Pdu) |
|
The GetRequest-PDU |
|
- Method resolution order:
- GetRequestPdu
- GetRequestPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- GetRequestPduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- GetRequestPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 0
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from GetRequestPduTypeMixIn:
- apiAlphaPduType = 'GetRequest'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class InformRequestPdu(InformRequestPduMixIn, InformRequestPduMixIn, ProtoVersionId2cMixIn, InformRequestPduTypeMixIn, Pdu) |
|
The InformRequest-PDU |
|
- Method resolution order:
- InformRequestPdu
- InformRequestPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- InformRequestPduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- InformRequestPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 6
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from InformRequestPduTypeMixIn:
- apiAlphaPduType = 'InformRequest'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class MaxRepetitions(ProtoVersionId2cMixIn, Integer) |
|
Bulk PDU max-repetitions |
|
- Method resolution order:
- MaxRepetitions
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Integer
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- constraints = (<function _ValueRangeConstraint>,)
- initialValue = 255
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 Message(MessageMixIn, MessageMixIn, ProtoVersionId2cMixIn, Sequence) |
|
Top level message |
|
- Method resolution order:
- Message
- MessageMixIn
- MessageMixIn
- MessageMixIn
- MessageMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- fixedComponents = [<class pysnmp.proto.rfc1905.Version>, <class pysnmp.proto.rfc1905.Community>, <class pysnmp.proto.rfc1905.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:
- apiAlphaMatch(self, rsp)
- Return true if response message matches this request
- apiAlphaReply(self, rsp=None)
- Return initialized response message
- match = apiAlphaMatch(self, rsp)
- Return true if response message matches this request
- reply = apiAlphaReply(self, rsp=None)
- Return initialized response message
Methods inherited from MessageMixIn:
- apiAlphaGetCommunity(self)
- apiAlphaGetPdu(self)
- apiAlphaGetVersion(self)
- apiAlphaSetCommunity(self, value)
- apiAlphaSetPdu(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
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
|
class NoSuchInstance(ProtoVersionId2cMixIn, Null) |
|
noSuchInstance exception |
|
- Method resolution order:
- NoSuchInstance
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Null
- Null
- ProtoVersionId1MixIn
- Null
- SimpleAsn1Object
- Asn1Object
- NullMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagClass = 128
- tagId = 1
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from Null:
- allowedTypes = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>)
- constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
- initialValue = ''
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 NoSuchObject(ProtoVersionId2cMixIn, Null) |
|
noSuchObject exception |
|
- Method resolution order:
- NoSuchObject
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Null
- Null
- ProtoVersionId1MixIn
- Null
- SimpleAsn1Object
- Asn1Object
- NullMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagClass = 128
- tagId = 0
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from Null:
- allowedTypes = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>)
- constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
- initialValue = ''
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 NonRepeaters(ProtoVersionId2cMixIn, Integer) |
|
Bulk PDU non-repeaters |
|
- Method resolution order:
- NonRepeaters
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Integer
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- constraints = (<function _ValueRangeConstraint>,)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- initialValue = 0L
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 Pdu(ProtoVersionId2cMixIn, Sequence) |
|
Base class for a non-bulk PDU |
|
- Method resolution order:
- Pdu
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
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
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
|
class Pdus(ProtoVersionId2cMixIn, Choice) |
| |
- Method resolution order:
- Pdus
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Choice
- Choice
- ChoiceMixIn
- ProtoVersionId1MixIn
- Choice
- ChoiceTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- ChoiceMixIn
- SingleFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- choiceComponents = [<class pysnmp.proto.rfc1905.GetRequestPdu>, <class pysnmp.proto.rfc1905.GetNextRequestPdu>, <class pysnmp.proto.rfc1905.GetBulkRequestPdu>, <class pysnmp.proto.rfc1905.ResponsePdu>, <class pysnmp.proto.rfc1905.SetRequestPdu>, <class pysnmp.proto.rfc1905.InformRequestPdu>, <class pysnmp.proto.rfc1905.SnmpV2TrapPdu>, <class pysnmp.proto.rfc1905.ReportPdu>]
- choiceNames = ['get_request', 'get_next_request', 'get_bulk_request', 'response', 'set_request', 'inform_request', 'snmpV2_trap', 'report']
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from ChoiceMixIn:
- apiAlphaGetCurrentComponent(self)
- apiAlphaGetTerminalValue(self)
- apiAlphaSetTerminalValue(self, value)
- getTerminal = apiAlphaGetTerminalValue(self)
Data and other attributes inherited from Choice:
- tagCategory = 4
Methods inherited from ChoiceTypeAsn1Object:
- __delitem__(self, key)
- Delete component by key
- __init__(self, **kwargs)
- Store dictionary args
- __setitem__(self, key, value)
- Set component by key & value
- componentFactoryBorrow(self, key)
Data and other attributes inherited from ChoiceTypeAsn1Object:
- initialComponent = None
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 = ()
- tagClass = 0
- tagId = None
Methods inherited from SingleFixedTypeAsn1Object:
- berDecode(self, input)
- decode = berDecode(self, input)
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 ReportPdu(ReportPduMixIn, ReportPduMixIn, ProtoVersionId2cMixIn, ReportPduTypeMixIn, Pdu) |
|
The Report-PDU |
|
- Method resolution order:
- ReportPdu
- ReportPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- ReportPduMixIn
- PduMixInBase
- PduMixInBase
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- ReportPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 8
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from ReportPduTypeMixIn:
- apiAlphaPduType = 'Report'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class RequestId(ProtoVersionId2cMixIn, InitialRequestIdMixIn, Integer) |
|
Request ID |
|
- Method resolution order:
- RequestId
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- InitialRequestIdMixIn
- Integer
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from InitialRequestIdMixIn:
- initialValue(self)
Data and other attributes inherited from Integer:
- constraints = (<function _ValueRangeConstraint>,)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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 ResponsePdu(ResponsePduMixIn, ResponsePduMixIn, ProtoVersionId2cMixIn, GetResponsePduTypeMixIn, Pdu) |
|
The GetResponse-PDU |
|
- Method resolution order:
- ResponsePdu
- ResponsePduMixIn
- GetResponsePduMixIn
- RequestPduMixIn
- ResponsePduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- GetResponsePduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- GetResponsePduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 2
Methods inherited from GetResponsePduMixIn:
- apiGenGetErrorIndex(self)
- apiGenGetErrorStatus(self)
- apiGenSetErrorIndex(self, value)
- apiGenSetErrorStatus(self, value)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
- apiGenSetVarBind(self, varBinds)
Methods inherited from ResponsePduMixIn:
- apiAlphaGetEndOfMibIndices(self)
- apiAlphaSetEndOfMibIndices(self, *indices)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Methods inherited from GetResponsePduMixIn:
- apiAlphaGetErrorIndex(self)
- apiAlphaGetErrorStatus(self)
- apiAlphaSetErrorIndex(self, value)
- apiAlphaSetErrorStatus(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from GetResponsePduTypeMixIn:
- apiAlphaPduType = 'GetResponse'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class SetRequestPdu(SetRequestPduMixIn, SetRequestPduMixIn, ProtoVersionId2cMixIn, SetRequestPduTypeMixIn, Pdu) |
|
The SetRequest-PDU |
|
- Method resolution order:
- SetRequestPdu
- SetRequestPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- SetRequestPduMixIn
- RequestPduMixIn
- PduMixInBase
- PduMixInBase
- RequestPduMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- SetRequestPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 3
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from RequestPduMixIn:
- apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- apiAlphaReply(self, pdu=None)
- Return initialized response PDU
- match = apiAlphaMatch(self, rspPdu)
- Return true if response PDU matches this ours
- reply = apiAlphaReply(self, pdu=None)
- Return initialized response PDU
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Methods inherited from RequestPduMixIn:
- apiAlphaGetRequestId(self)
- apiAlphaSetRequestId(self, value)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from SetRequestPduTypeMixIn:
- apiAlphaPduType = 'SetRequest'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu) |
|
The SNMPv2Trap-PDU |
|
- Method resolution order:
- SnmpV2TrapPdu
- SnmpV2TrapPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- SnmpV2TrapPduMixIn
- PduMixInBase
- PduMixInBase
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- TrapPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 7
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from TrapPduTypeMixIn:
- apiAlphaPduType = 'Trap'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
TrapPdu = class SnmpV2TrapPdu(SnmpV2TrapPduMixIn, SnmpV2TrapPduMixIn, ProtoVersionId2cMixIn, TrapPduTypeMixIn, Pdu) |
|
The SNMPv2Trap-PDU |
|
- Method resolution order:
- SnmpV2TrapPdu
- SnmpV2TrapPduMixIn
- RequestPduMixIn
- RequestPduMixIn
- SnmpV2TrapPduMixIn
- PduMixInBase
- PduMixInBase
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- TrapPduTypeMixIn
- PduTypeMixInBase
- Pdu
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- tagId = 7
Methods inherited from RequestPduMixIn:
- apiGenSetVarBind(self, varBinds)
Methods inherited from RequestPduMixIn:
- apiGenGetRequestId(self)
- apiGenGetVarBind(self)
- apiGenSetRequestId(self, value)
Methods inherited from PduMixInBase:
- apiAlphaSetVarBindList(self, *varBinds)
Methods inherited from PduMixInBase:
- apiAlphaGetTableIndices(self, rsp, *headerVars)
- apiAlphaGetVarBindList(self)
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from TrapPduTypeMixIn:
- apiAlphaPduType = 'Trap'
Methods inherited from PduTypeMixInBase:
- apiAlphaGetPduType(self)
Data and other attributes inherited from Pdu:
- fixedComponents = [<class pysnmp.proto.rfc1905.RequestId>, <class pysnmp.proto.rfc1905.ErrorStatus>, <class pysnmp.proto.rfc1905.ErrorIndex>, <class pysnmp.proto.rfc1905.VarBindList>]
- fixedNames = ['request_id', 'error_status', 'error_index', 'variable_bindings']
- tagClass = 128
Methods inherited from SequenceMixIn:
- apiAlphaSetSimpleComponent(self, key, value)
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
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
|
class VarBind(VarBindMixIn, ProtoVersionId2cMixIn, Sequence) |
|
Variable binding |
|
- Method resolution order:
- VarBind
- VarBindMixIn
- VarBindMixIn
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Sequence
- Sequence
- SequenceMixIn
- ProtoVersionId1MixIn
- Sequence
- RecordTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceMixIn
- OrderedFixedTypeAsn1Object
- FixedTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- fixedComponents = [<class pysnmp.proto.rfc1902.ObjectName>, <class pysnmp.proto.rfc1905.BindValue>]
- fixedNames = ['name', 'value']
Methods inherited from VarBindMixIn:
- apiAlphaGetOidVal(self)
- apiAlphaSetOidVal(self, (oid, val))
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
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
|
class VarBindList(ProtoVersionId2cMixIn, SequenceOf) |
|
List of variable bindings |
|
- Method resolution order:
- VarBindList
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- SequenceOf
- SequenceOf
- ProtoVersionId1MixIn
- SequenceOf
- VariableTypeAsn1Object
- StructuredAsn1Object
- Asn1Object
- SequenceOfMixIn
- OrderedVariableTypeAsn1Object
- VariableTypeAsn1Object
- StructuredAsn1Object
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- constraints = (<function _ValueSizeConstraint>,)
- protoComponent = <class pysnmp.proto.rfc1905.VarBind>
- Variable binding
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Data and other attributes inherited from SequenceOf:
- tagId = 16
Methods inherited from VariableTypeAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __delitem__(self, idx)
- Remove object by subscription
- __getitem__(self, idx)
- Get object by subscription
- __hash__(self)
- Returns hash of the payload value
- __init__(self, *args)
- Store possible components
- __len__(self)
- __repr__(self)
- Return native representation of instance payload
- __setitem__(self, idx, value)
- Set object by subscription
- __str__(self)
- Return string representation of class instance
- append(self, value)
- Append object to end
- clear(self)
- componentFactoryBorrow(self)
- componentFactoryReturn(self, *vals)
- extend(self, values)
- Extend list by appending list elements
- index(self, idx)
- insert(self, idx, value)
- Insert object before index
- pop(self, idx=None)
- Remove and return item at index (default last)
Data and other attributes inherited from VariableTypeAsn1Object:
- initialValue = []
Data and other attributes inherited from StructuredAsn1Object:
- tagFormat = 32
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- allowedTypes = ()
- tagCategory = 1
- tagClass = 0
Methods inherited from VariableTypeAsn1Object:
- berDecode(self, input)
- BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, args=[])
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, args=[])
- berEncode() -> octet string
BER encode object payload whenever possible
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 Version(ProtoVersionId2cMixIn, Integer) |
|
Message version |
|
- Method resolution order:
- Version
- ProtoVersionId2cMixIn
- ProtoVersionIdMixInBase
- Integer
- Integer
- ProtoVersionId1MixIn
- Integer
- SimpleAsn1Object
- Asn1Object
- IntegerMixIn
- SimpleAsn1Object
- BerObject
Data and other attributes defined here:
- constraints = (<pysnmp.asn1.constraints.SingleValueConstraint object>,)
- initialValue = 1
Data and other attributes inherited from ProtoVersionId2cMixIn:
- apiAlphaProtoVersionId = 1
Methods inherited from ProtoVersionIdMixInBase:
- apiAlphaGetProtoVersionId(self)
Methods inherited from Integer:
- __add__(self, value)
- Add a value
- __and__(self, value)
- Perform binary AND operation
- __div__(self, value)
- Divide a value by ourselves
- __float__(self)
- Return a floating point value of ourselves
- __iadd__(self, value)
- Add value to ourselves
- __iand__(self, value)
- Perform binary AND operation against ourselves
- __idiv__(self, value)
- Divide a value by ourselves
- __ilshift__(self, value)
- Perform left shift operation
- __imod__(self, value)
- Take a modulo of ourselves
- __imul__(self, value)
- Multiply a value to ourselves
- __int__(self)
- Return an integer value of ourselves
- __ior__(self, value)
- Perform binary OR operation against ourselves
- __ipow__(self, value, modulo)
- Provision for x**=y
- __irshift__(self, value)
- Perform right shift operation
- __isub__(self, value)
- Subscract value from ourselves
- __ixor__(self, value)
- Perform binary XOR operation against ourselves
- __long__(self)
- Return a long integer value of ourselves
- __lshift__(self, value)
- Perform left shift operation
- __mod__(self, value)
- Take a modulo of ourselves
- __mul__(self, value)
- Multiply a value
- __or__(self, value)
- Perform binary OR operation
- __pow__(self, value, modulo)
- Provision for pow()
- __radd__ = __add__(self, value)
- Add a value
- __rand__ = __and__(self, value)
- Perform binary AND operation
- __rdiv__(self, value)
- Divide ourselves by value
- __rmod__ = __mod__(self, value)
- Take a modulo of ourselves
- __rmul__ = __mul__(self, value)
- Multiply a value
- __ror__ = __or__(self, value)
- Perform binary OR operation
- __rpow__(self, value, modulo)
- Provision for rpow()
- __rshift__(self, value)
- Perform right shift operation
- __rsub__(self, value)
- Subscract our value from given one
- __rxor__ = __xor__(self, value)
- Perform binary XOR operation
- __sub__(self, value)
- Subscract a value
- __xor__(self, value)
- Perform binary XOR operation
- dec = __isub__(self, value)
- Subscract value from ourselves
- div = __idiv__(self, value)
- Divide a value by ourselves
- inc = __iadd__(self, value)
- Add value to ourselves
- mul = __imul__(self, value)
- Multiply a value to ourselves
Data and other attributes inherited from Integer:
- allowedTypes = (<type 'int'>, <type 'long'>)
- tagId = 2
Methods inherited from SimpleAsn1Object:
- __cmp__(self, other)
- Attempt to compare the payload of instances of the same class
- __hash__(self)
- Returns hash of the payload value
- __init__(self, value=None)
- Store ASN.1 value
- __nonzero__(self)
- Returns true if value is true
- __repr__(self)
- Return native representation of instance payload
- __str__(self)
- Return string representation of class instance
- componentFactoryBorrow(self, value=None)
- get(self)
- Get a value from object
- getTerminal(self)
- set(self, value)
- Set a value to object
Data and other attributes inherited from SimpleAsn1Object:
- NORMAL_STATIC_TYPES = (<type 'int'>, <type 'long'>, <type 'str'>, <type 'NoneType'>, <type 'float'>, <type 'tuple'>)
- tagFormat = 0
Methods inherited from Asn1Object:
- getUnderlyingTag(self)
Data and other attributes inherited from Asn1Object:
- tagCategory = 1
- tagClass = 0
Methods inherited from SimpleAsn1Object:
- berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
- decode = berDecode(self, input)
- berDecode(input) -> (value, rest)
BER decode input (octet string) into ASN1 object payload,
return the rest of input stream.
- encode = berEncode(self, value=None)
- berEncode() -> octet string
BER encode object payload whenever possible
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
| |