diff options
author | elie <elie> | 2014-06-09 13:07:07 +0000 |
---|---|---|
committer | elie <elie> | 2014-06-09 13:07:07 +0000 |
commit | 8ccf35c5251291ca5829a038f1cd2a071847408b (patch) | |
tree | 80b258d3467c91a5b6518c9c22e01962197e92c4 /examples | |
parent | a838cc3abb71d896631ff1d98707448f8374956d (diff) | |
download | pysnmp-8ccf35c5251291ca5829a038f1cd2a071847408b.tar.gz |
sendNotification() API correction
Diffstat (limited to 'examples')
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py index bf04e67..088b72b 100644 --- a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py +++ b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-snmp-engines.py @@ -74,10 +74,10 @@ for authData, transportTarget in targets: snmpEngineA or snmpEngineB sendPduHandle = ntfOrg.sendNotification( snmpEngine, - context.SnmpContext(snmpEngine), authData, transportTarget, - ntforg.ContextData(), + context.SnmpContext(snmpEngine), + ntforg.null, 'inform', ntforg.MibVariable('SNMPv2-MIB', 'coldStart'), ( ( rfc1902.ObjectName('1.3.6.1.2.1.1.1.0'), diff --git a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py index 7d9b497..a19bc11 100644 --- a/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py +++ b/examples/v3arch/oneliner/agent/ntforg/inform-async-multiple-transports-and-protocols.py @@ -46,10 +46,10 @@ ntfOrg = ntforg.AsyncNotificationOriginator() for authData, transportTarget in targets: sendPduHandle = ntfOrg.sendNotification( snmpEngine, - context.SnmpContext(snmpEngine), authData, transportTarget, - cmdgen.ContextData(), + context.SnmpContext(snmpEngine), + ntforg.null, 'inform', ntforg.MibVariable('SNMPv2-MIB', 'coldStart'), ( ( rfc1902.ObjectName('1.3.6.1.2.1.1.1.0'), diff --git a/examples/v3arch/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py b/examples/v3arch/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py index 1fdee69..a075fda 100644 --- a/examples/v3arch/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py +++ b/examples/v3arch/oneliner/agent/ntforg/trap-async-multiple-transports-and-protocols.py @@ -34,10 +34,10 @@ ntfOrg = ntforg.AsyncNotificationOriginator() for authData, transportTarget in targets: ntfOrg.sendNotification( snmpEngine, - context.SnmpContext(snmpEngine), authData, transportTarget, - ntforg.ContextData(), + context.SnmpContext(snmpEngine), + ntforg.null, 'trap', ntforg.MibVariable('SNMPv2-MIB', 'coldStart'), ( ( rfc1902.ObjectName('1.3.6.1.2.1.1.1.0'), |