summaryrefslogtreecommitdiff
path: root/examples/v1arch/asyncore
diff options
context:
space:
mode:
authorelie <elie>2015-12-19 21:07:51 +0000
committerelie <elie>2015-12-19 21:07:51 +0000
commit986c0a7f581a8966f156ab609998a9908d2a69c0 (patch)
tree2da1d669f38b6e0e1f709b8c25d165bc477abe98 /examples/v1arch/asyncore
parent10a43697b989a7c960c81c1b6b9180e9f4143ff7 (diff)
downloadpysnmp-git-986c0a7f581a8966f156ab609998a9908d2a69c0.tar.gz
notification origination examples debugged and adjusted to work
with demo.snmplabs.com out-of-the-box
Diffstat (limited to 'examples/v1arch/asyncore')
-rw-r--r--examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py4
-rw-r--r--examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
index fb1ff489..6e29c4c6 100644
--- a/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
+++ b/examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py
@@ -13,7 +13,7 @@ The following script sends SNMP INFORM notification using the following options:
The following Net-SNMP command will produce similar SNMP notification:
-| $ snmpinform -v2c -c public udp:195.218.195.228 0 1.3.6.1.6.3.1.1.5.1
+| $ snmpinform -v2c -c public udp:demo.snmplabs.com 0 1.3.6.1.6.3.1.1.5.1
| $ snmpinform -v2c -c public udp6:[::1] 0 1.3.6.1.6.3.1.1.5.1
"""#
@@ -67,7 +67,7 @@ transportDispatcher.registerTransport(
udp.domainName, udp.UdpSocketTransport().openClientMode()
)
transportDispatcher.sendMessage(
- encoder.encode(trapMsg), udp.domainName, ('195.218.195.228', 162)
+ encoder.encode(trapMsg), udp.domainName, ('demo.snmplabs.com', 162)
)
transportDispatcher.jobStarted(1)
diff --git a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py
index a821f86b..e662fc72 100644
--- a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py
+++ b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py
@@ -18,7 +18,7 @@ following options:
The following Net-SNMP commands will produce similar SNMP notification:
-| $ snmptrap -v1 -c public udp:195.218.195.228 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345
+| $ snmptrap -v1 -c public udp:demo.snmplabs.com 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345
| $ snmptrap -v1 -c public udp6:[::1] 1.3.6.1.4.1.20408.4.1.1.2 127.0.0.1 1 0 12345
"""#
@@ -53,7 +53,7 @@ transportDispatcher.registerTransport(
udp.domainName, udp.UdpSocketTransport().openClientMode()
)
transportDispatcher.sendMessage(
- encoder.encode(trapMsg), udp.domainName, ('195.218.195.228', 162)
+ encoder.encode(trapMsg), udp.domainName, ('demo.snmplabs.com', 162)
)
# UDP/IPv6