diff options
Diffstat (limited to 'examples/v3arch/oneliner/agent/ntforg/inform-v3.py')
-rw-r--r-- | examples/v3arch/oneliner/agent/ntforg/inform-v3.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/inform-v3.py b/examples/v3arch/oneliner/agent/ntforg/inform-v3.py index 41d996e..f9abe91 100644 --- a/examples/v3arch/oneliner/agent/ntforg/inform-v3.py +++ b/examples/v3arch/oneliner/agent/ntforg/inform-v3.py @@ -19,8 +19,11 @@ errorIndication, errorStatus, errorIndex, varBinds = ntfOrg.sendNotification( ntforg.UsmUserData('usr-md5-des', 'authkey1', 'privkey1'), ntforg.UdpTransportTarget(('localhost', 162)), 'inform', - '1.3.6.1.6.3.1.1.5.2', - ('1.3.6.1.2.1.1.5.0', rfc1902.OctetString('system name')) + ntforg.NotificationType( + ntforg.ObjectIdentity('1.3.6.1.6.3.1.1.5.2') + ).addVarBinds( + ('1.3.6.1.2.1.1.5.0', rfc1902.OctetString('system name')) + ) ) if errorIndication: |