[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NTPD



I have no experience using the Naval Observatory as a source of time. 
I'm using public stratum 2 NTP servers that are in my geographical area 
or are open to those in a specific geographical area of which I happen 
to be part of.

Tony

On Monday 06 January 2003 08:17 am, Greg wrote:
> I am not sure if this is relevant, but does OpenBSD's netdate use TCP
> or UDP ?  and what about ntpd ???
>
> I know that when one uses the standard netdate on a Linux time
> server, it can be a mess to use UDP.  Many time servers  (notably
> tick and tock of usno.navy.mil) go down.  The UDP failure mode is
> that most time-serving sites will return a time of 0, in direct
> violation of RFC 826, which defines what should be returned on error.
>  Because of this, I would suggest setting up a time server that uses
> nothing but TCP and programs that would read and reject the bogus
> data.  I know that there is a fixed netdate out there.
>
> Greg Canter
>
> > -----Original Message-----
> > From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org]On
> > Behalf Of Anthony Schlemmer
> > Sent: Monday, January 06, 2003 10:53 AM
> > To: misc_(_at_)_openbsd_(_dot_)_org
> > Subject: Re: Problems with NTPD
> >
> >
> > If you "touched" the file then it's empty if it didn't exist
> > before. I'm not sure "ntpd" likes having an empty drift file. Try
> > removing the file all together. "ntpd" will write a drift file
> > after an hour or so and it will keep updating the file every so
> > often as long as the daemon is running.
> >
> > Tony
> >
> > On Monday 06 January 2003 07:44 am, auto470779_(_at_)_hushmail_(_dot_)_com wrote:
> > > Yup, I'm getting the messages after a "touch /etc/ntp.drift"
> > >
> > > On Mon, 06 Jan 2003 07:38:50 -0800 "Chavous P. Camp"
> >
> > <cpc_(_at_)_scconsultants_(_dot_)_net> wrote:
> > > >Have you tried
> > > >rm -f /etc/ntp.drift;  touch /etc/ntp.drift
> > > >
> > > >?
> > > >
> > > >
> > > >------
> > > >Chavous P. Camp <cpc_(_at_)_scconsultants_(_dot_)_net>
> > > >Member
> > > >Salter & Camp Consultants, Ltd. Co.
> > > >1213 Lady St.
> > > >PO Box 11285
> > > >Columbia, SC 29211-1285
> > > >Tele: +1 803 461 8970  Fax: +1 803 461 8973
> > > >Computer & Information Architects
> > > >--------------------------------------------
> > > >
> > > >-----Original Message-----
> > >
> > > From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org] On
> > >
> > > >Behalf
> > > >Of auto470779_(_at_)_hushmail_(_dot_)_com
> > > >Sent: Monday, January 06, 2003 10:31 AM
> > > >To: misc_(_at_)_openbsd_(_dot_)_org
> > > >Subject: Problems with NTPD
> > > >
> > > >
> > > >Hi All,
> > > >
> > > >I'm trying to set up an NTP server but am having a bit of
> > > > problem as I
> > > >do not seem to be able to get it to run as I daemon that I can
> > > > point other workstations at.
> > > >
> > > >If any one can spot what I am doing wrong i'd love to know :)
> > > >
> > > >below is my ntp.conf and error logs, hopefully someone will be
> > > > able to
> > > >help.
> > > >
> > > >/etc/rc.conf contains:
> > > >
> > > >ntpdate_flags="ntp0.fau.de"
> > > >ntpd=YES
> > > >
> > > >/etc/ntp.conf contains:
> > > >
> > > ># File /etc/ntp.conf
> > > ># Localhost foo.bar.com
> > > >#
> > > >logfile /var/log/ntpd.log
> > > >server tick.uh.edu
> > > >server time.nist.gov
> > > >server tick.usno.navy.mil
> > > >driftfile /etc/ntp.drift
> > > >
> > > >/var/log/ntpd.log contains:
> > > >
> > > > 6 Jan 15:24:57 ntpd[2615]: ntpd exiting on signal 15
> > > > 6 Jan 15:26:29 ntpd[20212]: Un-parsable frequency in
> > > > /etc/ntp.drift
> > > >
> > > >
> > > >/etc/rc.local contains:
> > > >
> > > ># run ntpdate prior to ntpd
> > > >if [ $securelevel -le 1 -a X"${ntpdate_flags}" != X"NO" \
> > > >    -a -x /usr/local/sbin/ntpdate ]; then
> > > >        echo -n ' ntpdate'
> > > >        /usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
> > > >fi
> > > >
> > > >if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
> > > >    -a -e /etc/ntp.conf ]; then
> > > >       echo -n ' ntpd';       /usr/local/sbin/ntpd -p
> > > > /var/run/ntpd.pid fi
> > > >
> > > >Many thanks
> > >
> > > Concerned about your privacy? Follow this link to get
> > > FREE encrypted email: https://www.hushmail.com/?l=2
> > >
> > > Big $$$ to be made with the HushMail Affiliate Program:
> > > https://www.hushmail.com/about.php?subloc=affiliate&l=427
> >
> > --
> > Anthony Schlemmer
> > aschlemm_(_at_)_attbi_(_dot_)_com

-- 
Anthony Schlemmer
aschlemm_(_at_)_attbi_(_dot_)_com