1834154 Members
2745 Online
110064 Solutions
New Discussion

Auto Correct Time

 
SOLVED
Go to solution
Ed Hon
Regular Advisor

Auto Correct Time

With HP-UX 11.00, is there something I can run on cron, which would get the correct time from a time server on the Internet and adjust my system clock accordingly, taking into account any network transmission delays? Thanks.
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: Auto Correct Time

You may want to take a look at xntp for this.
man xntpd.

This comes standard with HP-UX.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Frederic Soriano
Honored Contributor

Re: Auto Correct Time

Ed,

You can use xntp that will provide such features.

If you want to run it from cron, you may use the ntpdate(1M) command like this:

ntpdate server1 server2 ...

The more the servers, the most accurate time you will get.

Best regards.

Fred.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Auto Correct Time

Hi Ed:

An excellent, easy-to-use guide to setting up Network Time Protocol (ntp) services can be found in the "Installing and Administering Internet Services" manual:

http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html

You can configure one of your own servers to serve as a local time source, propagating it to others in your network, or you can establish connectivity to an external source to which you can synchronize and propagate time.

For a good list of time sources, see:

http://www.eecis.udel.edu/~mills/ntp/clock1.htm

I use the USNO (US Naval Observatory) sources to which to synchronize one of my servers, and then specify that server as the upper stratum for my others. This is easy to setup.

...JRF...
Bruce Regittko_1
Esteemed Contributor

Re: Auto Correct Time

Hi,

In addition the xntpd man page, check out

http://www.eecis.udel.edu/~ntp

Lots of information as well as lists of public timeservers.

--Bruce
www.stratech.com/training