summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorelie <elie>2015-06-03 16:12:26 +0000
committerelie <elie>2015-06-03 16:12:26 +0000
commit10f50a7910f7deaaca0af54a8d6a4c03c21edb0d (patch)
tree1254e6a1327312c94b2eda3e9b8d6812054020ff /examples
parentee5f44782529e484d8b74d27913311e0767f1035 (diff)
downloadpysnmp-git-10f50a7910f7deaaca0af54a8d6a4c03c21edb0d.tar.gz
ignore send notification ID when sending trap
Diffstat (limited to 'examples')
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
index 115022c2..8dd12757 100644
--- a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
+++ b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
@@ -69,7 +69,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication,
)
# Build and submit notification message to dispatcher
-sendRequestHandle = ntfOrg.sendPdu(
+ntfOrg.sendPdu(
snmpEngine,
# Notification targets
'my-nms', # target address
@@ -78,7 +78,7 @@ sendRequestHandle = ntfOrg.sendPdu(
cbFun
)
-print('Notification %s is scheduled to be sent' % sendRequestHandle)
+print('Notification is scheduled to be sent')
# Run I/O dispatcher which would send pending message and process response
snmpEngine.transportDispatcher.runDispatcher()