[ntp:questions] chu and wwv audio driver problems in debian lenny

jimmyterrence at gmail.com jimmyterrence at gmail.com
Tue Nov 25 02:56:15 UTC 2008

On Nov 24, 9:21 pm, Harlan Stenn <st... at ntp.org> wrote:
> http://support.ntp.org/bin/view/Support/ConfiguringAudioRefclocks
> may be of help.  And if you have additional information to add, please do so.
> --
> Harlan Stenn <st... at ntp.org>http://ntpforum.isc.org - be a member!

I switched back to the chu audio driver, to play around with some of
the settings above.

ntpq -p

     remote           refid      st t when poll reach   delay
offset  jitter
 CHU_AUDIO(0)          1 l    -   64    0    0.000
0.000   0.001

ntpq -c cl

assID=0 status=0000 clk_okay, last_clk_okay,
device="CHU Audio/Modem Receiver", timecode=, poll=0, noreply=0,
badformat=0, baddata=0, fudgetime1=0.537, stratum=1, refid=, flags=10


# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
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

fudge flag2 1 flag4 1 time1 0.0005366 stratum 1
#server version 4
#fudge time1 0.007532 flag2 1 stratum 1

# Local users may interrogate the ntp server more closely.
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only
# cryptographically authenticated.
#restrict mask notrust


idev /dev/oss/ich0/pcm0
cdev /dev/oss/ich0/mix0
source line
agc line
monitor line

tail /var/log/syslog

Nov 24 21:12:41 time ntpd[2259]: ntpd exiting on signal 15
Nov 24 21:12:55 time ntpd[2303]: ntpd 4.2.4p4 at 1.1520-o Wed Jul 16
12:11:41 UTC 2008 (1)
Nov 24 21:12:55 time ntpd[2304]: precision = 1.000 usec
Nov 24 21:12:55 time ntpd[2304]: Listening on interface #0 wildcard, Disabled
Nov 24 21:12:55 time ntpd[2304]: Listening on interface #1
wildcard, ::#123 Disabled
Nov 24 21:12:55 time ntpd[2304]: Listening on interface #2 lo, ::1#123
Nov 24 21:12:55 time ntpd[2304]: Listening on interface #3 lo, Enabled
Nov 24 21:12:55 time ntpd[2304]: kernel time sync status 0040
Nov 24 21:12:55 time ntpd[2304]: frequency initialized 0.000 PPM from /

ntpdc -c kerninfo

pll offset:           0 s
pll frequency:        0.000 ppm
maximum error:        0.690516 s
estimated error:      1.6e-05 s
status:               0040  unsync
pll time constant:    4
precision:            1e-06 s
frequency tolerance:  500 ppm

ntpdc -c loopinfo

offset:               0.000000 s
frequency:            0.000 ppm
poll adjust:          0
watchdog timer:       1385 s

annoyingly enough, the version of ntpd that ships with Debian doesn't
support the -D2 flag

time:~# ntpd -D2
ntpd: illegal option -- D
ntpd - NTP daemon program - Ver. 4.2.4p4
USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
  Flg Arg Option-Name    Description
   -4 no  ipv4           Force IPv4 DNS name resolution
   -6 no  ipv6           Force IPv6 DNS name resolution
   -a no  authreq        Require crypto authentication
   -A no  authnoreq      Do not require crypto authentication
   -b no  bcastsync      Allow us to sync to broadcast servers
   -c Str configfile     configuration file name
   -f Str driftfile      frequency drift file name
   -g no  panicgate      Allow the first adjustment to be Big
   -i Str jaildir        Jail directory
   -I Str interface      Listen on interface
   -k Str keyfile        path to symmetric keys
   -l Str logfile        path to the log file
   -L no  novirtualips   Do not listen to virtual IPs
   -n no  nofork         Do not fork
   -N no  nice           Run at high priority
   -p Str pidfile        path to the PID file
   -P Num priority       Process priority
   -q no  quit           Set the time and quit
   -r Str propagationdelay Broadcast/propagation delay
   -U Num updateinterval interval in seconds between scans for new or
dropped interfaces
   -s Str statsdir       Statistics file location
   -t Str trustedkey     Trusted key number
   -u Str user           Run as userid (or userid:groupid)
   -v Str var            make ARG an ntp variable (RW)
   -V Str dvar           make ARG an ntp variable (RW|DEF)
   -x no  slew           Slew up to 600 seconds
   -v opt version        Output version information and exit
   -? no  help           Display usage information and exit
   -! no  more-help      Extended usage information passed thru pager

Options are specified by doubled hyphens and their name
or by a single hyphen and the flag character.

please send bug reports to:  http://bugs.ntp.isc.org, bugs at ntp.org

More information about the questions mailing list