[ntp:questions] Re: Very basic ntp question

Piotr Trojanek ptrojane at mion.elka.pw.edu.pl
Fri Jan 30 12:44:16 UTC 2004

On 2004-01-29, Andrew.Lovett <andrew.lovett at yale.edu> wrote:
> Hi, I am brand new to ntp, and I have a very simple question.  I am trying
> to create an ntp server that uses a local clock so I can synchronize several
> clocks on a network (I've read the warnings about using a local clock, but
> the server in question is completely disconnected from the Internet, so
> there should be no problem there).  I'm not entirely sure how to write my
> config file.  Using the default location (/etc/ntp.conf), I've tried
> server
> and
> sever refid LCL
> In either case, when I run ntpd, it immediately quits without an error
> message.  When I run ntpudate, it says, "no server can be used, exiting"

Try running 'ntpd -d' or more debug flags. make sure you have local clock
reference driver compiled into ntpd -- if you comile from sources:
./configure --enable-LOCAL-CLOCK

and make sure that generated config.h is correct.

> Can someone please tell me how exactly the config file should be written, or
> whether I need to add any command-line arguments?

There is nothing wrong with config file.

> PS: The operating system I'm using is QNX, I believe ntp should behave about
> the same way as it does on UNIX.

Yes, it should.

Piotr Trojanek

More information about the questions mailing list