From b1608c38db13e36d82ac953f3deb904cac4f66f2 Mon Sep 17 00:00:00 2001 From: elie Date: Fri, 21 Aug 2009 18:36:38 +0000 Subject: sendNotification() now returns request ID --- examples/v3arch/oneliner/agent/ntforg.py | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1