[SNMP4J] SNMPv3 discovery process questions

Frank Fock fock at agentpp.com
Wed May 9 20:31:52 CEST 2007


Hi Tony,

Does your agent increment the engine boots counter after it
is restarted (i.e., id the engine boots counter is persistently
stored)? This is essential to get the time sync working.

Best regards,
Frank

Tony Willett wrote:
> Hello all,
> 
> I am still trying to figure out an issue I am having with engine boot time
> synchronization.
> 
> I have written an agent application that has an agent object that is loosely
> based on org.snmp4j.agent.BaseAgent. I also have a manager application that
> very closely resembles the example code in the javadocs for org.snmp4j.Snmp.
> I had previously been able to get v3 working between the agent and manager
> for get and set requests. However, if I start the manager more than 150
> seconds after the agent then the agents complains about the engine boot time
> window and responds to the manager with the 1.3.6.1.6.3.15.1.1.2.0 response.
> Frank pointed out that I was probably using the same engine id for manager
> and agent. This was indeed true. I changed the manager engine id to be
> unique. 
> 
> I am currently adding a UsmUser to the agent associated with the agent's
> engine id (authoritative engine id). Likewise I am adding a UsmUser with the
> discovered authoritative engine id. The problem still exists that I can
> connect and get responses to the manager set/get requests, but if I try
> running the manager more than 150 seconds after the agent I get the
> 1.3.6.1.6.3.15.1.1.2.0 response. 
> 
> It appears to me that the auto discovery is not requesting the authoritative
> engine boot time, so it starts at 0 and is out of window. Am I wrong in
> assuming that the auto discovery is supposed to sync the time in the
> manager?
> 
> Thanks for any help,
> 
> Tony Willett
> tonywillett at hotmail.com
>  
> 
> 
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list