From owner-freebsd-isp@FreeBSD.ORG Mon Mar 31 21:52:50 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F57137B401 for ; Mon, 31 Mar 2003 21:52:50 -0800 (PST) Received: from flash.mipk-kspu.kharkov.ua (flash.mipk-kspu.kharkov.ua [194.44.157.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8765443FB1 for ; Mon, 31 Mar 2003 21:52:46 -0800 (PST) (envelope-from artem@mipk-kspu.kharkov.ua) Received: from mipk-kspu.kharkov.ua (rainbow.mipk-kspu.kharkov.ua [192.168.9.241])h315o987017391; Tue, 1 Apr 2003 08:50:10 +0300 (EEST) (envelope-from artem@mipk-kspu.kharkov.ua) Message-ID: <3E892894.90202@mipk-kspu.kharkov.ua> Date: Tue, 01 Apr 2003 08:50:12 +0300 From: "Artyom V. Viklenko" Organization: IIAT NTU "KhPI" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: ru, uk, en MIME-Version: 1.0 To: "Arie J. Gerszt" References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: ntp / ntpdate X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 05:52:50 -0000 Arie J. Gerszt wrote: > Hi List > > How do you update your servers with ntp? I have seen ntpd, ntpdate, xntpd > and > are a bit confused. Aside that, ntpdate never seems to work ( get the > offset, > but the time stays the same, securelevel -2, done as root). My approach is as follows. 1. Run ntpdate: ntpdate -b time-server-address ... This make current time as on time-server. With option -b you can step time more than 1 second immediately. 2. Start ntpd daemon. In config file /etc/ntp.conf you should provide at least one time server. But much better two or three. Use 'server' keyword. Place in your /etc/rc.conf file: ntpdate_enable="YES" ntpdate_flags="-b time-server-1 time-server-2 time-server-3" xntpd_enable="YES" and replace 'time-server-x' with yours addresses. You can use, for example, time-a.nist.gov, time-b.nist.gov. Your Internet provirer may be allos have local time server. init sets securelevel after executing ntpdate and ntpd. I have small router (for testing) on 486-based machine with Y2K problem in hardware clock. Using metod described above it's possible to maintain correct time on it. -- Sincerely yours, Artyom V. Viklenko. ====================================================== System Administrator artem@mipk-kspu.kharkov.ua ------------------------------------------------------ IIAT NTU "KhPI" 21, Frunze Str., Kharkov Ukraine 61002 Phone: +380 (572) 400026 Fax: +380 (572) 474062 ======================================================