1828936 Members
2280 Online
109986 Solutions
New Discussion

NTP problem?

 
B. Jen
Contributor

NTP problem?

After I run the NTPDATE command, the offset is 169.151566. My system clok did not adjust to the correct time. Any suggestions? Thank you in advance for answers.

3 REPLIES 3
Rita C Workman
Honored Contributor

Re: NTP problem?

If your clock is too far off, I find it helpful to hand set it closer. Then it can catch up properly.
Of course make sure you do this at an appropriate time.

Just a thought,
Rita
Steven E. Protter
Exalted Contributor

Re: NTP problem?

ntpq -p

This commands output might help you understand whats going on.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Charles Holland
Trusted Contributor

Re: NTP problem?

Bernard,

First ask do you really want to use the command NTPDATE? I would strongly suggest that you might, if you have access to the internet, setup up and start using xntpd. It really is quite simple by editing the /etc/ntpd.conf file and putting in an entry like "server 192.5.41.41" in the approprate place and saving it.
You can go to http://www.eecis.udel.edi and get a full list of time servers, of couse you would want to use one close to you, not one in Australia.

Then enter /sbin/xntpd start to get it going initially. While this is starting up you need to edit /etc/rc.config.d/netdaemons and change the line that says XNTPD=0 to XNTPD=1 so that the process will begin net time you boot your server. Please note that if your clock is > 10 minutes off it will fail as the required adjustment is to far off and you need to make the adjustment as Rita suggested suggested above. Like NOT when you have your database open....bad things can happen.

Now, I may be wrong, but I think that you have to have xntpd running before the command that Stephen gave you will work. So start with getting xntp working first. Many posting on how to do this in ITRC also.

Regards,

P.S. you might catch up on your points also.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein