[SNMP4J] Subagent startup question

Meluch, Ray RWM at dolby.com
Thu Dec 14 18:37:51 CET 2006


Hi all,

I'm trying out AgentX to run under Linux, and am having trouble getting
the test cases to come up cleanly.

I've created .jars for the TestMaster and TestSubagent; I invoke the
master first, then the subagent (ubuntu 6.06) :
% sudo java -jar SNMP4J-agentX-master.jar 10.201.1.98/161
10.201.1.98/705 &
% sudo java -jar SNMP4J-agentX-subagent.jar 10.201.1.98/705 &

When the subagent connects to the master, it sends an OpenPDU. The
master responds, but the subagent times out waiting for a response. The
subagent seems to be listening to 0.0.0.0/0 instead of the given
masterAddress, and missing the msg as a consequence.

The empty address is the value of the subagent's localAddress. What is
the role of this element of the subagent? Do I need to add any
localizing information to the code to get the subagent working
correctly?

When later attempting to query the master agent using SNMP4J, it does
not respond, and the request times out.

java -jar SNMP4J.jar -c private -v 2c -p GETBULK -Ow udp:localhost/161
"1.3.6.1.2"

DEC 14, 2006 9:33:33 AM org.snmp4j.log.JavaLogAdapter log
INFO: UDP receive buffer socket size for 127.0.0.1/0 is set to: 52736
 
Total requests sent:    1
Total objects received: 0
Total walk time:        2011 milliseconds
Request timed out.

Again, dealing with port 0 ... ???


I'm new to AgentX, and I think the problems must be due to some small
misconfiguration error - I see no other reports here of such basic
problems. Any insights gratefully received and appreciated.

Thanks,

Ray Meluch





-----------------------------------------
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose.  If you
are not the intended recipient, delete this message.  If you are
not the intended recipient, disclosing, copying, distributing, or
taking any action based on this message is strictly prohibited.



More information about the SNMP4J mailing list