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/getnext-v2c-from-specific-address.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/getnext-v2c-from-specific-address.py')
-rw-r--r-- | examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py b/examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py index 46eb0d3..7e0f987 100644 --- a/examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py +++ b/examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py @@ -5,14 +5,14 @@ # with SNMPv2c, 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 # sending packets from local interface 127.0.0.1, local port 1024 # for two OIDs in tuple form # stop on end-of-mib condition for both OIDs # # This script performs similar to the following Net-SNMP command: # -# $ snmpwalk -v2c -c public -ObentU 127.0.0.1 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +# $ snmpwalk -v2c -c public -ObentU 195.218.195.228 1.3.6.1.2.1.1 1.3.6.1.4.1.1 # from twisted.internet import reactor, defer from pysnmp.entity import engine, config @@ -50,7 +50,7 @@ config.addSocketTransport( ) config.addTargetAddr( snmpEngine, 'my-router', - udp.domainName, ('127.0.0.1', 161), + udp.domainName, ('195.218.195.228', 161), 'my-creds' ) |