summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py')
-rw-r--r--examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py
index 1f3fdaf2..d6e869a1 100644
--- a/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py
+++ b/examples/v3arch/asyncore/manager/cmdgen/custom-contextengineid-and-contextname.py
@@ -9,12 +9,12 @@ Send a SNMP GET request with the following options:
* contextEngineId: 0x80004fb805636c6f75644dab22cc,
* contextName: da761cfc8c94d3aceef4f60f049105ba
* 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
This script performs similar to the following Net-SNMP command:
-| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 80004fb805636c6f75644dab22cc -n da761cfc8c94d3aceef4f60f049105ba -ObentU 195.218.195.228:161 1.3.6.1.2.1.1.1.0
+| $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 80004fb805636c6f75644dab22cc -n da761cfc8c94d3aceef4f60f049105ba -ObentU 104.236.166.95:161 1.3.6.1.2.1.1.1.0
"""#
from pysnmp.entity import engine, config
@@ -49,7 +49,7 @@ config.addTransport(
)
config.addTargetAddr(
snmpEngine, 'my-router',
- udp.domainName, ('195.218.195.228', 161),
+ udp.domainName, ('104.236.166.95', 161),
'my-creds'
)