summaryrefslogtreecommitdiff
path: root/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py')
-rw-r--r--examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
index 33d72f1f..00a2c9e7 100644
--- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py
+++ b/examples/hlapi/v3arch/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.
Functionally similar to:
@@ -33,7 +34,7 @@ iterator = bulkCmd(
).addMibSource(
'python_packaged_mibs'
)
- ),
+ ).addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@'),
lexicographicMode=False
)