From 7d1cc580e221899b71d346a1797d2f06a46cc732 Mon Sep 17 00:00:00 2001 From: elie Date: Wed, 3 Jun 2015 16:12:26 +0000 Subject: ignore send notification ID when sending trap --- examples/v3arch/agent/ntforg/trap-v2c-custom-pdu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v3arch/agent/ntforg/trap-v2c-custom-pdu.py b/examples/v3arch/agent/ntforg/trap-v2c-custom-pdu.py index 115022c..8dd1275 100644 --- a/examples/v3arch/agent/ntforg/trap-v2c-custom-pdu.py +++ b/examples/v3arch/agent/ntforg/trap-v2c-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() -- cgit v1.2.1