diff options
Diffstat (limited to 'examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py')
-rw-r--r-- | examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py index 7f1f8d2c..6b5f880c 100644 --- a/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py +++ b/examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py @@ -10,7 +10,8 @@ Send a series of SNMP GETBULK requests using the following options: * for all OIDs within TCP-MIB::tcpConnTable column * TCP-MIB Python module will be searched by a user-specified filesystem path (/opt/mib/pysnmp) and in Python package (python_packaged_mibs) - which should be in sys.path + which should be in sys.path. If not found, TCP-MIB will be downloaded + from the web, compiled into Python and cached for further use. * with MIB lookup enabled Functionally similar to: @@ -29,7 +30,7 @@ iterator = bulkCmd( ObjectIdentity('TCP-MIB', 'tcpConnTable').addMibSource( '/opt/mibs/pysnmp').addMibSource( 'python_packaged_mibs') - ), + ).addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@'), lookupMib=True, lexicographicMode=False ) |