summaryrefslogtreecommitdiff
path: root/examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py
diff options
context:
space:
mode:
authorelie <elie>2013-05-05 12:43:52 +0000
committerelie <elie>2013-05-05 12:43:52 +0000
commita24efbe404b42450209fa96254ca25e472119a5d (patch)
tree1a6f41c3a04a0451d390fadfc230ae45b0c97360 /examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py
parent0504f5440037ae48dac865e3f59f762aeb2f9715 (diff)
downloadpysnmp-a24efbe404b42450209fa96254ca25e472119a5d.tar.gz
most of Command Generator examples re-pointed to a live SNMP Agent
at demo.snmplabs.com to ease experimentation and adoption
Diffstat (limited to 'examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py')
-rw-r--r--examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py b/examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py
index acfbfbd..47c9ca9 100644
--- a/examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py
+++ b/examples/v3arch/twisted/manager/cmdgen/get-v3-custom-context.py
@@ -7,12 +7,12 @@
# contextName: my-context
# using Twisted framework for network transport
# over IPv4/UDP
-# to an Agent at 127.0.0.1:161
+# to an Agent at 195.218.195.228: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 8000000001020304 -n my-context -ObentU 127.0.0.1:161 1.3.6.1.2.1.1.1.0
+# $ snmpget -v3 -l authNoPriv -u usr-md5-none -A authkey1 -E 8000000001020304 -n my-context -ObentU 195.218.195.228:161 1.3.6.1.2.1.1.1.0
#
from twisted.internet import reactor, defer
from pysnmp.entity import engine, config
@@ -51,7 +51,7 @@ config.addSocketTransport(
)
config.addTargetAddr(
snmpEngine, 'my-router',
- udp.domainName, ('127.0.0.1', 161),
+ udp.domainName, ('195.218.195.228', 161),
'my-creds'
)