Operating System - HP-UX
1753504 Members
4941 Online
108794 Solutions
New Discussion

Re: date doesnâ t sync with our ntp server

 
shell script_1
Advisor

date doesnâ t sync with our ntp server

server : rx6600

os : hpux 11iv3

date doesnâ t sync with our ntp server although the service is UP and pointed to the ntp device
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: date doesnâ t sync with our ntp server

Hi:

The asterisk ("*") next to the server name indicates that that server has been selected for synchronization. It takes some time for NTP to ascertain the characteristics of the time source and the correct difference between your server's time and the NTP source. Be patient.

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: date doesnâ t sync with our ntp server

Your ntpq query shows that your system and the NTP server are in sync. Verify the current UTC time and date with date -u. If the time reported is off by 30 minutes or 60 minutes, then you must check your TZ value. HP-UX only keeps UTC (aka, GMT) time. The UTC value is translated for you by the rules specified in /usr/lib/tztab. Look also at syslog.log to find any ntp error messages.


Bill Hassell, sysadmin
Chui Kock You_1
Frequent Advisor

Re: date doesnâ t sync with our ntp server

Hi Bill & James,

Thank for the help.

I only it at 11am to now almost 6pm but it still doesnâ t syncâ ¦

Are you sure it need more than 1 day to sync the date within the LAN?

Still 1 hour different from the ntp device timeâ ¦

Any help is appreciated.

Thank
Chui
Bill Hassell
Honored Contributor

Re: date doesnâ t sync with our ntp server

> Still 1 hour different from the ntp device time

NTP will not sync if the time difference is more than 10-15 minutes. However, as I mentioned above, if the time is off by 60 minutes (an hour), you probably have the wrong timezone set up.

What is the result of date -u?
What is the value of $TZ?

date -u shows the server's time. This time is in Zulu or UTC time (also called GMT). Look up the UTC time on the Internet like this:

http://www.time.gov/timezone.cgi?UTC/s/0/java

If this matches the time reported by date -u, your server is correct, but your TZ value is incorrect. Change the TZ value in /etc/TIMEZONE by using the rules in /usr/lib/tztab.

NOTE: If you are not keeping up to date on patches, your tztab file may not be accurate for your timezone. What timezone are you in?


Bill Hassell, sysadmin