summaryrefslogtreecommitdiff
path: root/examples/hlapi/v3arch/asyncore/sync/manager
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/v3arch/asyncore/sync/manager')
-rw-r--r--examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/custom-pysnmp-mibs-search-path.py5
-rw-r--r--examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py2
2 files changed, 4 insertions, 3 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
)
diff --git a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
index 733bd9cb..c04b6891 100644
--- a/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
+++ b/examples/hlapi/v3arch/asyncore/sync/manager/cmdgen/get-table-object-by-multiple-indices.py
@@ -32,7 +32,7 @@ iterator = getCmd(
'0.0.0.0', 22,
'0.0.0.0', 0
)
- )
+ ).addAsn1MibSource('http://mibs.snmplabs.com/asn1/@mib@')
)
errorIndication, errorStatus, errorIndex, varBinds = next(iterator)