Showing results for 
Search instead for 
Did you mean: 

NTP Error in hpux 11.23

Occasional Advisor

NTP Error in hpux 11.23

Hello All,

I have configured ntp in hpux 11.23 servers.
with correct entries in /etc/ntp.conf
server ntpserver
broadcastclient yes
driftfile /etc/ntp.drift
& /etc/rc.config.d/netdaemons

export NTPDATE_SERVER=ntpserver
export XNTPD=1
export XNTPD_ARGS=
I have also started xntpd daemon also.

ps -ef |grep -i xntp
root 2136 1 0 13:36:11 ? 0:00 /usr/sbin/xntpd
root 8606 28982 0 13:46:39 pts/4 0:00 grep -i xntp

I got below error in ntpq -pn :-
# ntpq -pn
No association ID's returned

Also below are errors reported in syslog file :-
Oct 27 13:36:11 cspdcp11 xntpd[2136]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Oct 27 13:36:11 cspdcp11 xntpd[2136]: precision = 7 usec
Oct 27 13:36:11 cspdcp11 xntpd[2136]: drift value invalid

Can anyone suggest about this problem?

James R. Ferguson
Acclaimed Contributor

Re: NTP Error in hpux 11.23

Hi :

It appears that your server's time differs from the source time by enough to not yet have established a relationship with your time source(s).

It takes a few minutes for associations to be formed. The "No association ID's returned" indicates that there are no suitable time sources (at least yet).

You might try removing '/etc/ntp.drift' and restarting the 'xntp' daemon since it is reported that the "drift value is invalid".


Occasional Advisor

Re: NTP Error in hpux 11.23

Thanks James,
I have removed /etc/ntp.drift & restarted xntpd. Now error " drift value invalid" disappeared from syslog.log file.

One more question I have about NTP configuration :- before configuring NTP in server , /etc/ntp.conf had below entries :-
#tracefile /etc/ntp.trace
#restrict default ignore

I have commented these now.
Just need to know , is it mandantory to keep these entries in /etc/ntp.conf .

Honored Contributor

Re: NTP Error in hpux 11.23

The "tracefile" configuration entry is not standard in HP-UX 11.23 ntp.conf. Perhaps someone has copied an AIX ntp.conf to your system?

(You can find a standard HP-UX factory default ntp.conf on your system at /usr/newconfig/etc/ntp.conf, if you want it.)

The "restrict" configuration entries are used to restrict access to your xntpd. The combination of "restrict default ignore" and "restrict" would deny all NTP traffic unless it comes from; in other words, they would make your xntpd useless unless further exceptions are defined.

From the NTP documentation:

restrict default ignore = by default, deny packets of all kinds, including ntpq and ntpdc queries.

restrict = make an exception that has no restrictions at all.