diff options
author | elie <elie> | 2013-05-05 12:43:52 +0000 |
---|---|---|
committer | elie <elie> | 2013-05-05 12:43:52 +0000 |
commit | a24efbe404b42450209fa96254ca25e472119a5d (patch) | |
tree | 1a6f41c3a04a0451d390fadfc230ae45b0c97360 /examples/v3arch/twisted/manager/cmdgen/get-v1.py | |
parent | 0504f5440037ae48dac865e3f59f762aeb2f9715 (diff) | |
download | pysnmp-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-v1.py')
-rw-r--r-- | examples/v3arch/twisted/manager/cmdgen/get-v1.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/twisted/manager/cmdgen/get-v1.py b/examples/v3arch/twisted/manager/cmdgen/get-v1.py index 9821942..8a96358 100644 --- a/examples/v3arch/twisted/manager/cmdgen/get-v1.py +++ b/examples/v3arch/twisted/manager/cmdgen/get-v1.py @@ -5,12 +5,12 @@ # with SNMPv1, community 'public' # 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 -v1 -c public -ObentU 127.0.0.1 1.3.6.1.2.1.1.1.0 +# $ snmpget -v1 -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1.1.0 # from twisted.internet import reactor, defer from pysnmp.entity import engine, config @@ -47,7 +47,7 @@ config.addSocketTransport( ) config.addTargetAddr( snmpEngine, 'my-router', - udp.domainName, ('127.0.0.1', 161), + udp.domainName, ('195.218.195.228', 161), 'my-creds' ) |