aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/html/rdebug.htm
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/html/rdebug.htm')
-rw-r--r--contrib/ntp/html/rdebug.htm72
1 files changed, 15 insertions, 57 deletions
diff --git a/contrib/ntp/html/rdebug.htm b/contrib/ntp/html/rdebug.htm
index 472b09f67e86..bc998caeffdc 100644
--- a/contrib/ntp/html/rdebug.htm
+++ b/contrib/ntp/html/rdebug.htm
@@ -1,67 +1,25 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Strict//EN">
<html><head><title>
Debugging Hints for Reference Clock Drivers
</title></head><body><h3>
Debugging Hints for Reference Clock Drivers
-</h3><hr>
+</h3>
-<p>The <a href = "ntpq.htm"> <code>ntpq</code></a> and <a href =
-"ntpdc.htm"> <code>ntpdc</code> </a>utility programs can be used to
-debug reference clocks, either on the server itself or from another
-machine elsewhere in the network. The server is compiled, installed and
-started using the command-line switches described in the <a href =
-"ntpd.htm"> <code>ntpd</code> </a> page. The first thing to look for
-are error messages on the system log. If none occur, the daemon has
-started, opened the devices specified and waiting for peers and radios
-to come up.
+<img align=left src=pic/oz2.gif><a href=http://www.eecis.udel.edu/~mills/pictures.htm>from <i>The
+Wizard of Oz</i>, L. Frank Baum</a>
-<p>The next step is to be sure the RS232 messages, if used, are getting
-to and from the clock. The most reliable way to do this is with an RS232
-tester and to look for data flashes as the driver polls the clock and/or
-as data arrive from the clock. Our experience is that the overwhelming
-fraction of problems occurring during installation are due to problems
-such as miswired connectors or improperly configured device links at
-this stage.
+<p>Call the girls and the'll sweep your bugs.
+<br clear=left><hr>
-<p>If RS232 messages are getting to and from the clock, the variables of
-interest can be inspected using the <code>ntpq</code> program and
-various commands described on the documentation page. First, use the
-<code>pe</code> and <code>as</code> commands to display billboards
-showing the peer configuration and association IDs for all peers,
-including the radio clock peers. The assigned clock address should
-appear in the <code>pe</code> billboard and the association ID for it at
-the same relative line position in the <code>as</code> billboard. If
-things are operating correctly, after a minute or two samples should
-show up in the <code>pe</code> display line for the clock.
+<p>The <a href=ntpq.htm><tt>ntpq</tt></a> and <a href=ntpdc.htm><tt>ntpdc</tt></a> utility programs can be used to debug reference clocks, either on the server itself or from another machine elsewhere in the network. The server is compiled, installed and started using the configuration file described in the <a href=ntpd.htm><tt>ntpd</tt></a> page and its dependencies. If the clock appears in the <tt>ntpq</tt> utility and <tt>pe</tt> command, no errors have occured and the daemon has started, opened the devices specified and waiting for peers and radios to come up. If not, the first thing to look for are error messages on the system log. These are usually due to improper configuration, missing links or multiple instances of the daemon.
-<p>Additional information is available with the <code>rv</code> and
-<code>clockvar</code> commands, which take as argument the association
-ID shown in the <code>as</code> billboard. The <code>rv</code> command
-with no argument shows the system variables, while the <code>rv</code>
-command with association ID argument shows the peer variables for the
-clock, as well as any other peers of interest. The <code>clockvar</code>
-command with argument shows the peer variables specific to reference
-clock peers, including the clock status, device name, last received
-timecode (if relevant), and various event counters. In addition, a
-subset of the <code>fudge</code> parameters is included.
+<p>It normally takes a minute or so for evidence to appear that the clock is running and the driver is operating correctly. The first indication is a nonzero value in the <tt>reach</tt> column in the <tt>pe</tt> billboard. If nothing appears after a few minutes, the next step is to be sure the RS232 messages, if used, are getting to and from the clock. The most reliable way to do this is with an RS232 tester and to look for data flashes as the driver polls the clock and/or as data arrive from the clock. Our experience is that the overwhelming fraction of problems occurring during installation are due to problems such as miswired connectors or improperly configured device links at this stage.
-<p>The <code>ntpdc</code> utility program can be used for detailed
-inspection of the clock driver status. The most useful are the
-<code>clockstat</code> and <code>clkbug</code> commands described in the
-document page. While these commands permit getting quite personal with
-the particular driver involved, their use is seldom necessary, unless an
-implementation bug shows up.
+<p>If RS232 messages are getting to and from the clock, the variables of interest can be inspected using the <tt>ntpq</tt> program and various commands described on the documentation page. First, use the <tt>pe</tt> and <tt>as</tt> commands to display billboards showing the peer configuration and association IDs for all peers, including the radio clock. The assigned clock address should appear in the <tt>pe</tt> billboard and the association ID for it at the same relative line position in the <tt>as</tt> billboard.
-<p>Most drivers write a message to the <code>clockstats</code> file as
-each timecode or surrogate is received from the radio clock. By
-convention, this is the last ASCII timecode (or ASCII gloss of a binary-
-coded one) received from the radio clock. This file is managed by the
-<code>filegen</code> facility described in the <code>ntpd</code> page
-and requires specific commands in the configuration file. This forms a
-highly useful record to discover anomalies during regular operation of
-the clock. The scripts included in the <code>./scripts/stats</code>
-directory can be run from a <code>cron</code> job to collect and
-summarize these data on a daily or weekly basis. The summary files have
-proven invaluable to detect infrequent misbehavior due to clock
-implementation bugs in some radios.
-<hr><address>David L. Mills (mills@udel.edu)</address></body></html>
+<p>Additional information is available with the <tt>rv</tt> and <tt>clockvar</tt> commands, which take as argument the association ID shown in the <tt>as</tt> billboard. The <tt>rv</tt> command with no argument shows the system variables, while the <tt>rv</tt> command with association ID argument shows the peer variables for the clock, as well as other peers of interest. The <tt>clockvar</tt> command with argument shows the peer variables specific to reference clock peers, including the clock status, device name, last received timecode (if relevant), and various event counters. In addition, a subset of the <tt>fudge</tt> parameters is included. The poll and error counters in the <tt>clockvar</tt> billboard are useful debugging aids. The <tt>poll</tt> counts the poll messages sent to the clock, while the <tt>noreply</tt>, <tt>badformat</tt> and <tt>baddate</tt> count various errors. Check the timecode to be sure it matches what the driver expects. This may require consulting the clock hardware reference manual, which is probably pretty dusty at this stage.
+
+<p>The <tt>ntpdc</tt> utility program can be used for detailed inspection of the clock driver status. The most useful are the <tt>clockstat</tt> and <tt>clkbug</tt> commands described in the document page. While these commands permit getting quite personal with the particular driver involved, their use is seldom necessary, unless an implementation bug shows up. If all else fails, turn on the debugging trace using two <tt>-d</tt> flags in the <tt>ntpd</tt> startup command line. Most drivers will dump status at every received message in this case. While the displayed trace can be intimidating, this provides the most detailed and revealing indicator of how the driver and clock are performing and where bugs might lurk.
+
+<p>Most drivers write a message to the <tt>clockstats</tt> file as each timecode or surrogate is received from the radio clock. By convention, this is the last ASCII timecode (or ASCII gloss of a binary-coded one) received from the radio clock. This file is managed by the <tt>filegen</tt> facility described in the <tt>ntpd</tt> page and requires specific commands in the configuration file. This forms a highly useful record to discover anomalies during regular operation of the clock. The scripts included in the <tt>./scripts/stats</tt> directory can be run from a <tt>cron</tt> job to collect and summarize these data on a daily or weekly basis. The summary files have proven inspirational to detect infrequent misbehavior due to clock implementation bugs in some radios.
+
+<hr><a href=index.htm><img align=left src=pic/home.gif></a><address><a href=mailto:mills@udel.edu>David L. Mills &lt;mills@udel.edu&gt;</a></address></a></body></html>