summaryrefslogtreecommitdiff
path: root/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py')
-rw-r--r--examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py b/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
index 4a43bc49..b9416366 100644
--- a/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
+++ b/examples/hlapi/asyncio/manager/cmdgen/multiple-sequential-queries.py
@@ -37,8 +37,8 @@ def getone(snmpEngine, hostname):
print('%s at %s' % (
errorStatus.prettyPrint(),
errorIndex and varBinds[int(errorIndex) - 1][0] or '?'
+ )
)
- )
else:
for varBind in varBinds:
print(' = '.join([x.prettyPrint() for x in varBind]))
@@ -48,11 +48,11 @@ def getone(snmpEngine, hostname):
def getall(snmpEngine, hostnames):
for hostname in hostnames:
yield from getone(snmpEngine, hostname)
-
+ yield from unconfigureCmdGen(snmpEngine)
snmpEngine = SnmpEngine()
loop = asyncio.get_event_loop()
loop.run_until_complete(getall(snmpEngine, [('demo.snmplabs.com', 1161),
('demo.snmplabs.com', 2161),
- ('demo.snmplabs.com', 3161)]))
+ ('demo.snmplabs.com', 3161)])) \ No newline at end of file