summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2009-08-21 18:36:38 +0000
committerelie <elie>2009-08-21 18:36:38 +0000
commitb1608c38db13e36d82ac953f3deb904cac4f66f2 (patch)
tree70c6d1d9ae1563852683a951760e35fad9e2ae4b
parent21f53c84e4bc40138d7879b9d1d80654d2774396 (diff)
downloadpysnmp-b1608c38db13e36d82ac953f3deb904cac4f66f2.tar.gz
sendNotification() now returns request IDrelease_4_1_11_a_tag
-rw-r--r--examples/v3arch/oneliner/agent/ntforg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg.py b/examples/v3arch/oneliner/agent/ntforg.py
index 64fcd80..241d3e9 100644
--- a/examples/v3arch/oneliner/agent/ntforg.py
+++ b/examples/v3arch/oneliner/agent/ntforg.py
@@ -2,7 +2,7 @@
from pysnmp.entity.rfc3413.oneliner import ntforg
from pysnmp.proto import rfc1902
-errorIndication = ntforg.NotificationOriginator().sendNotification(
+ntforg.NotificationOriginator().sendNotification(
# SNMP v1
# ntforg.CommunityData('test-manager', 'public', 0),
# SNMP v2
@@ -20,6 +20,3 @@ errorIndication = ntforg.NotificationOriginator().sendNotification(
# Plain OID name, rfc1902 class instance value
((1,3,6,1,2,1,1,5,0), rfc1902.OctetString('new name'))
)
-
-if errorIndication:
- print errorIndication