time/ntp[d]
michael
cs at networkingnewsletter.org.uk
Wed Aug 6 15:15:56 UTC 2008
On Wed, 2008-08-06 at 16:12 +0100, michael wrote:
> On Wed, 2008-08-06 at 09:14 -0400, Steve wrote:
> > ---- michael <cs at networkingnewsletter.org.uk> wrote:
> > > It seems my clock is losing time but yet I have 'enable Network Time
> > > Protocol' enabled and set to a local time machine. If I
> > >
> > > sudo /etc/init.d/ntpd stop
> > > sudo /usr/sbin/ntpdate 130.88.200.6
> > >
> > > then it resets it to the correct time, so how come it's losing time?
> > >
> > > I was expecting to see stats in /var/log/ntpstats (as per my Debian box)
> > > but that dir doesn't exist on this Fed box...
> > >
> > > Any ideas folks? Ta, M
> >
> > Check the options in your ntpd command. From the man page:
> > -s statsdir
> > Specify the directory path for files created by the statistics facility. This is the same operation as the statsdir statsdir configuration command.
> >
> > In my F9 setup, ntpd runs like this:
> > # ps -ef | grep ntpd
> > ntp 3350 1 0 08:59 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
> >
> > ie no -s option do I don't see any stats in /var/log/ntpstats either. You can change the options by editing /etc/sysconfig/ntpd
>
> I don't see '-s' when do that cmd on my Debian box but that does still
> create the ntp stats...
>
>
> > While ntpd is running, try ntpq -p from the command line which should tell you which peers ntp is talking to or maybe not talking to.
> >
>
> strange:
>
> mkb at veri:~$ sudo su
> [root at veri mkb]# /usr/sbin/ntpq -p
> /usr/sbin/ntpq: read: Connection refused
>
>
>
> > HTH,
> > Steve
> >
> > PS.
> > > sudo /etc/init.d/ntpd stop
> > > sudo /usr/sbin/ntpdate 130.88.200.6
> > You did retstart ntpd, righ?
I have now ;)
And I get:
mkb at veri:~$ sudo /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset
jitter
==============================================================================
utserv.mcc.ac.u 193.62.22.98 2 u 7 64 1 2.575 348421.
0.001
mkb at veri:~$
but not sure what that means....
More information about the users
mailing list