Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

General • no NTP update after reboot RouterOS v7 hAP ax³

$
0
0
Hi all,

i would like to force an ntp update/sync directly after reboot on an hAP ax³ running RouterOS v7 with container mode. I is crucial for me the system gets the correct time immediately after reboot for my container application and logging.

As far as i understand, the ntp client syncs about every 3 hours, so after a reboot i have a wrong system time for about that time? See following log example
/IP/Cloud time sync is deactivated.

Here is an example of one of my Systems with relevant logs from yesterday, reboot and NTP update:
Code:
Feb/15/2024 12:37:58 system,error,critical router rebooted without proper shutdown, probably power outageFeb/15/2024 14:20:10 system,critical,info ntp change time Feb/15/2024 12:38:19 => Feb/15/2024 14:20:10
Last Log entry, then reboot, i think it startet with the time of the last ntp update, maybe?
Code:
Feb/15/2024 16:43:39 dhcp,info defconf assigned 10.10.111.190 for E8:6F:38:91:24:B5 ALLNB008Feb/15/2024 14:20:20 system,error,critical router rebooted without proper shutdown, probably power outage
...rebooted again --> and again startet with the same time, then ntp update nearly three hours later:
Code:
Feb/15/2024 14:20:20 system,error,critical router rebooted without proper shutdown, probably power outageFeb/15/2024 17:11:42 system,critical,info ntp change time Feb/15/2024 14:24:42 => Feb/15/2024 17:11:42

So an easy fix would be to force an ntp update after reboot, but i did not find a solution
Should i disable and reenable ntp via boot up script? Any recommendations would help, thanks in advance

Statistics: Posted by Stuebi — Fri Feb 16, 2024 10:35 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles