Community discussions

MikroTik App
 
eldoncito2019
Member
Member
Topic Author
Posts: 332
Joined: Fri Jun 14, 2019 1:07 pm

with a script can I know when my router synchronizes the internet time?

Tue Oct 18, 2022 6:04 pm

Guys
with a script can I know when my router synchronizes the internet time?, I ask because when the RB restarts sometimes it takes several minutes to synchronize the correct time, I want to know in the script that exact time. Thanks for replying and helping me.




EL DONCITO.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3279
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Possible solution

Tue Oct 18, 2022 6:10 pm

Why.

What con you do different if you know the exact time when the router is synchronized?

Command to see status:
:put [/system/ntp/client/get status]
synchronized
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: Possible solution

Tue Oct 18, 2022 6:13 pm

When you use NTP servers to synchronize the time, a message is logged when the time is reset to a different value, which normally happens when you reboot.
So configure some NTP servers and optionally remove the cloud time sync.
 
eldoncito2019
Member
Member
Topic Author
Posts: 332
Joined: Fri Jun 14, 2019 1:07 pm

Re: Possible solution

Tue Oct 18, 2022 6:26 pm

When you use NTP servers to synchronize the time, a message is logged when the time is reset to a different value, which normally happens when you reboot.
So configure some NTP servers and optionally remove the cloud time sync.


That is where the detail is, I have not been able to configure an NTP server and I get the time is from the cloud




EL DONCITO.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: with a script can I know when my router synchronizes the internet time?

Wed Oct 19, 2022 11:09 am

Why not?
 
eldoncito2019
Member
Member
Topic Author
Posts: 332
Joined: Fri Jun 14, 2019 1:07 pm

Re: with a script can I know when my router synchronizes the internet time?

Wed Oct 19, 2022 1:06 pm

Is there a way to do it when you sync the time from the cloud





EL DONCITO.

Who is online

Users browsing this forum: No registered users and 13 guests