Sync Layer7 Server Time with NTP (Network Time Protocol) Server
search cancel

Sync Layer7 Server Time with NTP (Network Time Protocol) Server


Article ID: 132025


Updated On:


STARTER PACK-7 CA Rapid App Security CA API Gateway


How can I sync the Layer7 server time with the NTP (Network Time Protocol) server?


Release: L7SGA299000-9.3-API Gateway SOA Gateway-HARDWARE APPLIANCE DUAL CPU


Here's how you force the Layer7/NTP sync: 
1) #vi /etc/sysconfig/ntpd 

At the top of the file there will be an OPTIONS variable with something like: 
OPTIONS="-u ntp:ntp -p /var/run/" 

2) Modify it and add the -x parameter: 
OPTION="-x -u ntp:ntp -p /var/run/" 

3) Then restart the service: 
#service ntpd restart 
#service ntpd stop
#service ntpd start
This will force the NTP daemon to re-sync every time you restart the service. You can either leave the -x in there permanently or just add it when you need it. 

Additional Information

If the server is still out of sync by a minute or so, run the following commands:

service ntpd stop
ntpdate -v
service ntpd start

Replace '' with the appropriate NTP server name. This command should force a clock update.