Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / ntp / html / ntptrace.htm
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <meta name="generator" content="HTML Tidy, see www.w3.org">
5 <title>ntptrace - trace a chain of NTP servers back to the primary
6 source</title>
7 </head>
8 <body>
9 <h3><tt>ntptrace</tt> - trace a chain of NTP servers back to the
10 primary source</h3>
11
12 <img align="left" src="pic/alice13.gif" alt="gif"><a href=
13 "http://www.eecis.udel.edu/~mills/pictures.htm">from <i>Alice's
14 Adventures in Wonderland</i>, Lewis Carroll</a> 
15
16 <p>The rabbit knows the way back.<br clear="left">
17 </p>
18
19 <hr>
20 <h4>Synopsis</h4>
21
22 <tt>ntptrace [ -vdn ] [ -r <i>retries</i> ] [ -t <i>timeout</i> ] [
23 <i>server</i> ]</tt> 
24
25 <h4>Description</h4>
26
27 <p><tt>ntptrace</tt> determines where a given Network Time Protocol
28 (NTP) server gets its time from, and follows the chain of NTP
29 servers back to their master time source. If given no arguments, it
30 starts with <tt>localhost</tt>. Here is an example of the output
31 from <tt>ntptrace</tt>:</p>
32
33 <pre>
34 % ntptrace
35 localhost: stratum 4, offset 0.0019529, synch distance 0.144135
36 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
37 usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid
38 'WWVB'
39 </pre>
40
41 On each line, the fields are (left to right): the host name, the
42 host stratum, the time offset between that host and the local host
43 (as measured by <tt>ntptrace</tt>; this is why it is not always
44 zero for "<tt>localhost</tt>"), the host synchronization distance,
45 and (only for stratum-1 servers) the reference clock ID. All times
46 are given in seconds. Note that the stratum is the server hop count
47 to the primary source, while the synchronization distance is the
48 estimated error relative to the primary source. These terms are
49 precisely defined in RFC-1305. 
50
51 <h4>Options</h4>
52
53 <dl>
54 <dt><tt>-d</tt></dt>
55
56 <dd>Turns on some debugging output.</dd>
57
58 <dt><tt>-n</tt></dt>
59
60 <dd>Turns off the printing of host names; instead, host IP
61 addresses are given. This may be useful if a nameserver is
62 down.</dd>
63
64 <dt><tt>-r <i>retries</i></tt></dt>
65
66 <dd>Sets the number of retransmission attempts for each host
67 (default = 5).</dd>
68
69 <dt><tt>-t <i>timeout</i></tt></dt>
70
71 <dd>Sets the retransmission timeout (in seconds) (default =
72 2).</dd>
73
74 <dt><tt>-v</tt></dt>
75
76 <dd>Prints verbose information about the NTP servers.</dd>
77 </dl>
78
79 <h4>Bugs</h4>
80
81 This program makes no attempt to improve accuracy by doing multiple
82 samples. 
83
84 <hr>
85 <a href="index.htm"><img align="left" src="pic/home.gif" alt=
86 "gif"></a>
87 <address><a href="mailto:mills@udel.edu">David L. Mills
88 &lt;mills@udel.edu&gt;</a></address>
89 </body>
90 </html>
91