summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py')
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
index f985786e..e8460490 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap-with-notification-objects.py
@@ -38,6 +38,7 @@ from pysnmp.smi import rfc1902, view
# Agent runtime.
#
instanceIndex = (1,)
+
objects = {
('IF-MIB', 'ifIndex'): instanceIndex[0],
('IF-MIB', 'ifAdminStatus'): 'up',
@@ -66,6 +67,7 @@ config.addTransport(
udp.DOMAIN_NAME,
udp.UdpSocketTransport().openClientMode()
)
+
config.addTargetAddr(
snmpEngine, 'my-nms-1',
udp.DOMAIN_NAME, ('104.236.166.95', 162),