Community discussions

MikroTik App
 
User avatar
hecklertm
Member Candidate
Member Candidate
Topic Author
Posts: 165
Joined: Fri Jun 24, 2005 5:12 am
Location: US

Time wrong in log

Fri Apr 14, 2006 10:57 pm

I have several router which work fine, but I have one router which the log entries are 1 hour earler than the time on the router. Here is a print out to prove.
[admin@hypewifi0008] system clock> /log pr                                     
dec/31/1999 18:00:34 dhcp,info,debug dhcp-client on ether1 got IP address 
    192.168.1.100 
dec/31/1999 18:00:34 system,info dns changed 
13:42:38 system,info,account user admin logged in from 192.168.1.103 via ssh 
13:44:01 system,info new script scheduled by admin 
13:44:02 system,info new script scheduled by admin 
13:44:59 script,info Router IP Update hypewifi0008 10.100.8.1/24 
13:46:02 system,info script removed from scheduler 
13:46:02 system,info new script scheduled 
13:46:02 system,info script removed from scheduler 
13:46:02 system,info new script scheduled 
13:47:21 system,info,account user admin logged out from 192.168.1.103 via ssh 
13:47:29 system,info,account user admin logged in from 192.168.1.103 via ssh 
13:49:04 script,info Router IP Update hypewifi0008 10.100.8.1/24 
[admin@hypewifi0008] system clock> pr                                          
        time: 14:49:27
        date: apr/14/2006
   time-zone: -06:00
  dst-active: yes
[admin@hypewifi0008] system clock> 
As you can see above, it is a rb532 (since it cant keep time after reboot) and when the ntp update has finished, the time is updated in the next log entries. Then I do a print of the system clock, and you see the correct time in the router is actually one hour later than the log entry for a few seconds earlier.

The router is using 2.9.18, as are several other routers which are identically configured and do not have this problem. Should I just try reloading the code and reconfiguring from scratch... Has anybody had probems like this?
 
User avatar
hecklertm
Member Candidate
Member Candidate
Topic Author
Posts: 165
Joined: Fri Jun 24, 2005 5:12 am
Location: US

Sat Apr 15, 2006 3:05 am

BTW: after about 10 minutes, it looks like the router started reporting logs with the correct time....
dec/31/1999 18:00:34 dhcp,info,debug dhcp-client on ether1 got IP address      
    192.168.1.100                                                              
dec/31/1999 18:00:34 system,info dns changed                                   
13:42:38 system,info,account user admin logged in from 192.168.1.103 via ssh   
13:44:01 system,info new script scheduled by admin                             
......... "10 minutes later"
14:54:17 script,info Router IP Update hypewifi0008 10.100.8.1/24  
Any idea why it took 10 minutes before it started showing the correct time in the log entries? Why would it take more time for NTP to update the time for logging purposes?

Who is online

Users browsing this forum: Bing [Bot], Cvatter and 26 guests