Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Synchronization

Status
Not open for further replies.

tovohery

Technical User
Jul 25, 2006
45
I want to synchronize my AIX 5.3 server with the server NTP windows using the ntpdate commande but there was a difference about 9 hours after synchro. here is my script and the result

# date
Tue Apr 10 18:58:06 CDT 2007

# ntpdate 192.168.10.212
10 Apr 09:58:19 ntpdate[499828]: step time server 192.168.10.212 offset -32399.029904 sec

# date
Tue Apr 10 09:58:24 CDT 2007

My time zone is GMT + 3

Any help?
Regards
 
I'm not quite sure whether that's the problem in your case but we have noticed in our environment that if the time difference is too great ntp won't work. We had to set the date manually to match the server time once and after that ntp started to synchronize.

I believe ntp said something like "offset too large" somewhere ...

Regards,
Thomas
 
Assuming ssh works then
Code:
ssh remote_server $(date +%m%d%H%M)
will get things in synch before using ntpdate to get it spot on.

Ceci n'est pas une signature
Columb Healy
 
ntpdate is to sync in authoritative way, the sychronization is immediate.

You should use NTPD so edit /etc/ntp.conf.

To start:

startsrc –s xntpd

To stop:
stopsrc –s xntpd

If there's any problem with the sync process you should take into account TIMEZONE from the server does not match with the TIMEZONE of the client.

To find out the TZ:

cat /etc/environment

In my point of view you might be using ntpdate and ntpd in the same machine.

I hope this help you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top