diff options
author | elie <elie> | 2015-06-03 16:12:26 +0000 |
---|---|---|
committer | elie <elie> | 2015-06-03 16:12:26 +0000 |
commit | 7d1cc580e221899b71d346a1797d2f06a46cc732 (patch) | |
tree | 69f58c6cbe8d70f6a2ee3eef9771dc552048263e /examples | |
parent | fd73f0290bdc29a44b8464e0fbec91232360202a (diff) | |
download | pysnmp-7d1cc580e221899b71d346a1797d2f06a46cc732.tar.gz |
ignore send notification ID when sending trap
Diffstat (limited to 'examples')
-rw-r--r-- | examples/v3arch/agent/ntforg/trap-v2c-custom-pdu.py | 4 |
1 files 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() |