[ntp:questions] Re: New to NTPD

Heiko Gerstung heiko.gerstung at meinberg.de
Tue May 9 14:57:27 UTC 2006

Hi, Ted:

Ted Gervais wrote:
> Well I finally am moving away from netdate and have ntpd installed and 
> running.
> I brought it up using ntpd -g,  and hope that is ok.
> Also I have no idea that it is doing anthing?   How do I know that it is 
> running.
> The drift file has only one entry in it, and that is all zeros..
> Is there some way that I can watch what is happening like the way I watch 
> log files using 'tail -f messages'  ??
> I have all the logfile stuff turned on so I can read any and all stuff that 
> is happening and  yet while that says a few things I at this point don't 
> know that it is doing anything with the system time.
> I am running linux (slackware 10.2)..

Maybe you can try it with "ntpq -p" which shows you all configured time
references (the "server" or "peer" lines in /etc/ntp.conf). If you want,
you can run it periodically : "watch -n 1 ntpq -p"

As ntpd is normally using the system log, a simple
"tail -f /var/log/messages | grep ntp" would be another approach to
monitor what is happening, but here you will not see a lot of things
after the initial startup messages.

Kind regards,

More information about the questions mailing list