diff options
Diffstat (limited to 'examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py')
-rw-r--r-- | examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py b/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py index 7aa72f4..60cb0a6 100644 --- a/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py +++ b/examples/v3arch/oneliner/agent/ntforg/trap-v3-with-custom-engineid.py @@ -30,7 +30,9 @@ errorIndication = ntfOrg.sendNotification( privProtocol=ntforg.usmAesCfb128Protocol), ntforg.UdpTransportTarget(('127.0.0.1', 162)), 'trap', - ntforg.MibVariable('SNMPv2-MIB', 'authenticationFailure') + ntforg.NotificationType( + ntforg.ObjectIdentity('SNMPv2-MIB', 'authenticationFailure') + ) ) if errorIndication: |