pysnmp.asn1.oidtree
index
/home/mcfletch/pylive/pysnmp/asn1/oidtree.py

The assignments of the "top of the OID tree", according to
X.208 (ASN.1) ITU-T recommendation.
 
Written by Ilya Etingof <ilya@glas.net>, 2002.

 
Modules
       
pysnmp.asn1.univ

 
Classes
       
ObjectIdentifier(SimpleAsn1Object, ObjectIdentifierMixIn)
Dod
Internet
Iso
Org
Root

 
class Dod(ObjectIdentifier)
    
Method resolution order:
Dod
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
initialChildren = [<class pysnmp.asn1.oidtree.Internet>]
initialValue = 'iso(1).org(3).dod(6)'

Methods inherited from ObjectIdentifier:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes inherited from ObjectIdentifier:
allowedTypes = (<type 'str'>, <type 'list'>)
tagId = 6

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
__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:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

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 Internet(ObjectIdentifier)
    
Method resolution order:
Internet
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
initialValue = 'iso(1).org(3).dod(6).internet(1)'

Methods inherited from ObjectIdentifier:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes inherited from ObjectIdentifier:
allowedTypes = (<type 'str'>, <type 'list'>)
initialChildren = []
tagId = 6

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
__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:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

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 Iso(ObjectIdentifier)
    
Method resolution order:
Iso
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
initialChildren = [<class pysnmp.asn1.oidtree.Org>]
initialValue = 'iso(1)'

Methods inherited from ObjectIdentifier:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes inherited from ObjectIdentifier:
allowedTypes = (<type 'str'>, <type 'list'>)
tagId = 6

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
__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:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

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 Org(ObjectIdentifier)
    
Method resolution order:
Org
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
initialChildren = [<class pysnmp.asn1.oidtree.Dod>]
initialValue = 'iso(1).org(3)'

Methods inherited from ObjectIdentifier:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes inherited from ObjectIdentifier:
allowedTypes = (<type 'str'>, <type 'list'>)
tagId = 6

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
__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:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

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 Root(ObjectIdentifier)
    
Method resolution order:
Root
ObjectIdentifier
SimpleAsn1Object
Asn1Object
ObjectIdentifierMixIn
SimpleAsn1Object
BerObject

Data and other attributes defined here:
initialChildren = [<class pysnmp.asn1.oidtree.Iso>]

Methods inherited from ObjectIdentifier:
__add__(self, other)
Add sub-id  with input verification
__delitem__(self, i)
Delete sequence component by index or slice
__getitem__(self, i)
Get sequence component by index or slice
__init__(self, value=None)
__len__(self)
__radd__(self, other)
Add sub-id  with input verification
__setitem__(self, i, item)
Set sub-id by index or slice with input verification
append(self, item)
Append sub-id with input verification
attachNode(self, newNode, newOid=None, idx=None)
Attach a new OID node to OIDs tree
extend(self, item)
Append an oid with input verification
index(self, suboid)
Returns index of first occurrence of given sub-identifier
initChildNodes(self)
Initialize possible children
isaprefix(self, other)
isaprefix(other) -> boolean
 
Compare our own OID with the other one (given as a string),
return non-None if ours is a prefix of the other OID.
 
This is intended to be used for MIB tables retrieval.
match(self, subOids, offset=None)
Compare OIDs by numeric or alias values
resolveKeyOid(self, arg)
searchNode(self, oid, idx=None)
Search the tree of OIDs by name
str2num(self, symbolicOid, aliases=None)
str2num(symbolicOid) -> numericOid
 
Convert symbolic Object ID presented in a dotted form into a
numeric Object ID  represented as a list of numeric sub-ID's.
strNode(self, level=0)
Pretty print OID tree

Data and other attributes inherited from ObjectIdentifier:
allowedTypes = (<type 'str'>, <type 'list'>)
initialValue = []
tagId = 6

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
__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:
constraints = ()
tagCategory = 1
tagClass = 0

Class methods inherited from ObjectIdentifierMixIn:
berInternEncoding(cls, oid) from __builtin__.classobj
Given an OID value, cache the BER encoded values for reference

Data and other attributes inherited from ObjectIdentifierMixIn:
BER_BACKWARD_CACHE = {}
BER_FORWARD_CACHE = {}

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