]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/scripts/ntptrace/ntptrace.1ntptracemdoc
Fix ntp multiple vulnerabilities.
[FreeBSD/releng/10.2.git] / contrib / ntp / scripts / ntptrace / ntptrace.1ntptracemdoc
1 .Dd April 26 2016
2 .Dt NTPTRACE 1ntptracemdoc User Commands
3 .Os
4 .\"  EDIT THIS FILE WITH CAUTION  (ntptrace-opts.mdoc)
5 .\"
6 .\"  It has been AutoGen-ed  April 26, 2016 at 08:24:44 PM by AutoGen 5.18.5
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
22 the chain of NTP servers from a given host back to the primary time source. For
23 ntptrace to work properly, each of these servers must implement the NTP Control
24 and Monitoring Protocol specified in RFC 1305 and enable NTP Mode 6 packets.
25 .sp
26 If given no arguments, ntptrace starts with localhost. Here is an example of
27 the output from ntptrace:
28 .sp
29 .Bd -literal -offset indent
30 % ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135
31 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu:
32 stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
33 .Ed
34 .sp
35 On each line, the fields are (left to right): the host name, the host stratum,
36 the 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
38 synchronization distance, and (only for stratum\-1 servers) the reference clock
39 ID. All times are given in seconds. Note that the stratum is the server hop
40 count to the primary source, while the synchronization distance is the
41 estimated error relative to the primary source. These terms are precisely
42 defined in RFC\-1305.
43 .Sh "OPTIONS"
44 .Bl -tag
45 .It  Fl n , Fl \-numeric 
46 Print IP addresses instead of hostnames.
47 .sp
48 Output hosts as dotted\-quad numeric format rather than converting to
49 the canonical host names.
50 .It  Fl m Ar number , Fl \-max\-hosts Ns = Ns Ar number 
51 Maximum number of peers to trace.
52 This option takes an integer number as its argument.
53 The default
54 .Ar number
55 for this option is:
56 .ti +4
57  99
58 .sp
59 This option has not been fully documented.
60 .It  Fl r Ar string , Fl \-host Ns = Ns Ar string 
61 Single remote host.
62 The default
63 .Ar string
64 for this option is:
65 .ti +4
66  127.0.0.1
67 .sp
68 This option has not been fully documented.
69 .It Fl \&? , Fl \-help
70 Display usage information and exit.
71 .It Fl \&! , Fl \-more\-help
72 Pass the extended usage information through a pager.
73 .It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
74 Output version of program and exit.  The default mode is `v', a simple
75 version.  The `c' mode will print copyright information and `n' will
76 print the full copyright notice.
77 .El
78 .Sh "EXIT STATUS"
79 One of the following exit values will be returned:
80 .Bl -tag
81 .It 0 " (EXIT_SUCCESS)"
82 Successful program execution.
83 .It 1 " (EXIT_FAILURE)"
84 The operation failed or the command syntax was not valid.
85 .It 70 " (EX_SOFTWARE)"
86 libopts had an internal operational error.  Please report
87 it to autogen\-users@lists.sourceforge.net.  Thank you.
88 .El
89 .Sh "NOTES"
90 This manual page was \fIAutoGen\fP\-erated from the \fBntptrace\fP
91 option definitions.