diff options
author | elie <elie> | 2015-07-04 16:30:27 +0000 |
---|---|---|
committer | elie <elie> | 2015-07-04 16:30:27 +0000 |
commit | a39f371a33466985dee8b9712c820bfae6037954 (patch) | |
tree | 1e5b8d2ebae09b66b0595f9d668b1bfb915a94be /examples/smi | |
parent | 8ffb93f364237f9b75db5e2017e57c808e200063 (diff) | |
download | pysnmp-a39f371a33466985dee8b9712c820bfae6037954.tar.gz |
* default /usr/share/mibs MIB source added
* compiler.addMibCompiler() now supports ifAvailable and ifNotAdded flags
* rfc1902.ObjectIdentity() now always tries to instantiate and attach
MIB compiler to snmpEngine (if not done yet), also .addMibCompiler()
renamed to .addAsn1MibSource() to signify the fact that MIB compiler
is attached behind the scene
Diffstat (limited to 'examples/smi')
-rw-r--r-- | examples/smi/mib-lookup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/smi/mib-lookup.py b/examples/smi/mib-lookup.py index a208897..69bb7dc 100644 --- a/examples/smi/mib-lookup.py +++ b/examples/smi/mib-lookup.py @@ -14,7 +14,7 @@ mibVar = rfc1902.ObjectIdentity('IF-MIB', 'ifInOctets', 1) # create pysnmp MIBs on demand from ASN.1 sources downloaded from # a web site. try: - mibVar.addMibCompiler('http://mibs.snmplabs.com/asn1/@mib@') + mibVar.addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@') except error.SmiError: print('WARNING: not using MIB compiler (PySMI not installed)') |