Operating System - HP-UX
1753989 Members
7105 Online
108811 Solutions
New Discussion юеВ

Re: NTP COnfiguration - Help

 
SOLVED
Go to solution
ajraistrick
Occasional Contributor

NTP COnfiguration - Help

We have a Windows 2000 system running as an NTP server. I cannot get my 11.00 system to synch to it. I am new to NTP, and need very basic help.

e-mail me on ajraistrick@hotmail.com

Thanks
Bollocks !!!
6 REPLIES 6
Mike Hassell
Respected Contributor

Re: NTP COnfiguration - Help

Hello,

Take a look at the documentation found here:

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

Look on the left hand side for configuring NTP. It has all the information you should need to get it working. Once you have xntpd configured on your 11.0 box, use:

/usr/sbin/ntpq -p

This will show you the servers that xntpd is trying to sync with and their states. Hope that helps.

-Mike
The network is the computer, yeah I stole it from Sun, so what?
Darrell Allen
Honored Contributor

Re: NTP COnfiguration - Help

Hi,

Use SAM. Go into Time, NTP time sources and add your NT server. Then you start NTP.

I believe that will update /etc/rc.config.d/netdaemons but you should verify it contains something like:

export NTPDATE_SERVER=your_nt_server
XNTPD=1
export XNTPD_ARGS=

One more note: Please don't ask for responses to you email. One important purpose of the forums is so that others can learn. The answer needs to be here so that others who follow can find it.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Tarek
Super Advisor
Solution

Re: NTP COnfiguration - Help

Hi,
the easiest way to configure a client NTP is this:
1. Edit /etc/ntp.conf and add the following line:
server
2. Run ntpdate to perform initial clock syncronization (NOTE: xntpd must NOT be running on the client when you issue this command)
ntpdate
3. Start xntpd
edit /etc/rc.config.d/netdaemons and set these line as following:
export NTPDATE_SERVER= ip address of the ntp server
export XNTPD=1
/sbin/init.d/xntpd start
4. Verify the client can see the server:
ntpq -p
Hope this is enough!
Regards
Tarek
Roger Baptiste
Honored Contributor

Re: NTP COnfiguration - Help

hi,

I am not sure whether 11.00 supports Windoze NT NTp servers. If possible, use a UNIX server as a NTP server!
(more reliablity is assured).

Having said this,
First, to confirm whether your NTP client is setup correctly do:
#ntpq -p
-> this will show the status of NTP syncing with the NTp server. If the first column has a * , then it is working fine.

Next, check&kill if a ntp daemon is running:
ps -ef |grep -i ntp
-> kill it.

Then,

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="ntserver.domainname""
XNTP=1

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

(pls note, this is a forum and the norm is post the responses here . You can set up a email alert for responses)

HTH
raj
Take it easy.

Re: NTP COnfiguration - Help

What should i do on the winxp/2000 and linux end. On HP-UX ntp is running perfectly