0
|
1 |
'\" te
|
|
2 |
.\" CDDL HEADER START
|
|
3 |
.\"
|
|
4 |
.\" The contents of this file are subject to the terms of the
|
|
5 |
.\" Common Development and Distribution License (the "License").
|
|
6 |
.\" You may not use this file except in compliance with the License.
|
|
7 |
.\"
|
|
8 |
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
.\" or http://www.opensolaris.org/os/licensing.
|
|
10 |
.\" See the License for the specific language governing permissions
|
|
11 |
.\" and limitations under the License.
|
|
12 |
.\"
|
|
13 |
.\" When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
.\" If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
.\" fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
.\" information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
.\"
|
|
19 |
.\" CDDL HEADER END
|
|
20 |
.\"
|
11
|
21 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
22 |
.\" Use is subject to license terms.
|
|
23 |
.\"
|
11
|
24 |
.\" #ident "@(#)ntptrace.1m 1.2 10/03/16 SMI"
|
0
|
25 |
.\"
|
|
26 |
.TH "ntptrace" "1M" "" "" "System Administration Commands"
|
|
27 |
.SH NAME
|
|
28 |
ntptrace \- trace a chain of NTP hosts back to their master time source
|
|
29 |
.SH SYNOPSIS
|
|
30 |
.LP
|
|
31 |
.nf
|
|
32 |
\fB/usr/sbin/ntptrace\fR [\fB-n\fR] [\fB-m\fR \fImaxhosts\fR] [\fIserver\fR]
|
|
33 |
.fi
|
|
34 |
.SH DESCRIPTION
|
|
35 |
.LP
|
|
36 |
\fBntptrace\fR determines from where a given Network Time Protocol (\fBNTP\fR) server gets its time, and follows the chain of \fBNTP\fR servers back to their master time source. If given no arguments, it starts with \fIlocalhost\fR.
|
|
37 |
.SH OPTIONS
|
|
38 |
.LP
|
|
39 |
The following options are supported:
|
|
40 |
.sp
|
|
41 |
.ne 2
|
|
42 |
.mk
|
|
43 |
.na
|
|
44 |
\fB\fB-n\fR\fR
|
|
45 |
.ad
|
|
46 |
.RS 14n
|
|
47 |
.rt
|
|
48 |
Turns off the printing of host names; instead, host IP addresses are given.
|
|
49 |
.RE
|
|
50 |
|
|
51 |
.sp
|
|
52 |
.ne 2
|
|
53 |
.mk
|
|
54 |
.na
|
|
55 |
\fB\fB-m\fR \fImaxhosts\fR\fR
|
|
56 |
.ad
|
|
57 |
.RS 14n
|
|
58 |
.rt
|
|
59 |
Sets the maximum number of levels up the chain that will be followed.
|
|
60 |
.RE
|
|
61 |
|
|
62 |
.SH EXAMPLES
|
|
63 |
.LP
|
|
64 |
\fBExample 1 \fRSample Output From the \fBntptrace\fR Command
|
|
65 |
.LP
|
|
66 |
The following example shows the output from the \fBntptrace\fR command:
|
|
67 |
|
|
68 |
.sp
|
|
69 |
.in +2
|
|
70 |
.nf
|
|
71 |
% \fBntptrace\fR
|
|
72 |
|
|
73 |
|
|
74 |
localhost: stratum 4, offset 0.0019529, synch distance 0.144135
|
|
75 |
server2.bozo.com: stratum 2, offset 0.0124263, synch distance 0.115784
|
|
76 |
usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB'
|
|
77 |
.fi
|
|
78 |
.in -2
|
|
79 |
.sp
|
|
80 |
|
|
81 |
.LP
|
|
82 |
On each line, the fields are (left to right):
|
|
83 |
|
|
84 |
.RS +4
|
|
85 |
.TP
|
|
86 |
.ie t \(bu
|
|
87 |
.el o
|
|
88 |
The server's host name
|
|
89 |
.RE
|
|
90 |
.RS +4
|
|
91 |
.TP
|
|
92 |
.ie t \(bu
|
|
93 |
.el o
|
|
94 |
The server's stratum
|
|
95 |
.RE
|
|
96 |
.RS +4
|
|
97 |
.TP
|
|
98 |
.ie t \(bu
|
|
99 |
.el o
|
|
100 |
The time offset between that server and the local host (as measured by \fBntptrace\fR; this is why it is not always zero for \fIlocalhost\fR)
|
|
101 |
.RE
|
|
102 |
.RS +4
|
|
103 |
.TP
|
|
104 |
.ie t \(bu
|
|
105 |
.el o
|
|
106 |
The host's synchronization distance
|
|
107 |
.RE
|
|
108 |
.RS +4
|
|
109 |
.TP
|
|
110 |
.ie t \(bu
|
|
111 |
.el o
|
|
112 |
The reference clock \fBID\fR (only for stratum-1 servers)
|
|
113 |
.RE
|
|
114 |
.LP
|
|
115 |
All times are given in seconds. Synchronization distance is a measure of the goodness of the clock's time.
|
|
116 |
.SH NOTES
|
|
117 |
.LP
|
|
118 |
Source for \fBntptrace\fR is available on http://src.opensolaris.org.
|
|
119 |
.SH ATTRIBUTES
|
|
120 |
See
|
|
121 |
.BR attributes (5)
|
|
122 |
for descriptions of the following attributes:
|
|
123 |
.sp
|
|
124 |
.TS
|
|
125 |
tab() box;
|
|
126 |
cw(2.75i) |cw(2.75i)
|
|
127 |
lw(2.75i) |lw(2.75i)
|
|
128 |
.
|
|
129 |
ATTRIBUTE TYPEATTRIBUTE VALUE
|
|
130 |
_
|
11
|
131 |
Availabilityservice/network/ntp
|
0
|
132 |
=
|
|
133 |
Interface StabilityVolatile
|
|
134 |
.TE
|
|
135 |
.PP
|
|
136 |
.SH SEE ALSO
|
|
137 |
.LP
|
|
138 |
\fBntpq\fR(1M), \fBntpd\fR(1M), \fBntpdc\fR(1M), \fBattributes\fR(5))
|
|
139 |
|