diff options
author | Mike C. Fletcher <mcfletch@vrplumber.com> | 2018-01-13 13:09:10 -0500 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-01-13 19:09:10 +0100 |
commit | 3760e7b6388a95c01c70292259759f75ef767a6d (patch) | |
tree | 50ee3ea85f3b5ceab36e7b0b90bfe89220eee32c /pysnmp/smi | |
parent | 0ab27d2c38559e81f480d264a7b0f1ccc854c675 (diff) | |
download | pysnmp-git-3760e7b6388a95c01c70292259759f75ef767a6d.tar.gz |
Some documentation clarifications (#125)
* Doc Update: in resolveWithMib docstring, document getting controller
* Expand on the "use mibbuilder" comment as to *how* to use it
Basically how to make the modules you compile with mibbuilder
available to your application via MibBuilder settings
* Add a note explaining that "ASN.1 MIB" means the textual format
Users of the library seeing "ASN.1" may assume (as I did) that
the meaning is "ASN.1 encoded binary version of the MIB" (i.e.
a precompiled version of the MIB in compact internal format).
* Describe how to configure all OIDs to use the ASN.1 mib directories
Diffstat (limited to 'pysnmp/smi')
-rw-r--r-- | pysnmp/smi/rfc1902.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pysnmp/smi/rfc1902.py b/pysnmp/smi/rfc1902.py index 13a9b486..07cea1e5 100644 --- a/pysnmp/smi/rfc1902.py +++ b/pysnmp/smi/rfc1902.py @@ -831,6 +831,8 @@ class ObjectType(object): Examples -------- + >>> from pysmi.hlapi import varbinds + >>> mibViewController = varbinds.AbstractVarBinds.getMibViewController( engine ) >>> objectType = ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr'), 'Linux i386') >>> objectType.resolveWithMib(mibViewController) ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr'), DisplayString('Linux i386')) |