summaryrefslogtreecommitdiff
path: root/examples/hlapi/asyncio/agent
diff options
context:
space:
mode:
authorelie <elie>2015-12-13 12:05:03 +0000
committerelie <elie>2015-12-13 12:05:03 +0000
commit1090a68028c88f05bd02b567c5d45e9bd753d9ee (patch)
treef2978bed8f5e26b1eeb6d05e54d531786b13d889 /examples/hlapi/asyncio/agent
parent1244961c3fb0c76289bc94c6b66da7474838c556 (diff)
downloadpysnmp-git-1090a68028c88f05bd02b567c5d45e9bd753d9ee.tar.gz
notification originator examples re-pointed to Notification Receiver
at demo.snmplabs.com
Diffstat (limited to 'examples/hlapi/asyncio/agent')
-rw-r--r--examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py2
-rw-r--r--examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py b/examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
index dbfb45a3..e11fbc90 100644
--- a/examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
+++ b/examples/hlapi/asyncio/agent/ntforg/default-v1-trap.py
@@ -35,7 +35,7 @@ def run():
errorIndication, errorStatus, errorIndex, varBinds = yield from sendNotification(
snmpEngine,
CommunityData('public', mpModel=0),
- UdpTransportTarget(('localhost', 162)),
+ UdpTransportTarget(('demo.snmplabs.com', 162)),
ContextData(),
'trap',
NotificationType(
diff --git a/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py b/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
index a67e374d..7907b3c3 100644
--- a/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
+++ b/examples/hlapi/asyncio/agent/ntforg/multiple-notifications-at-once.py
@@ -19,7 +19,7 @@ what leads to excessive tables information.
Functionally similar to:
| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2
-| $ snmpinform -v2c -c public localhost 12345 1.3.6.1.6.3.1.1.5.2
+| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2
| $ snmptrap -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.2
"""#
@@ -51,5 +51,5 @@ snmpEngine = SnmpEngine()
loop = asyncio.get_event_loop()
loop.run_until_complete(
asyncio.wait([sendone(snmpEngine, 'demo.snmplabs.com', 'trap'),
- sendone(snmpEngine, 'localhost', 'inform')])
+ sendone(snmpEngine, 'demo.snmplabs.com', 'inform')])
)