xref: /netbsd-src/external/bsd/ntp/dist/scripts/ntptrace/ntptrace.mdoc.in (revision 8585484ef87f5a04d32332313cdb799625f4faf8)
1.Dd November 29 2013
2.Dt NTPTRACE @NTPTRACE_MS@ User Commands
3.Os FreeBSD 6.4-STABLE
4.\"  EDIT THIS FILE WITH CAUTION  (ntptrace-opts.mdoc)
5.\"
6.\"  It has been AutoGen-ed  November 29, 2013 at 06:39:32 AM by AutoGen 5.18.3pre5
7.\"  From the definitions    ntptrace-opts.def
8.\"  and the template file   agmdoc-cmd.tpl
9.Sh NAME
10.Nm ntptrace
11.Nd Trace peers of an NTP server
12.Sh SYNOPSIS
13.Nm
14.\" Mixture of short (flag) options and long options
15.Op Fl flags
16.Op Fl flag Op Ar value
17.Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
18[host]
19.Pp
20.Sh DESCRIPTION
21\fBntptrace\fP is a perl script that uses the ntpq utility program to follow
22the chain of NTP servers from a given host back to the primary time source. For
23ntptrace to work properly, each of these servers must implement the NTP Control
24and Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets.
25.sp
26If given no arguments, ntptrace starts with localhost. Here is an example of
27the output from ntptrace:
28.sp
29.Bd -literal -offset indent
30% ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
31server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
32stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
33.Ed
34.sp
35On each line, the fields are (left to right): the host name, the host stratum,
36the time offset between that host and the local host (as measured by
37\fBntptrace\fP; this is why it is not always zero for "localhost"), the host
38synchronization distance, and (only for stratum\-1 servers) the reference clock
39ID. All times are given in seconds. Note that the stratum is the server hop
40count to the primary source, while the synchronization distance is the
41estimated error relative to the primary source. These terms are precisely
42defined in RFC\-1305.
43.Sh "OPTIONS"
44.Bl -tag
45.It  Fl n , Fl \-numeric
46Print IP addresses instead of hostnames.
47.sp
48Output hosts as dotted\-quad numeric format rather than converting to
49the canonical host names.
50.It  Fl m Ar number , Fl \-max\-hosts Ns = Ns Ar number
51Maximum number of peers to trace.
52This option takes an integer number as its argument.
53The default
54.Ar number
55for this option is:
56.ti +4
57 99
58.sp
59This option has not been fully documented.
60.It  Fl r Ar string , Fl \-host Ns = Ns Ar string
61Single remote host.
62The default
63.Ar string
64for this option is:
65.ti +4
66 127.0.0.1
67.sp
68This option has not been fully documented.
69.It Fl \&? , Fl \-help
70Display usage information and exit.
71.It Fl \&! , Fl \-more\-help
72Pass the extended usage information through a pager.
73.El
74.Sh "EXIT STATUS"
75One of the following exit values will be returned:
76.Bl -tag
77.It 0 " (EXIT_SUCCESS)"
78Successful program execution.
79.It 1 " (EXIT_FAILURE)"
80The operation failed or the command syntax was not valid.
81.It 70 " (EX_SOFTWARE)"
82libopts had an internal operational error.  Please report
83it to autogen\-users@lists.sourceforge.net.  Thank you.
84.El
85.Sh "NOTES"
86This manual page was \fIAutoGen\fP\-erated from the \fBntptrace\fP
87option definitions.
88