diff options
Diffstat (limited to 'examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py')
-rw-r--r-- | examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py b/examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py index 7d01883..502b3a0 100644 --- a/examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py +++ b/examples/v3arch/oneliner/agent/ntforg/trap-v2c-with-mib-lookup.py @@ -18,8 +18,7 @@ errorIndication = ntfOrg.sendNotification( ntforg.CommunityData('public'), ntforg.UdpTransportTarget(('localhost', 162)), 'trap', - ntforg.MibVariable('SNMPv2-MIB', 'coldStart'), - ( ntforg.MibVariable('SNMPv2-MIB', 'sysName', 0), 'new name' ) + ntforg.NotificationType(ntforg.ObjectIdentity('SNMPv2-MIB', 'coldStart')) ) if errorIndication: |