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?
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.
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
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
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.
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?
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?