summaryrefslogtreecommitdiff
path: root/examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py')
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py b/examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py
index 3d4d4b6..729f2e5 100644
--- a/examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/async-multiple-traps-at-once.py
@@ -31,10 +31,8 @@ targets = (
snmpEngine = SnmpEngine()
-ntfOrg = AsyncNotificationOriginator()
-
for authData, transportTarget, contextData in targets:
- ntfOrg.sendNotification(
+ sendNotification(
snmpEngine,
authData,
transportTarget,
@@ -43,7 +41,7 @@ for authData, transportTarget, contextData in targets:
NotificationType(
ObjectIdentity('SNMPv2-MIB', 'coldStart')
).addVarBinds(
- ( ObjectName('1.3.6.1.2.1.1.1.0'),
+ ( ObjectIdentifier('1.3.6.1.2.1.1.1.0'),
OctetString('my name') )
)
)