1290001Sglebius.de1 NOP
2290001Sglebius.  it 1 an-trap
3290001Sglebius.  if \\n[.$] \,\\$*\/
4290001Sglebius..
5290001Sglebius.ie t \
6290001Sglebius.ds B-Font [CB]
7290001Sglebius.ds I-Font [CI]
8290001Sglebius.ds R-Font [CR]
9290001Sglebius.el \
10290001Sglebius.ds B-Font B
11290001Sglebius.ds I-Font I
12290001Sglebius.ds R-Font R
13310419Sdelphij.TH calc_tickadj 1calc_tickadjman "21 Nov 2016" "ntp (4.2.8p9)" "User Commands"
14290001Sglebius.\"
15310419Sdelphij.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-OyayV3/ag-1yaGU3)
16290001Sglebius.\"
17310419Sdelphij.\" It has been AutoGen-ed November 21, 2016 at 07:58:34 AM by AutoGen 5.18.5
18290001Sglebius.\" From the definitions calc_tickadj-opts.def
19290001Sglebius.\" and the template file agman-cmd.tpl
20290001Sglebius.SH NAME
21290001Sglebius\f\*[B-Font]calc_tickadj\fP
22290001Sglebius\- Calculates optimal value for tick given ntp drift file.
23290001Sglebius.SH SYNOPSIS
24290001Sglebius\f\*[B-Font]calc_tickadj\fP
25290001Sglebius.\" Mixture of short (flag) options and long options
26290001Sglebius[\f\*[B-Font]\-flags\f[]]
27290001Sglebius[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
28290001Sglebius[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
29290001Sglebius.sp \n(Ppu
30290001Sglebius.ne 2
31290001Sglebius
32290001SglebiusAll arguments must be options.
33290001Sglebius.sp \n(Ppu
34290001Sglebius.ne 2
35290001Sglebius
36290001Sglebius.SH DESCRIPTION
37290001SglebiusThe \fBcalc_tickadj\fP script uses provided ntp drift file to generate optimal
38290001Sglebiustick value. Generally, ntpd can do better job if the drift value is the
39290001Sglebiussmallest possible number. 
40290001Sglebius.sp
41290001SglebiusThe example output of 
42290001Sglebius.br
43290001Sglebius.in +4
44290001Sglebius.nf
45290001Sglebius$ ./calc_tickadj
46290001Sglebius81.699 (drift)
47290001Sglebius9999 usec; 9999779 nsec
48290001Sglebius$ cat /etc/ntp/drift
49290001Sglebius-23.159
50290001Sglebius.in -4
51290001Sglebius.fi
52290001Sglebius.sp
53290001Sglebiusmeans the following. If tick on that box is 10,000, by making the value 9999
54290001Sglebiuswe'll shift the box from its current drift of \-23.159 to a drift of 81.699, and
55290001Sglebiusin doing so we'll speed the clock up a little every second instead of slowing
56290001Sglebiusthe clock down a little.
57290001Sglebius.sp
58290001SglebiusIf 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
59290001Sglebiusvalue will be somewhere around 0.0.
60290001Sglebius.sp
61290001Sglebius\fBcalc_tickadj\fP tries to determine the the tick value by using
62290001Sglebius\fBtickadj\fP program from ntp package. If this doesn't work you can specify
63290001Sglebiuscurrent tick manually on command line.
64290001Sglebius.SH "OPTIONS"
65290001Sglebius.TP
66290001Sglebius.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-drift\-file\f[]=\f\*[I-Font]string\f[]
67290001SglebiusNtp drift file to use.
68290001SglebiusThe default
69290001Sglebius\f\*[I-Font]string\f[]
70290001Sglebiusfor this option is:
71290001Sglebius.ti +4
72290001Sglebius /etc/ntp/drift
73290001Sglebius.sp
74290001SglebiusUse the specified drift file for calculations
75290001Sglebius.TP
76290001Sglebius.NOP \f\*[B-Font]\-t\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-tick\f[]=\f\*[I-Font]number\f[]
77290001SglebiusTick value of this host.
78290001SglebiusThis option takes an integer number as its argument.
79290001Sglebius.sp
80290001SglebiusThe current tick which to adjustment will be calculated
81290001Sglebius.TP
82290001Sglebius.NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
83290001SglebiusDisplay usage information and exit.
84290001Sglebius.TP
85290001Sglebius.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
86290001SglebiusPass the extended usage information through a pager.
87290001Sglebius.TP
88290001Sglebius.NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}]
89290001SglebiusOutput version of program and exit.  The default mode is `v', a simple
90290001Sglebiusversion.  The `c' mode will print copyright information and `n' will
91290001Sglebiusprint the full copyright notice.
92290001Sglebius.PP
93290001Sglebius.SH "EXIT STATUS"
94290001SglebiusOne of the following exit values will be returned:
95290001Sglebius.TP
96290001Sglebius.NOP 0 " (EXIT_SUCCESS)"
97290001SglebiusSuccessful program execution.
98290001Sglebius.TP
99290001Sglebius.NOP 1 " (EXIT_FAILURE)"
100290001SglebiusThe operation failed or the command syntax was not valid.
101290001Sglebius.TP
102290001Sglebius.NOP 70 " (EX_SOFTWARE)"
103290001Sglebiuslibopts had an internal operational error.  Please report
104290001Sglebiusit to autogen-users@lists.sourceforge.net.  Thank you.
105290001Sglebius.PP
106290001Sglebius.SH "NOTES"
107290001SglebiusThis manual page was \fIAutoGen\fP-erated from the \fBcalc_tickadj\fP
108290001Sglebiusoption definitions.
109