Operating System - HP-UX
1834437 Members
2958 Online
110067 Solutions
New Discussion

Re: fixed delay in a NTP client

 
Nacho
Occasional Contributor

fixed delay in a NTP client

I neet to syncronize some machines (HPUX 10.20) using xntpd with a NTP server, but we need to keep a fixed delay (20 seconds)from the server. Can I do it? Perhaps there is another possibility not using xntpd?
1 REPLY 1
Dan Hetzel
Honored Contributor

Re: fixed delay in a NTP client

Hi Nacho,

What you could do, for example, is synchronize your systems with the ntp server at regular intervals with 'ntpdate' and immediately after, run a small program which will get the system time, adjust for the delay needed and set the time again. You won't need to have xntpd running on the clients, of course.

See gettimeofday() ans settime() in the manual.

Yoy could also try experimenting by adjusting the 'authdelay' parameter in 'ntpdate' as this could help for small time differences.

See manpage for 'ntpdate'

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com