summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v3arch/asyncore/manager/cmdgen/v2c-set.py')
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/v2c-set.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py
index 8a084b20..0afe122e 100644
--- a/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py
+++ b/examples/v3arch/asyncore/manager/cmdgen/v2c-set.py
@@ -5,12 +5,12 @@ Set scalar value
Send a SNMP SET request
* with SNMPv2c with community name 'private'
* over IPv4/UDP
-* to an Agent at 195.218.195.228:161
+* to an Agent at 104.236.166.95:161
* for an OID in tuple form and an integer-typed value
This script performs similar to the following Net-SNMP command:
-| $ snmpset -v2c -c private -ObentU 195.218.195.228:161 1.3.6.1.2.1.1.9.1.4.1 t 123
+| $ snmpset -v2c -c private -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.9.1.4.1 t 123
"""#
from pysnmp.entity import engine, config
@@ -44,7 +44,7 @@ config.addTransport(
)
config.addTargetAddr(
snmpEngine, 'my-router',
- udp.domainName, ('195.218.195.228', 161),
+ udp.domainName, ('104.236.166.95', 161),
'my-creds'
)