Hi,

your log output just proves that the clocks are running at different speeds:
After 11038 - 4 = 11034 seconds ~ 3hours of runtime, the clock
difference increased by 1170127 - 1170238 = -111 seconds. Or you can
calculate 1737896 - 1726970 - 11034 = -108 seconds. But we do not see,
if the device answers the requests that return null.

The information we would need now is the wireshark output for the
requests that do return null. What I want to see is: does the device
answer at all? Or does it simply ignore the requests.

The log output of SNMP4j for a request with a null response would also help.

Can you tell us which side has the too slow/too fast clock?

Regards,
  Jochen


> Thanks again for your help. I added some debug statements to my code. It
> appears the engine boots are not changing. Unless I'm looking in the wrong
> spot. Below shows what Im doing in the test. The app basically polls a
> device every 10seconds and prints out the timeEntry info and then does a
> get request. Everything works for a few hours but when the timedrift
> happens all the requests are returning null. I noticed the timeDiff right
> off the bat is off. Is this normal?

> 
> Output:
> //This is the output near the start of the application
> 50:00:00:09:03:00:00:00:00:00:00:00 timeTable.getEngineBoots() = 0
> timeTable.getEngineTime() = 4 timeEntry.getEngineBoots() = 1
> timeEntry.getLatestReceivedTime() =1726970 timeEntry.getTimeDiff() = 1170238
> 
> 
> //This is the output of the last successful request.
> 50:00:00:09:03:00:00:00:00:00:00:00 timeTable.getEngineBoots() = 0
> timeTable.getEngineTime() = 11038 timeEntry.getEngineBoots() = 1
> timeEntry.getLatestReceivedTime() =1737896 timeEntry.getTimeDiff() = 1170127
> 
> //between these two requests there was a 3min shift shown by some logging
> in my code
> 
> //This is the output when all the requests start to return null
> 50:00:00:09:03:00:00:00:00:00:00:00 timeTable.getEngineBoots() = 0
> timeTable.getEngineTime() = 11527 timeEntry.getEngineBoots() = 1
> timeEntry.getLatestReceivedTime() =1737896 timeEntry.getTimeDiff() = 1170127
> 
_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to