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