We help IT Professionals succeed at work.

How do I synchronize clock of two servers

alisher23
alisher23 asked
on
2,719 Views
Last Modified: 2013-11-17
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.
Comment
Watch Question

Data Warehouse / Database Architect
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
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
CERTIFIED EXPERT
Top Expert 2007

Commented:
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
Hanno P.S.IT Consultant and Infrastructure Architect
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
I got it. Thanks for all of you.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.