1827790 Members
3026 Online
109969 Solutions
New Discussion

Re: NTP

 
j773303
Super Advisor

NTP

My NTP server is SUN server, and client will
have linux, HPUX, in client linux, after configuration NTP client,then it works. But
in HP-UX, I also configration NTP client, then
restart xntpd daemon, it said couldn't find
the NTP server. Does anyone tell me how to do
this? Can HP-UX as a NTP client, if NTP server
if SUN server.
Hero
4 REPLIES 4
Michael Tully
Honored Contributor

Re: NTP

Not sure if this will help you, but this document is extremely good.

http://www.docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html
Anyone for a Mutiny ?
Michael Steele_2
Honored Contributor

Re: NTP

NTP is an Internet Protocol with reserved ports in /etc/services:

ntp 123/tcp
ntp 123/udp

This makes it an IP standard and universal between other servers.

Check client synchronization with ntpq -p. Note the "*" in the left of the report. The "*" indicates who the client has selected as an NTP server.

There is also up to a 10 minute latency for synchronization. Also the client must start out with less then a 3 minute offset to the server's time or you'll see the failure in syslog.log.
Support Fatherhood - Stop Family Law
Ron Kinner
Honored Contributor

Re: NTP

Can you ping the SUN server both by IP address and by name?

Does
nslookup hostnameofSunServer

give the correct IP address?

What do you have in your /etc/ntp.conf file?

Is the time within 3minutes?

Is the SUN server running version 3 of ntp?

Ron

Stuart Abramson_2
Honored Contributor

Re: NTP

ntp is common for all systems, including PCs, I think.

I use actual IP addresses in my /etc/ntp.conf.

1. here is what a client /etc/ntp.conf looks like:

driftfile /etc/ntp.drift
restrict default notrust nomodify
restrict 151.208.28.49
restrict 151.208.28.45
server 151.208.28.49
server 151.208.28.45

The "49" and "45" are my two ntp servers.

2. Set local clients and servers to initiate ntp at boot time:

vi /etc/rc.config.d/netdaemons

export NTPDATE_SERVER=Time server name or IP address
export XNTPD=1
export XNTPD_ARGS=

3. Here is how you change ntp.conf on the fly:


/sbin/init.d/xntpd stop
cp /etc/ntp.conf /etc/ntp.conf.old
vi /etc/ntp.conf
/sbin/init.d/xntpd start

4. Here are some usefull ntp commands on hp-ux:

ntpq -p List peers
xntpdc -p List peers
xntpdc
sysinfo
peers
help
ntpdate