diff options
Diffstat (limited to 'examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py')
-rw-r--r-- | examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py index 2d6805fa..e55df0f7 100644 --- a/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py +++ b/examples/v3arch/asyncore/manager/cmdgen/send-packets-from-specific-interface.py @@ -6,14 +6,14 @@ Send a series of SNMP GETNEXT requests with the following options: * with SNMPv2c, community 'public' * over IPv4/UDP -* to an Agent at 195.218.195.228:161 +* to an Agent at 104.236.166.95:161 * sending packets from primary local interface 0.0.0.0, local port 61024 * 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 195.218.195.228 1.3.6.1.2.1.1 1.3.6.1.4.1.1 +| $ snmpwalk -v2c -c public -ObentU 104.236.166.95 1.3.6.1.2.1.1 1.3.6.1.4.1.1 """# from pysnmp.entity import engine, config @@ -46,7 +46,7 @@ config.addTransport( ) config.addTargetAddr( snmpEngine, 'my-router', - udp.domainName, ('195.218.195.228', 161), + udp.domainName, ('104.236.166.95', 161), 'my-creds' ) |