top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Hardware clock time setting with NTP

+1 vote
647 views

I would like to sync my CentOS 6.3 hardware clock time to my NTP server's time. Can I do that without reboot the hosts?

Does anyone has the steps to do that?

posted Dec 2, 2013 by Seema Siddique

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

3 Answers

+2 votes

Following are the steps

ntpdate 
service ntpd restart

Before doing ntpdate adjust the clock to within a minute of network time. Otherwise it will take some time to adjust. Hope it helps.

answer Dec 2, 2013 by Satish Mishra
+1 vote

Try this using root privs:

/etc/init.d/ntpd stop
/usr/sbin/ntpdate 2.us.pool.ntp.org # (or any other local public ntp server)
/sbin/hwclock --systohc
/etc/init.d/ntpd start
answer Dec 2, 2013 by Anderson
+1 vote

I suggest to use the client way to sync your time. Compared to the ntpd way it will not listen on specific network port. Client way means using the /etc/rc.d/init.d/ntpdate service configured in /etc/ntp/step-tickers and /etc/sysconfig/ntpdate. Enabled it via

$ chkconfig ntpdate on && service ntpdate start
answer Dec 2, 2013 by Bob Wise
Similar Questions
+3 votes

How to set up timing if NTP was block by ISP? I have try many way such as link the timezone , getting from the hardware clock. However, it is not the solution.

Please advice.

+6 votes

I want to write NTP client which sends and receives NTP packet to NTP server and should read the value from one of the four offsets and convert it to user readable local or GMT time format, I specifically want to know which offsets should I read in order to get correct timestamp from the packet.

Any suggestions?

+1 vote

For a long time I have been doing:

/etc/locale.conf change: LANG="en_US.UTF-8"
LANG="en_GB.UTF-8"

To make Thunderbird list messages with 24 hour time. Can someone suggest a better way to accomplish this?

...