Operating System - HP-UX
1848063 Members
5976 Online
104022 Solutions
New Discussion

Re: NTP setup/configuration

 
SOLVED
Go to solution
Larry Scheetz
Advisor

NTP setup/configuration

I need my Hp's to have the same time as our local intel servers. Intels are pulling their time from a server "ntp2.usno.navy.mil" Can I pull from the same place or can I pull it from the local Win2000 server? I need a quick easy guide if anyone has one.

Thanks
Larry
A Happy heart makes the face cheerful
11 REPLIES 11
John Poff
Honored Contributor

Re: NTP setup/configuration

Hi,

You can pull it from the same place if your boxes have access to it, or you can grab it from the W2K server if it is providing ntp services.

We configured our HP-UX boxes to pull it from a local Windows box. Our NT servers didn't have NTP capability, so one of our gurus bought some NTP software for Windows and we just pick up his NTP for free.

JP
Jim Mallett
Honored Contributor

Re: NTP setup/configuration

You could go either from the internet time or your local time. You need to change the settings in your /etc/ntp.conf file.

Here is my setup line in the file:
server ntp2.usno.navy.mil version 3 prefer

Jim
Hindsight is 20/20
Umapathy S
Honored Contributor

Re: NTP setup/configuration

Larry,

read the document /usr/share/NTP_Primer.txt.

you can also check this document
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&con=/hpux/onlinedocs/B2355-90685/00/00/63-con.html&toc=
/hpux/onlinedocs/B2355-90685/00/00/63-toc.html&searchterms=ntp&queryid=20030327-071907

check this thread also.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5f6f9c196a4bd71190080090279cd0f9,00.html

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: NTP setup/configuration

The answer to both your questions is yes - as long as the HP-UX can resolve the hostnames and the ports are not blocked by a firewall.

By far the easist configration is SAM->Time->NTP Network Time Sources->Actions->Add Remote Server or Peer and then Actions->Start NTP.

It's actually better to have multiple time sources. NTP can then better calculate propagation delays.
If it ain't broke, I can fix that.
Paul Sperry
Honored Contributor

Re: NTP setup/configuration

in /etc/ntp.conf add:

server ntp2.usno.navy.mil version 3 prefer

then start ntp

/sbin/init.d/xntpd start

to have it start at boot edit
/etc/rc.config.d/netdaemons

export XNTPD=1
twang
Honored Contributor

Re: NTP setup/configuration

A doc from my company technical library.
Elena Leontieva
Esteemed Contributor

Re: NTP setup/configuration

Larry,

Hope this is what you need: DocId: UOTHKBAN00000796
Bill Douglass
Esteemed Contributor

Re: NTP setup/configuration

Please consider using an alternative time server.

ntp2.usno.navy.mil is considered a stratum 1 server, and generally is reserved for stratum 2 servers to sync to.

Check out the main ntp public servers web site at:

http://www.eecis.udel.edu/~mills/ntp/servers.html

You should be able to find a server that is less busy, as well as being geographically (and topologically) closer to you.

Also, you upstream internet provider probably has one (or more) ntp servers available for you to use.
Donny Jekels
Respected Contributor

Re: NTP setup/configuration

Larry,

you must config 3 files.

1. /etc/rc.config.d/netdaemons
2. /etc/ntp.conf
3. /etc/ntp.drift

then start the puppy by executing

/sbin/init.d/xntpd start

verify

ntpq -p


live free or die
donny
"Vision, is the art of seeing the invisible"
Bill Hassell
Honored Contributor

Re: NTP setup/configuration

I will second the recommendation about picking NTP servers. usno.navy.mil is run by the US Naval Observatory, keepers of world time and although they do not require an authentication ID (yet), it is a good idea to pick stratum 2 servers as mentioned. Also, ALWAYS pick at least 3 to 5 different servers from the Internet. If one or more become unreachable, time will still be accurate. And NTP is so paranoid about accuracy, if any NTP server has a time that is minutes off, that server becomes deselected until time becomes more reasonable. The algorithm is quite complex but very reliable.

Here is a server run by HP that is open to anyone wanting an accurate time source: ntp-cup.external.hp.com (192.6.38.127). It has a local Palisade time source and uses several other stratum 1 and 2 servers to keep accurate time. As always, use ntpq to test potential servers as in:

ntpq -p 192.6.38.127

If you get a response, your firewall allows NTP access.


Bill Hassell, sysadmin
Suresh Patoria
Super Advisor

Re: NTP setup/configuration

Hi,

put the TIME server entry in /etc/hosts file


Edit the /etc/ntp.conf

put the server ntp2.usno.navy.mil
and broadcastclient yes

then edit the /etc/rc.config.d/netdaemons

enable the export XNTPD=1

save the above thing and start the /sbin/init.d/xntpd service

I hope above things help u