xref: /freebsd/contrib/ntp/scripts/ntptrace/ntptrace.1ntptracemdoc (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1*f5f40dd6SCy Schubert.Dd May 25 2024
22b15cb3dSCy Schubert.Dt NTPTRACE 1ntptracemdoc User Commands
32b15cb3dSCy Schubert.Os
42b15cb3dSCy Schubert.\"  EDIT THIS FILE WITH CAUTION  (ntptrace-opts.mdoc)
52b15cb3dSCy Schubert.\"
6*f5f40dd6SCy Schubert.\"  It has been AutoGen-ed  May 25, 2024 at 12:05:47 AM by AutoGen 5.18.16
72b15cb3dSCy Schubert.\"  From the definitions    ntptrace-opts.def
82b15cb3dSCy Schubert.\"  and the template file   agmdoc-cmd.tpl
92b15cb3dSCy Schubert.Sh NAME
102b15cb3dSCy Schubert.Nm ntptrace
112b15cb3dSCy Schubert.Nd Trace peers of an NTP server
122b15cb3dSCy Schubert.Sh SYNOPSIS
132b15cb3dSCy Schubert.Nm
142b15cb3dSCy Schubert.\" Mixture of short (flag) options and long options
152b15cb3dSCy Schubert.Op Fl flags
162b15cb3dSCy Schubert.Op Fl flag Op Ar value
172b15cb3dSCy Schubert.Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
182b15cb3dSCy Schubert[host]
192b15cb3dSCy Schubert.Pp
202b15cb3dSCy Schubert.Sh DESCRIPTION
212b15cb3dSCy Schubert\fBntptrace\fP is a perl script that uses the ntpq utility program to follow
222b15cb3dSCy Schubertthe chain of NTP servers from a given host back to the primary time source. For
232b15cb3dSCy Schubertntptrace to work properly, each of these servers must implement the NTP Control
242b15cb3dSCy Schubertand Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets.
252b15cb3dSCy Schubert.sp
262b15cb3dSCy SchubertIf given no arguments, ntptrace starts with localhost. Here is an example of
272b15cb3dSCy Schubertthe output from ntptrace:
282b15cb3dSCy Schubert.sp
292b15cb3dSCy Schubert.Bd -literal -offset indent
302b15cb3dSCy Schubert% ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
312b15cb3dSCy Schubertserver2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
322b15cb3dSCy Schubertstratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
332b15cb3dSCy Schubert.Ed
342b15cb3dSCy Schubert.sp
352b15cb3dSCy SchubertOn each line, the fields are (left to right): the host name, the host stratum,
362b15cb3dSCy Schubertthe time offset between that host and the local host (as measured by
372b15cb3dSCy Schubert\fBntptrace\fP; this is why it is not always zero for "localhost"), the host
382b15cb3dSCy Schubertsynchronization distance, and (only for stratum\-1 servers) the reference clock
392b15cb3dSCy SchubertID. All times are given in seconds. Note that the stratum is the server hop
402b15cb3dSCy Schubertcount to the primary source, while the synchronization distance is the
412b15cb3dSCy Schubertestimated error relative to the primary source. These terms are precisely
422b15cb3dSCy Schubertdefined in RFC\-1305.
432b15cb3dSCy Schubert.Sh "OPTIONS"
442b15cb3dSCy Schubert.Bl -tag
452b15cb3dSCy Schubert.It  Fl n , Fl \-numeric
462b15cb3dSCy SchubertPrint IP addresses instead of hostnames.
472b15cb3dSCy Schubert.sp
482b15cb3dSCy SchubertOutput hosts as dotted\-quad numeric format rather than converting to
492b15cb3dSCy Schubertthe canonical host names.
502b15cb3dSCy Schubert.It  Fl m Ar number , Fl \-max\-hosts Ns = Ns Ar number
512b15cb3dSCy SchubertMaximum number of peers to trace.
522b15cb3dSCy SchubertThis option takes an integer number as its argument.
532b15cb3dSCy SchubertThe default
542b15cb3dSCy Schubert.Ar number
552b15cb3dSCy Schubertfor this option is:
562b15cb3dSCy Schubert.ti +4
572b15cb3dSCy Schubert 99
582b15cb3dSCy Schubert.sp
592b15cb3dSCy SchubertThis option has not been fully documented.
602b15cb3dSCy Schubert.It  Fl r Ar string , Fl \-host Ns = Ns Ar string
612b15cb3dSCy SchubertSingle remote host.
622b15cb3dSCy SchubertThe default
632b15cb3dSCy Schubert.Ar string
642b15cb3dSCy Schubertfor this option is:
652b15cb3dSCy Schubert.ti +4
662b15cb3dSCy Schubert 127.0.0.1
672b15cb3dSCy Schubert.sp
682b15cb3dSCy SchubertThis option has not been fully documented.
692b15cb3dSCy Schubert.It Fl \&? , Fl \-help
702b15cb3dSCy SchubertDisplay usage information and exit.
712b15cb3dSCy Schubert.It Fl \&! , Fl \-more\-help
722b15cb3dSCy SchubertPass the extended usage information through a pager.
732b15cb3dSCy Schubert.It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
742b15cb3dSCy SchubertOutput version of program and exit.  The default mode is `v', a simple
752b15cb3dSCy Schubertversion.  The `c' mode will print copyright information and `n' will
762b15cb3dSCy Schubertprint the full copyright notice.
772b15cb3dSCy Schubert.El
782b15cb3dSCy Schubert.Sh "EXIT STATUS"
792b15cb3dSCy SchubertOne of the following exit values will be returned:
802b15cb3dSCy Schubert.Bl -tag
812b15cb3dSCy Schubert.It 0 " (EXIT_SUCCESS)"
822b15cb3dSCy SchubertSuccessful program execution.
832b15cb3dSCy Schubert.It 1 " (EXIT_FAILURE)"
842b15cb3dSCy SchubertThe operation failed or the command syntax was not valid.
852b15cb3dSCy Schubert.It 70 " (EX_SOFTWARE)"
862b15cb3dSCy Schubertlibopts had an internal operational error.  Please report
872b15cb3dSCy Schubertit to autogen\-users@lists.sourceforge.net.  Thank you.
882b15cb3dSCy Schubert.El
892b15cb3dSCy Schubert.Sh "NOTES"
902b15cb3dSCy SchubertThis manual page was \fIAutoGen\fP\-erated from the \fBntptrace\fP
912b15cb3dSCy Schubertoption definitions.
92