1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2:
3: <html>
4:
5: <head>
6: <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
7: <meta name="generator" content="HTML Tidy, see www.w3.org">
8: <title>ntptrace - trace a chain of NTP servers back to the primary source</title>
9: <link href="scripts/style.css" type="text/css" rel="stylesheet">
10: </head>
11:
12: <body>
13: <h3><tt>ntptrace</tt> - trace a chain of NTP servers back to the primary source</h3>
14: <img src="pic/alice13.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
15: <p>The rabbit knows the way back.</p>
16: <p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">19:06</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="308">Wednesday, January 16, 2008</csobj></p>
17: <br clear="left">
18: <hr>
19: <h4>Synopsis</h4>
20: <tt>ntptrace [ -n ] [ -m <i>maxhosts</i> ] [ <i>server</i> ]</tt>
21: <h4>Description</h4>
22: <p><tt>ntptrace</tt> is a <tt>perl</tt> script that uses the <tt>ntpq</tt> utility program to follow the chain of NTP servers from a given host back to the primary time source. For <tt>ntptrace</tt> to work properly, each of these servers must implement the NTP Control and Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets.</p>
23: <p>If given no arguments, <tt>ntptrace</tt> starts with <tt>localhost</tt>. Here is an example of the output from <tt>ntptrace</tt>:</p>
24: <pre>
25: % ntptrace
26: localhost: stratum 4, offset 0.0019529, synch distance 0.144135
27: server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
28: usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
29: </pre>
30: <p>On each line, the fields are (left to right): the host name, the host stratum, the time offset between that host and the local host (as measured by <tt>ntptrace</tt>; this is why it is not always zero for "<tt>localhost</tt>"), the host synchronization distance, and (only for stratum-1 servers) the reference clock ID. All times are given in seconds. Note that the stratum is the server hop count to the primary source, while the synchronization distance is the estimated error relative to the primary source. These terms are precisely defined in RFC-1305.</p>
31: <h4>Options</h4>
32: <dl>
33: <dt><tt>-n</tt>
34: <dd>Turns off the printing of host names; instead, host IP addresses are given. This may be useful if a nameserver is down.
35: </dl>
36: <h4>Bugs</h4>
37: <p>This program makes no attempt to improve accuracy by doing multiple samples.</p>
38: <hr>
39: <script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
40: </body>
41:
42: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>