summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py')
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py
index 15f4abf6..5ea17a41 100644
--- a/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py
+++ b/examples/v3arch/asyncore/manager/cmdgen/custom-timeout-and-retries.py
@@ -49,9 +49,8 @@ config.addTargetAddr(
)
# Error/response receiver
-def cbFun(sendRequestHandle,
- errorIndication, errorStatus, errorIndex,
- varBinds, cbCtx):
+def cbFun(snmpEngine, sendRequestHandle, errorIndication,
+ errorStatus, errorIndex, varBinds, cbCtx):
if errorIndication:
print(errorIndication)
elif errorStatus:
@@ -65,10 +64,11 @@ def cbFun(sendRequestHandle,
print('%s = %s' % (oid.prettyPrint(), val.prettyPrint()))
# Prepare and send a request message
-cmdgen.GetCommandGenerator().sendReq(
+cmdgen.GetCommandGenerator().sendVarBinds(
snmpEngine,
'my-router',
- ( ((1,3,6,1,2,1,1,1,0), None), ),
+ None, '', # contextEngineId, contextName
+ [ ((1,3,6,1,2,1,1,1,0), None) ],
cbFun
)