How to confirm/deny ntp is working?

2010-08-02 Thread Ed Flecko
Hi folks,
I've read several different sources on setting up ntp on FreeBSD (I'm
using 8.1), and they seem to vary a little, so I'm confused about how
DO you set this up, and how do you confirm/deny that it's working?

I've modified my /etc/ntp.conf file by commenting out:

#server 0.freebsd.pool.ntp.org iburst maxpoll 9
#server 1.freebsd.pool.ntp.org iburst maxpoll 9
#server 2.freebsd.pool.ntp.org iburst maxpoll 9
#server 3.freebsd.pool.ntp.org iburst maxpoll 9

and changing them to read (I'm in the U.S.):

 server 0.US.pool.ntp.org iburst maxpoll 9
 server 1.US.pool.ntp.org iburst maxpoll 9
 server 2.US.pool.ntp.org iburst maxpoll 9

I have confirmed that I can ping these servers.

I've added ntpd_enable="YES" and ntpd_sync_on_start="YES" to
/etc/rc.conf and rebooted the server.

1.) Do I need to manually create the "driftfile" (/var/db/ntpd.drift)?

2.) Do I need to manually create the logfile (/var/log/ntp.log)?

3.) How do you confirm that FreeeBSD is, in fact, keeping time?

Thank you,
Ed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Volodymyr Kostyrko

02.08.2010 23:23, Ed Flecko wrote:


1.) Do I need to manually create the "driftfile" (/var/db/ntpd.drift)?


Nope.


2.) Do I need to manually create the logfile (/var/log/ntp.log)?


Nope.


3.) How do you confirm that FreeeBSD is, in fact, keeping time?


pgrep ntp
ntpq -p
echo daily_status_ntpd_enable=yes > /etc/periodic.conf

--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Samuel Martín Moro
you may want add to your ntpd.conf:
driftfile /your/drift
logfile /your/log

to confirm, you can change your system date, and see wether it comes back to
normal

Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

"Nobody wants to say how this works.
  Maybe nobody knows ..."
  Xorg.conf(5)


On Mon, Aug 2, 2010 at 10:23 PM, Ed Flecko  wrote:

> Hi folks,
> I've read several different sources on setting up ntp on FreeBSD (I'm
> using 8.1), and they seem to vary a little, so I'm confused about how
> DO you set this up, and how do you confirm/deny that it's working?
>
> I've modified my /etc/ntp.conf file by commenting out:
>
> #server 0.freebsd.pool.ntp.org iburst maxpoll 9
> #server 1.freebsd.pool.ntp.org iburst maxpoll 9
> #server 2.freebsd.pool.ntp.org iburst maxpoll 9
> #server 3.freebsd.pool.ntp.org iburst maxpoll 9
>
> and changing them to read (I'm in the U.S.):
>
>  server 0.US.pool.ntp.org iburst maxpoll 9
>  server 1.US.pool.ntp.org iburst maxpoll 9
>  server 2.US.pool.ntp.org iburst maxpoll 9
>
> I have confirmed that I can ping these servers.
>
> I've added ntpd_enable="YES" and ntpd_sync_on_start="YES" to
> /etc/rc.conf and rebooted the server.
>
> 1.) Do I need to manually create the "driftfile" (/var/db/ntpd.drift)?
>
> 2.) Do I need to manually create the logfile (/var/log/ntp.log)?
>
> 3.) How do you confirm that FreeeBSD is, in fact, keeping time?
>
> Thank you,
> Ed
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Randal L. Schwartz
> "Ed" == Ed Flecko  writes:

Ed> and changing them to read (I'm in the U.S.):

Ed>  server 0.US.pool.ntp.org iburst maxpoll 9
Ed>  server 1.US.pool.ntp.org iburst maxpoll 9
Ed>  server 2.US.pool.ntp.org iburst maxpoll 9

I believe this is no longer necessary, and in fact, discouraged.

The pool.ntp.org servers have some geolocation built in, so the stock
version will automatically find and balance load on the existing NTP
servers.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread David Brodbeck
On Mon, August 2, 2010 1:23 pm, Ed Flecko wrote:
> 3.) How do you confirm that FreeeBSD is, in fact, keeping time?

Run ntpq, then type "peers" at the prompt.

You should see some peers listed.  If ntp's been running for a while, one
of them should have an asterisk next to it (this is the one with which the
system is currently synchronizing) and the "offset" column should show a
fairly small number, usually within +/- 100 ms.  For example, here's the
output from my machine:

 remote   refid  st t when poll reach   delay   offset 
jitter
==
+cheezum.mattnor 24.56.178.1402 u  803 1024  377   79.195  -39.637  
7.575
*dione.cbane.org 66.220.9.122 2 u  844 1024  377   34.034  -41.063  
8.513
 LOCAL(0).LOCL.  10 l   45   64  3770.0000.000  
0.004




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Kevin Kinsey

Randal L. Schwartz wrote:

"Ed" == Ed Flecko  writes:


Ed> and changing them to read (I'm in the U.S.):

Ed>  server 0.US.pool.ntp.org iburst maxpoll 9
Ed>  server 1.US.pool.ntp.org iburst maxpoll 9
Ed>  server 2.US.pool.ntp.org iburst maxpoll 9

I believe this is no longer necessary, and in fact, discouraged.

The pool.ntp.org servers have some geolocation built in, so the stock
version will automatically find and balance load on the existing NTP
servers.



Do we need to ping someone @freebsd.org about it then, say, kensm...@?

Just c'suped to 8 recently; mergemaster gave me a new ntp.conf and
this is the exact stuff in there ;-)

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Randal L. Schwartz
> "Kevin" == Kevin Kinsey  writes:

Kevin> Do we need to ping someone @freebsd.org about it then, say, kensm...@?

Kevin> Just c'suped to 8 recently; mergemaster gave me a new ntp.conf and
Kevin> this is the exact stuff in there ;-)

Uh, why.  Looks like the Right Thing is already in there:

server 0.freebsd.pool.ntp.org iburst maxpoll 9
server 1.freebsd.pool.ntp.org iburst maxpoll 9
server 2.freebsd.pool.ntp.org iburst maxpoll 9
#server 3.freebsd.pool.ntp.org iburst maxpoll 9

This conforms with:

  http://www.pool.ntp.org/en/vendors.html

specifically:

Get your vendor zone

To allow you to use the pool as the default time service in your
application, we will set you up with special hostnames, for example
1.vendor.pool.ntp.org, 2.vendor.pool.ntp.org and 3.vendor.pool.ntp.org.

You must absolutely not use the default pool.ntp.org zone names as the
default configuration in your application or appliance.

You can apply for a vendor zone here on the site.

So the problem is that the original poster changed it *away* from the
freebsd subdomains to the *us* subdomains.  This is neither necessary
nor advised.  That's what I was complaining about.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread RW
On Mon, 2 Aug 2010 22:33:16 +0200
Samuel Martín Moro  wrote:

> you may want add to your ntpd.conf:
> driftfile /your/drift
> logfile /your/log

They have perfectly good defaults.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Leslie Jensen



On 2010-08-02 22:31, Volodymyr Kostyrko wrote:

02.08.2010 23:23, Ed Flecko wrote:


1.) Do I need to manually create the "driftfile" (/var/db/ntpd.drift)?


Nope.


2.) Do I need to manually create the logfile (/var/log/ntp.log)?


Nope.


3.) How do you confirm that FreeeBSD is, in fact, keeping time?


pgrep ntp
ntpq -p
echo daily_status_ntpd_enable=yes > /etc/periodic.conf



Shouoldn't it be "YES" and >> so that it do not overwrite your present file?

echo daily_status_ntpd_enable="YES" >> /etc/periodic.conf

/Leslie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to confirm/deny ntp is working?

2010-08-02 Thread Volodymyr Kostyrko

03.08.2010 07:28, Leslie Jensen wrote:


Shouoldn't it be "YES" and >> so that it do not overwrite your present
file?

echo daily_status_ntpd_enable="YES" >> /etc/periodic.conf


Really it doesn't matter about quotes or letter case since this is just 
simple shell file. But yes, sorry for incorrect redirect.


--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"