How Can We Help?

Print

NTP Time Synchronization with ACE-GTW-4G

 

NTP (Network Time Protocol) is an Internet protocol used to synchronise clocks, machines and other IT equipment on different systems across an IP network.

Time synchronisation is important in order to obtain consistent data, but especially when using an SSL certificate. If the time difference between the client and SSL server is too great, the connection will be refused.

 

About Time Synchronization

You can use these IP address as NTP server candidates

  • 51.178.43.227
  • 162.159.200.123

Or leave the default values if you have a DNS IP configured:

  • 0.openwrt.pool.ntp.org
  • 1.openwrt.pool.ntp.org
  • 2.openwrt.pool.ntp.org
  • 3.openwrt.pool.ntp.org

Force Time Synchronization

To force the time synchronization every month at 02:00 AM on day 1 of the month, you can add this:

In System > Scheduled Tasks, paste this line:

  • 0 2 1 * * /etc/init.d/sysntpd restart

Every day at midnight

  • 0 0 * * * /etc/init.d/sysntpd restart
  •  
  •  
  •  

Then, save and restart the gateway

Examples of time specification

min
0-59
hour
0-23
day/m
1-31
month
1-12
day/w*
0-6
Cron Description
*/5 * * * * */5 * * * * Every 5 minutes
12 */3 * * * 12 */3 * * * Every 3 hours at 12 minutes
57 11 15 1,6,12 * 57 11 15 1,6,12 * At 11:57 Hrs on 15th of Jan, June & Dec
25 6 * * 1-5 25 6 * * 1-5 At 6:25 AM every weekday (Mon-Fri)
0 0 4,12,26 * * 0 0 4,12,26 * * At midnight on 4th, 12th and 26th of every month
5,10 9,14 10 * 0,4 5,10 9,14 10 * 0,4 At 9:05AM, 9:10AM, 2:05PM and 2:10PM every Sunday and Thursday

* 0 (zero) = Sunday

Cron Description
0 0 1 1 * Every year at midnight  on day 1 of the month, only in January
0 0 1 * * Every month at midnight on day 1 of the month
0 0 * * 0 Every week at midnight on Sunday
0 0 * * * Every day at midnight
0 * * * * Every hour

You can test your Cron here: https://crontab.cronhub.io/

Note: Don’t make the cron job for restart at the same time as the cron job for NTP synchronisation