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

Re: ntp server



On Thu, 2004-06-24 at 12:47, Alvin Oga wrote:
> On Thu, 24 Jun 2004, Zenaan Harkness wrote:
> > I have both with three 'server' lines in /etc/ntp.conf pointing to my
> > ISP's three time servers.
> 
> post the contents of /etc/ntp.conf ( in its entirety )

laptop:
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server whiskas
server tk1.ihug.com.au
server tk2.ihug.com.au
server tk3.ihug.com.au
server pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 13
restrict default kod notrap nomodify nopeer noquery
restrict 127.0.0.1 nomodify

my 'server' aka "whiskas":
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server tk1.ihug.com.au
server tk2.ihug.com.au
server tk3.ihug.com.au
server 127.127.1.0
fudge 127.127.1.0 stratum 10
restrict default kod notrap nomodify nopeer noquery
restrict 127.0.0.1 nomodify

> grep ^Sserver /etc/ntp.conf ( if one just wants to see the list of ntp
> servers)

I assume that's "grep ^server /etc/ntp.conf" ?

> what is the output of
> 	ntptrace -dv <ntp-server>

from my server:

whiskas:~# ntptrace -vd tk1.ihug.com.au
Unknown option: v
Unknown option: d
tk1.ihug.com.au: stratum 2, offset 0.001248, synch distance 0.009424
murgon.cs.mu.OZ.AU: stratum 1, offset 0.000003, synch distance 0.000000,
refid 'GPS'
whiskas:~# ntptrace -v -d tk1.ihug.com.au
Unknown option: v
Unknown option: d
tk1.ihug.com.au: stratum 2, offset 0.001248, synch distance 0.009424
murgon.cs.mu.OZ.AU: stratum 1, offset 0.000003, synch distance 0.000000,
refid 'GPS'
whiskas:~# ntptrace
localhost: stratum 3, offset -0.003044, synch distance 0.014768
gen21.ihug.com.au: stratum 2, offset 0.001248, synch distance 0.009424
murgon.cs.mu.OZ.AU: stratum 1, offset 0.000005, synch distance 0.000000,
refid 'GPS'
whiskas:~# ntptrace tk1.ihug.com.au
tk1.ihug.com.au: stratum 2, offset 0.001248, synch distance 0.009424
murgon.cs.mu.OZ.AU: stratum 1, offset 0.000005, synch distance 0.000000,
refid 'GPS'

from my laptop, that last line has one difference - offset 0.000007

$ ntptrace --version
/usr/bin/ntptrace version [unknown] calling Getopt::Std::getopts
(version 1.05 [paranoid]),
running under Perl version 5.8.4.
  [Now continuing due to backward compatibility and excessive paranoia.
   See ``perldoc Getopt::Std'' about
$Getopt::Std::STANDARD_HELP_VERSION.]
localhost: stratum 14, offset 0.000000, synch distance 0.000000


> other ntp commands that might tell you stuff
> 	http://www.linux-consulting.com/NTP/NTP.Commands.txt

thanks

something has changed over the last two hours though - the server
whiskas is no longer jumping forward and back. However, it is
consistently one second in front of my laptop

ta
zen



Reply to: