1830671 Members
2406 Online
110015 Solutions
New Discussion

ntp server

 
SOLVED
Go to solution
Manuel G
Frequent Advisor

ntp server

Hi all:

I want to sinchronize our windows clients with a HP-UX server.

Should I configure something on the server side?

Thanks.
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: ntp server

Have the NTP daemon run on your HP box:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x130acb60e503d6118ff40090279cd0f9,00.html


live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor
Solution

Re: ntp server

To setup the NTP server on HP-UX

1) Check ntpd version, first start it ..

#/usr/sbin/xntpd

- Kill the xntpd daemon you just started.
- grep xntpd /var/adm/syslog/syslog.log

Look for the version information such as:

Jun 4 12:38:42 tim xntpd[882]: xntpd version=3.5f...

2) Based on the version output from step 1, add the following line to the /etc/ntp.conf file.

For version 3.4 and older:

server 127.127.1.10

For version 3.5 and later:

server 127.127.1.1

3) Start xntpd.

- Edit /etc/rc.config.d/netdaemons and set the following line as shown:

export NTPDATE_SERVER=127.127.1.1 or 127.127.1.10 depending on step #2.
export XNTPD=1

# /sbin/init.d/xntpd start

4) Give the system about 5 minutes to sync and check the status with command:

# ntpq -c rv

Look for the value of the field 'reftime='. If the field is all zeros the system has not yet synced to a server. Once a hex value replaces the zeros, the system is ready to provide time information to clients.

Manuel G
Frequent Advisor

Re: ntp server

S.K.:

I??d followed steps you suggested and xntpd start returns errors (our ntp version is 3.4):

#./xntpd start
/usr/sbin/ntpdate: sendto(127.127.1.10): Network is unreachable
/usr/sbin/ntpdate: sendto(127.127.1.10): Network is unreachable
/usr/sbin/ntpdate: sendto(127.127.1.10): Network is unreachable
/usr/sbin/ntpdate: sendto(127.127.1.10): Network is unreachable
/usr/sbin/ntpdate: no server suitable for synchronization found
#

However I??ve tested ntp and I think it??s working:

#ntpq -c rv
status=0033 leap_none, sync_unspec, 3 events, event_sync_chg
system="UNIX", leap=00, stratum=2, rootdelay=0.00,
rootdispersion=399.99, peer=60116, refid=LOCAL(1),
reftime=c00d2b7d.4f5f1000 Thu, Feb 7 2002 16:36:13.310, poll=6,
clock=c00d2b9a.91858000 Thu, Feb 7 2002 16:36:42.568, phase=0.000,
freq=0.00, compliance=2
#

Anything else is needed?
Sanjay_6
Honored Contributor

Re: ntp server

S.K. Chan
Honored Contributor

Re: ntp server

Not sure why 127.127.1.10 doesn't work for you. The address for the local system (pseudo) clock runs from 127.127.1.0-15 (0 to 15 being the stratum level). Try it with 127.127.1.1 instead.
Manuel G
Frequent Advisor

Re: ntp server

S.K.:

I??ve changed IP to 127.127.1.1 and still returns same error.
S.K. Chan
Honored Contributor

Re: ntp server

I'm sorry, I did not notice the "no server suitable for synchronization" error earlier. Actually this is not a problem. It takes up to 5 minutes or more for it to synchronize. What you can do is after everything starts up and running, let it run for a while (maybe 10-15 minutes) and then check syslog.log (/var/adm/syslog) file to see if you still get "no server..." error. If you don't see it then everything is good !