Link to home
Create AccountLog in
Avatar of alisher23
alisher23

asked on

How do I synchronize clock of two servers

i got 2 AIX Servers with OS time differing by 1.5 min.  I want to Sync both Server OS times. Please let me get Solution on This.
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ntpdate sets the date and time using the Network Time Protocol (NTP)

Example:
/usr/sbin/ntpdate 128.9.176.30

NTP server list - http://support.ntp.org/bin/view/Servers/StratumOneTimeServers
Hi,

Both servers should point to ntp server to synchronize time. If you are just worried about having the same time on both servers regardless of it being accurate (sync to global time), then one server can sync time from the other server.


Please see the link below to  setup ntp:

http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/ntp-network-time-protocol-set-up-on-aix-52-944293
I tried this on my AIX server today.

/usr/sbin/ntpdate -b 192.5.41.209
10 Oct 07:30:44 ntpdate[499902]: step time server 192.5.41.209 offset 0.194082

You could add this to your crontab file to update every 30 minutes.

30 * * * * /usr/sbin/ntpdate -b 192.5.41.209 > /dev/null
if you want to quickly synchronize clocks between systems, you can simply use
   # rdate <remote-sys>
to set your system's clock to the time of remote-sys. See rdate(1) man page.

Avatar of alisher23
alisher23

ASKER

I got it. Thanks for all of you.