summaryrefslogtreecommitdiff
path: root/examples/v1arch
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-07-30 23:30:35 +0200
committerIlya Etingof <etingof@gmail.com>2016-07-30 23:30:35 +0200
commitf63149c9385bd42bb71bfea490ee526a422660ac (patch)
tree4cf3e913c470f713d4dfbcd8f9ff95173d0fc49b /examples/v1arch
parentb373b1d647fcb95f63d994c9aa72c5bb22354f58 (diff)
downloadpysnmp-git-f63149c9385bd42bb71bfea490ee526a422660ac.tar.gz
updated IP address for demo.snmplabs.com in examples
Diffstat (limited to 'examples/v1arch')
-rw-r--r--examples/v1arch/asyncore/agent/ntforg/send-inform-over-ipv4-and-ipv6.py2
-rw-r--r--examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py2
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py4
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py4
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py4
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py6
-rw-r--r--examples/v1arch/asyncore/manager/cmdgen/v2c-set.py4
7 files changed, 13 insertions, 13 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 138da0c4..efa8151d 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
@@ -8,7 +8,7 @@ The following script sends SNMP INFORM notification using the following options:
* with community name 'public'
* over IPv4/UDP and IPv6/UDP
* send INFORM notification
-* to a Manager at 195.218.195.228:162 and [::1]:162
+* to a Manager at demo.snmplabs.com:162 and [::1]:162
* with TRAP ID 'coldStart' specified as an OID
The following Net-SNMP command will produce similar SNMP notification:
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 314e0e61..695adc2e 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
@@ -9,7 +9,7 @@ following options:
* with community name 'public'
* over IPv4/UDP and IPv6/UDP
* send TRAP notification
-* to a Manager at 195.218.195.228:162 and [::1]
+* to a Manager at demo.snmplabs.com:162 and [::1]
* with TRAP ID 'coldStart' specified as an OID
* include managed objects information:
* with default Uptime value
diff --git a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
index a61b51fa..9dd8fcc4 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/fetch-scalar-value.py
@@ -6,12 +6,12 @@ Perform SNMP GET operation with the following options:
* with SNMPv1, community 'public'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at demo.snmplabs.com:161
* for OIDs in tuple form
This script performs similar to the following Net-SNMP command:
-| $ snmpget -v1 -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0
+| $ snmpget -v1 -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0
"""#
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
diff --git a/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py
index 8bb91c2c..dd8466af 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/getbulk-pull-whole-mib.py
@@ -6,13 +6,13 @@ Perform SNMP GETBULK operation with the following options:
* with SNMPv2c, community 'public'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at demo.snmplabs.com:161
* for OID in tuple form
* with non-repeaters=0 and max-repeaters=25
This script performs similar to the following Net-SNMP command:
-| $ snmpbulkwalk -v2c -c public -ObentU -Cn0 -Cr25 195.218.195.228 1.3.6
+| $ snmpbulkwalk -v2c -c public -ObentU -Cn0 -Cr25 demo.snmplabs.com 1.3.6
"""#
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
diff --git a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
index 84a2b09b..c18b356a 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/getnext-pull-whole-mib.py
@@ -6,12 +6,12 @@ Perform SNMP GETNEXT operation with the following options:
* with SNMPv1, community 'public'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at demo.snmplabs.com:161
* for OID in tuple form
This script performs similar to the following Net-SNMP command:
-| $ snmpwalk -v1 -c public -ObentU 195.218.195.228 1.3.6
+| $ snmpwalk -v1 -c public -ObentU demo.snmplabs.com 1.3.6
"""#
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
diff --git a/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py b/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py
index 929ff771..1eb0ad3d 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/spoof-source-address.py
@@ -6,13 +6,13 @@ Send SNMP GET request from a non-local IP address:
* with SNMPv2c, community 'public'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at 104.236.166.95:161
* from a non-local, spoofed IP 1.2.3.4 (root and Python 3.3+ required)
* for OIDs in string form
This script performs similar to the following Net-SNMP command:
-| $ snmpget -v2c -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0
+| $ snmpget -v2c -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1.1.0 1.3.6.1.2.1.1.3.0
But unlike the above command, this script issues SNMP request from a
non-default, non-local IP address.
@@ -35,7 +35,7 @@ from pyasn1.codec.ber import encoder, decoder
from time import time
# Send request message to this address
-transportAddress = udp.UdpTransportAddress(('195.218.195.228', 161))
+transportAddress = udp.UdpTransportAddress(('104.236.166.95', 161))
# Send request message from this non-local (!) IP address
transportAddress.setLocalAddress(('1.2.3.4', 0))
diff --git a/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py
index 08e277a1..4122a3c7 100644
--- a/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py
+++ b/examples/v1arch/asyncore/manager/cmdgen/v2c-set.py
@@ -6,12 +6,12 @@ Perform SNMP SET operation with the following options:
* with SNMPv2c, community 'public'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at demo.snmplabs.com:161
* for OIDs in string form and values in form of pyasn1 objects
This script performs similar to the following Net-SNMP command:
-| $ snmpset -v2c -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.9.1.3.1 s 'New description' 1.3.6.1.2.1.1.9.1.4.1 t 12
+| $ snmpset -v2c -c public -ObentU demo.snmplabs.com 1.3.6.1.2.1.1.9.1.3.1 s 'New description' 1.3.6.1.2.1.1.9.1.4.1 t 12
"""#
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher