Home | History | Annotate | Line # | Download | only in ntptrace
ntptrace.html revision 1.1.1.15
      1  1.1.1.13  christos <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2  1.1.1.13  christos <html>
      3  1.1.1.15  christos <!-- Created by GNU Texinfo 6.6, http://www.gnu.org/software/texinfo/ -->
      4       1.1  christos <head>
      5  1.1.1.13  christos <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      6  1.1.1.13  christos <title>Ntptrace User&rsquo;s Manual</title>
      7  1.1.1.13  christos 
      8  1.1.1.13  christos <meta name="description" content="Ntptrace User&rsquo;s Manual">
      9  1.1.1.13  christos <meta name="keywords" content="Ntptrace User&rsquo;s Manual">
     10  1.1.1.13  christos <meta name="resource-type" content="document">
     11  1.1.1.13  christos <meta name="distribution" content="global">
     12  1.1.1.13  christos <meta name="Generator" content="makeinfo">
     13  1.1.1.13  christos <link href="#Top" rel="start" title="Top">
     14  1.1.1.13  christos <link href="dir.html#Top" rel="up" title="(dir)">
     15  1.1.1.13  christos <style type="text/css">
     16  1.1.1.13  christos <!--
     17  1.1.1.13  christos a.summary-letter {text-decoration: none}
     18  1.1.1.13  christos blockquote.indentedblock {margin-right: 0em}
     19  1.1.1.13  christos div.display {margin-left: 3.2em}
     20  1.1.1.13  christos div.example {margin-left: 3.2em}
     21  1.1.1.13  christos div.lisp {margin-left: 3.2em}
     22  1.1.1.13  christos kbd {font-style: oblique}
     23  1.1.1.13  christos pre.display {font-family: inherit}
     24  1.1.1.13  christos pre.format {font-family: inherit}
     25  1.1.1.13  christos pre.menu-comment {font-family: serif}
     26  1.1.1.13  christos pre.menu-preformatted {font-family: serif}
     27  1.1.1.13  christos span.nolinebreak {white-space: nowrap}
     28  1.1.1.13  christos span.roman {font-family: initial; font-weight: normal}
     29  1.1.1.13  christos span.sansserif {font-family: sans-serif; font-weight: normal}
     30  1.1.1.13  christos ul.no-bullet {list-style: none}
     31  1.1.1.13  christos -->
     32  1.1.1.13  christos </style>
     33  1.1.1.13  christos 
     34  1.1.1.13  christos 
     35       1.1  christos </head>
     36  1.1.1.13  christos 
     37  1.1.1.13  christos <body lang="en">
     38  1.1.1.13  christos <h1 class="settitle" align="center">Ntptrace User&rsquo;s Manual</h1>
     39  1.1.1.13  christos 
     40  1.1.1.13  christos 
     41  1.1.1.13  christos 
     42  1.1.1.13  christos 
     43  1.1.1.13  christos 
     44  1.1.1.15  christos <span id="Top"></span><div class="header">
     45  1.1.1.13  christos <p>
     46  1.1.1.13  christos Previous: <a href="dir.html#Top" accesskey="p" rel="prev">(dir)</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> &nbsp; </p>
     47       1.1  christos </div>
     48  1.1.1.15  christos <span id="Simple-Network-Time-Protocol-User-Manual"></span><h1 class="top">Simple Network Time Protocol User Manual</h1>
     49       1.1  christos 
     50  1.1.1.13  christos <p>This document describes the use of the NTP Project&rsquo;s <code>ntptrace</code> program.
     51  1.1.1.15  christos This document applies to version 4.2.8p18 of <code>ntptrace</code>.
     52  1.1.1.13  christos </p>
     53  1.1.1.15  christos <span id="SEC_Overview"></span>
     54  1.1.1.13  christos <h2 class="shortcontents-heading">Short Table of Contents</h2>
     55       1.1  christos 
     56  1.1.1.13  christos <div class="shortcontents">
     57  1.1.1.13  christos <ul class="no-bullet">
     58  1.1.1.15  christos <li><a id="stoc-Invoking-ntptrace" href="#toc-Invoking-ntptrace">1 Invoking ntptrace</a></li>
     59  1.1.1.13  christos </ul>
     60       1.1  christos </div>
     61       1.1  christos 
     62       1.1  christos 
     63  1.1.1.13  christos <table class="menu" border="0" cellspacing="0">
     64  1.1.1.15  christos <tr><td align="left" valign="top">&bull; ntptrace Description</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Description
     65  1.1.1.13  christos </td></tr>
     66  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-Invocation" accesskey="2">ntptrace Invocation</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Invoking ntptrace
     67  1.1.1.13  christos </td></tr>
     68  1.1.1.13  christos </table>
     69  1.1.1.13  christos 
     70  1.1.1.13  christos <hr>
     71  1.1.1.15  christos <span id="ntptrace-Invocation"></span><div class="header">
     72  1.1.1.13  christos <p>
     73  1.1.1.13  christos Up: <a href="#Top" accesskey="u" rel="up">Top</a> &nbsp; </p>
     74  1.1.1.13  christos </div>
     75  1.1.1.15  christos <span id="Invoking-ntptrace"></span><h2 class="chapter">1 Invoking ntptrace</h2>
     76  1.1.1.15  christos <span id="index-ntptrace"></span>
     77  1.1.1.15  christos <span id="index-Trace-peers-of-an-NTP-server"></span>
     78  1.1.1.13  christos 
     79  1.1.1.13  christos <p><code>ntptrace</code> is a perl script that uses the ntpq utility program to follow
     80       1.1  christos the chain of NTP servers from a given host back to the primary time source. For
     81       1.1  christos ntptrace to work properly, each of these servers must implement the NTP Control
     82       1.1  christos and Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets.
     83  1.1.1.13  christos </p>
     84  1.1.1.13  christos <p>If given no arguments, ntptrace starts with localhost. Here is an example of
     85       1.1  christos the output from ntptrace:
     86  1.1.1.13  christos </p>
     87  1.1.1.13  christos <div class="example">
     88  1.1.1.13  christos <pre class="example">% ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
     89  1.1.1.13  christos server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
     90  1.1.1.13  christos stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
     91  1.1.1.13  christos </pre></div>
     92       1.1  christos 
     93  1.1.1.13  christos <p>On each line, the fields are (left to right): the host name, the host stratum,
     94       1.1  christos the time offset between that host and the local host (as measured by
     95  1.1.1.13  christos <code>ntptrace</code>; this is why it is not always zero for &quot;localhost&quot;), the host
     96       1.1  christos synchronization distance, and (only for stratum-1 servers) the reference clock
     97       1.1  christos ID. All times are given in seconds. Note that the stratum is the server hop
     98       1.1  christos count to the primary source, while the synchronization distance is the
     99       1.1  christos estimated error relative to the primary source. These terms are precisely
    100       1.1  christos defined in RFC-1305.
    101  1.1.1.13  christos </p>
    102       1.1  christos 
    103  1.1.1.13  christos <p>This section was generated by <strong>AutoGen</strong>,
    104       1.1  christos using the <code>agtexi-cmd</code> template and the option descriptions for the <code>ntptrace</code> program.
    105  1.1.1.13  christos </p>
    106  1.1.1.13  christos <table class="menu" border="0" cellspacing="0">
    107  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-usage" accesskey="1">ntptrace usage</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">ntptrace help/usage (<samp>--help</samp>)
    108  1.1.1.13  christos </td></tr>
    109  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-numeric" accesskey="2">ntptrace numeric</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">numeric option (-n)
    110  1.1.1.13  christos </td></tr>
    111  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-max_002dhosts" accesskey="3">ntptrace max-hosts</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">max-hosts option (-m)
    112  1.1.1.13  christos </td></tr>
    113  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-host" accesskey="4">ntptrace host</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">host option (-r)
    114  1.1.1.13  christos </td></tr>
    115  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-exit-status" accesskey="5">ntptrace exit status</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">exit status
    116  1.1.1.13  christos </td></tr>
    117  1.1.1.13  christos </table>
    118  1.1.1.13  christos 
    119  1.1.1.13  christos <hr>
    120  1.1.1.15  christos <span id="ntptrace-usage"></span><div class="header">
    121  1.1.1.13  christos <p>
    122  1.1.1.13  christos Next: <a href="#ntptrace-numeric" accesskey="n" rel="next">ntptrace numeric</a>, Up: <a href="#ntptrace-Invocation" accesskey="u" rel="up">ntptrace Invocation</a> &nbsp; </p>
    123  1.1.1.13  christos </div>
    124  1.1.1.15  christos <span id="ntptrace-help_002fusage-_0028_002d_002dhelp_0029"></span><h3 class="section">1.1 ntptrace help/usage (<samp>--help</samp>)</h3>
    125  1.1.1.15  christos <span id="index-ntptrace-help"></span>
    126  1.1.1.13  christos 
    127  1.1.1.13  christos <p>This is the automatically generated usage text for ntptrace.
    128  1.1.1.13  christos </p>
    129  1.1.1.13  christos <p>The text printed is the same whether selected with the <code>help</code> option
    130  1.1.1.13  christos (<samp>--help</samp>) or the <code>more-help</code> option (<samp>--more-help</samp>).  <code>more-help</code> will print
    131  1.1.1.13  christos the usage text by passing it through a pager program.
    132       1.1  christos <code>more-help</code> is disabled on platforms without a working
    133       1.1  christos <code>fork(2)</code> function.  The <code>PAGER</code> environment variable is
    134  1.1.1.13  christos used to select the program, defaulting to <samp>more</samp>.  Both will exit
    135       1.1  christos with a status code of 0.
    136  1.1.1.13  christos </p>
    137  1.1.1.13  christos <div class="example">
    138  1.1.1.15  christos <pre class="example">ntptrace - Trace peers of an NTP server - Ver. 4.2.8p18
    139       1.1  christos USAGE: ntptrace [ -&lt;flag&gt; [&lt;val&gt;] | --&lt;name&gt;[{=| }&lt;val&gt;] ]... [host]
    140       1.1  christos 
    141       1.1  christos     -n, --numeric                Print IP addresses instead of hostnames
    142       1.1  christos     -m, --max-hosts=num          Maximum number of peers to trace
    143       1.1  christos     -r, --host=str               Single remote host
    144       1.1  christos     -?, --help                   Display usage information and exit
    145   1.1.1.2  christos         --more-help              Pass the extended usage text through a pager
    146       1.1  christos 
    147       1.1  christos Options are specified by doubled hyphens and their name or by a single
    148       1.1  christos hyphen and the flag character.
    149  1.1.1.13  christos </pre></div>
    150       1.1  christos 
    151  1.1.1.13  christos <table class="menu" border="0" cellspacing="0">
    152  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-numeric" accesskey="1">numeric option (-n)</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
    153  1.1.1.13  christos </td></tr>
    154  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-max_002dhosts" accesskey="2">max-hosts option (-m)</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
    155  1.1.1.13  christos </td></tr>
    156  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-host" accesskey="3">host option (-r)</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
    157  1.1.1.13  christos </td></tr>
    158  1.1.1.15  christos <tr><td align="left" valign="top">&bull; <a href="#ntptrace-exit-status" accesskey="4">ntptrace exit status</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
    159  1.1.1.13  christos </td></tr>
    160  1.1.1.13  christos </table>
    161  1.1.1.13  christos 
    162  1.1.1.13  christos <hr>
    163  1.1.1.15  christos <span id="ntptrace-numeric"></span><div class="header">
    164  1.1.1.13  christos <p>
    165  1.1.1.13  christos Next: <a href="#ntptrace-max_002dhosts" accesskey="n" rel="next">ntptrace max-hosts</a>, Previous: <a href="#ntptrace-usage" accesskey="p" rel="prev">ntptrace usage</a>, Up: <a href="#ntptrace-usage" accesskey="u" rel="up">ntptrace usage</a> &nbsp; </p>
    166  1.1.1.13  christos </div>
    167  1.1.1.15  christos <span id="numeric-option-_0028_002dn_0029"></span><h4 class="subsection">1.1.1 numeric option (-n)</h4>
    168  1.1.1.15  christos <span id="index-ntptrace_002dnumeric"></span>
    169       1.1  christos 
    170  1.1.1.13  christos <p>This is the &ldquo;print ip addresses instead of hostnames&rdquo; option.
    171       1.1  christos Output hosts as dotted-quad numeric format rather than converting to
    172  1.1.1.13  christos the canonical host names.
    173  1.1.1.13  christos </p><hr>
    174  1.1.1.15  christos <span id="ntptrace-max_002dhosts"></span><div class="header">
    175  1.1.1.13  christos <p>
    176  1.1.1.13  christos Next: <a href="#ntptrace-host" accesskey="n" rel="next">ntptrace host</a>, Previous: <a href="#ntptrace-numeric" accesskey="p" rel="prev">ntptrace numeric</a>, Up: <a href="#ntptrace-usage" accesskey="u" rel="up">ntptrace usage</a> &nbsp; </p>
    177  1.1.1.13  christos </div>
    178  1.1.1.15  christos <span id="max_002dhosts-option-_0028_002dm_0029"></span><h4 class="subsection">1.1.2 max-hosts option (-m)</h4>
    179  1.1.1.15  christos <span id="index-ntptrace_002dmax_002dhosts"></span>
    180  1.1.1.13  christos 
    181  1.1.1.13  christos <p>This is the &ldquo;maximum number of peers to trace&rdquo; option.
    182  1.1.1.13  christos This option takes a number argument.
    183  1.1.1.13  christos This option has no &lsquo;<samp>doc</samp>&rsquo; documentation.
    184  1.1.1.13  christos </p><hr>
    185  1.1.1.15  christos <span id="ntptrace-host"></span><div class="header">
    186  1.1.1.13  christos <p>
    187  1.1.1.13  christos Next: <a href="#ntptrace-exit-status" accesskey="n" rel="next">ntptrace exit status</a>, Previous: <a href="#ntptrace-max_002dhosts" accesskey="p" rel="prev">ntptrace max-hosts</a>, Up: <a href="#ntptrace-usage" accesskey="u" rel="up">ntptrace usage</a> &nbsp; </p>
    188  1.1.1.13  christos </div>
    189  1.1.1.15  christos <span id="host-option-_0028_002dr_0029"></span><h4 class="subsection">1.1.3 host option (-r)</h4>
    190  1.1.1.15  christos <span id="index-ntptrace_002dhost"></span>
    191  1.1.1.13  christos 
    192  1.1.1.13  christos <p>This is the &ldquo;single remote host&rdquo; option.
    193  1.1.1.13  christos This option takes a string argument.
    194  1.1.1.13  christos This option has no &lsquo;<samp>doc</samp>&rsquo; documentation.
    195  1.1.1.13  christos </p><hr>
    196  1.1.1.15  christos <span id="ntptrace-exit-status"></span><div class="header">
    197  1.1.1.13  christos <p>
    198  1.1.1.13  christos Previous: <a href="#ntptrace-host" accesskey="p" rel="prev">ntptrace host</a>, Up: <a href="#ntptrace-usage" accesskey="u" rel="up">ntptrace usage</a> &nbsp; </p>
    199       1.1  christos </div>
    200  1.1.1.15  christos <span id="ntptrace-exit-status-1"></span><h4 class="subsection">1.1.4 ntptrace exit status</h4>
    201       1.1  christos 
    202       1.1  christos <p>One of the following exit values will be returned:
    203  1.1.1.13  christos </p><dl compact="compact">
    204  1.1.1.13  christos <dt>&lsquo;<samp>0 (EXIT_SUCCESS)</samp>&rsquo;</dt>
    205  1.1.1.13  christos <dd><p>Successful program execution.
    206  1.1.1.13  christos </p></dd>
    207  1.1.1.13  christos <dt>&lsquo;<samp>1 (EXIT_FAILURE)</samp>&rsquo;</dt>
    208  1.1.1.13  christos <dd><p>The operation failed or the command syntax was not valid.
    209  1.1.1.13  christos </p></dd>
    210       1.1  christos </dl>
    211  1.1.1.13  christos <hr>
    212  1.1.1.13  christos 
    213       1.1  christos 
    214       1.1  christos 
    215  1.1.1.13  christos </body>
    216  1.1.1.13  christos </html>
    217