From 1092327eaae519d23713785865bc0330f39ba7fb Mon Sep 17 00:00:00 2001 From: elie Date: Mon, 23 Sep 2013 12:45:46 +0000 Subject: fix to local interface address and port query existing OID --- .../twisted/manager/cmdgen/getnext-v2c-from-specific-address.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/v3arch/twisted/manager/cmdgen/getnext-v2c-from-specific-address.py') 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 0ca40c7..0b7f88a 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 @@ -6,7 +6,7 @@ # using Twisted framework for network transport # over IPv4/UDP # to an Agent at 195.218.195.228:161 -# sending packets from local interface 127.0.0.1, local port 1024 +# sending packets from any local interface (0.0.0.0), local port 61024 # for two OIDs in tuple form # stop on end-of-mib condition for both OIDs # @@ -42,7 +42,7 @@ config.addTargetParams(snmpEngine, 'my-creds', 'my-area', 'noAuthNoPriv', 1) config.addTransport( snmpEngine, udp.domainName, - udp.UdpTwistedTransport().openClientMode(('127.0.0.1', 1024)) + udp.UdpTwistedTransport().openClientMode(('0.0.0.0', 61024)) ) config.addTargetAddr( snmpEngine, 'my-router', @@ -87,7 +87,7 @@ def cbFun(cbCtx): df = cmdgen.NextCommandGenerator().sendReq( snmpEngine, 'my-router', - ( ('1.3.6.1.2.1.1', None), ('1.3.6.1.4.1.1', None) ) + ( ('1.3.6.1.2.1.1', None), ('1.3.6.1.2.1.11', None) ) ) # Register error/response receiver function at deferred -- cgit v1.2.1