1834501 Members
2243 Online
110068 Solutions
New Discussion

Re: NTP Configuration.

 
Amit Mehta
Occasional Contributor

NTP Configuration.

I want to synchronize ntp on HP-UX B.11.00 9000/800 with a time server in the US. Could you please tell me what changes I would have to make in the ntp.conf file. I'd really
appreciate your assistance.

Amit
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: NTP Configuration.

You simply need to add a line something like this to get the time from the US Naval Observatory:

server navobs1.wustl.edu version 3 prefer

navobs1.wustl.edu ip address is 128.252.19.1

I would then sync all the time on your network to this local timeserver.
If it ain't broke, I can fix that.
linuxfan
Honored Contributor

Re: NTP Configuration.

Sanjay_6
Honored Contributor

Re: NTP Configuration.

Hi Amit,

To synchronize your server time to another server, just add a line in /etc/ntp.conf file,

server ip_add_of_time_server version 3 prefer

The details on adding version 3 prefer and other options are mentioned as comment in /etc/ntp.conf file.

Hope this helps.

Regds
Amit Mehta
Occasional Contributor

Re: NTP Configuration.

Do I also have to specify a drift file and the
polling setting ?

And the line you mentioned is simply
server right ?
John Payne_2
Honored Contributor

Re: NTP Configuration.

You don't HAVE to specify the driftfile or polling interval. The polling will default for you, and not specifying a driftfile just means there will not be one.

The driftfile can be nice to have, though, if you ever want to see the last step that was taken. Be sure to actually create the file if you specify it. (I usually create the file with a '1' entered in it...)
Spoon!!!!
Roger Baptiste
Honored Contributor

Re: NTP Configuration.

Hi,

Before you configure it,
make sure the ntp daemon is shutoff (ps -ef |grep ntp
and kill the pid if it exists)
**
edit /etc/ntp.conf file
and see whether you have a
"server" entry at the end of the file (not commented!).
Change it (or correct it) to
server .domainname version 3 prefer

Edit /etc/rc.config.d/netdaemon and
export NTPDATE_SERVER=".domainname""
XNTP=1

to start it
/sbin/init.d/xntpd start
Wait for 5 minutes and
check it by ntpq -p
***

This is the setting i have on my system and it works fine.

HTH
raj
Take it easy.