calc_tickadj.1calc_tickadjman revision 316722
1236593Sobrien.de1 NOP
2236593Sobrien.  it 1 an-trap
3236593Sobrien.  if \\n[.$] \,\\$*\/
4236593Sobrien..
5236593Sobrien.ie t \
6236593Sobrien.ds B-Font [CB]
7236593Sobrien.ds I-Font [CI]
8236593Sobrien.ds R-Font [CR]
9236593Sobrien.el \
10236593Sobrien.ds B-Font B
11236593Sobrien.ds I-Font I
12236593Sobrien.ds R-Font R
13236593Sobrien.TH calc_tickadj 1calc_tickadjman "21 Mar 2017" "ntp (4.2.8p10)" "User Commands"
14236593Sobrien.\"
15236593Sobrien.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-bsaa0i/ag-osaiZi)
16236593Sobrien.\"
17236593Sobrien.\" It has been AutoGen-ed March 21, 2017 at 10:39:52 AM by AutoGen 5.18.5
18236593Sobrien.\" From the definitions calc_tickadj-opts.def
19236593Sobrien.\" and the template file agman-cmd.tpl
20236593Sobrien.SH NAME
21236593Sobrien\f\*[B-Font]calc_tickadj\fP
22236593Sobrien\- Calculates optimal value for tick given ntp drift file.
23236593Sobrien.SH SYNOPSIS
24236593Sobrien\f\*[B-Font]calc_tickadj\fP
25236593Sobrien.\" Mixture of short (flag) options and long options
26236593Sobrien[\f\*[B-Font]\-flags\f[]]
27236593Sobrien[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
28236593Sobrien[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
29236593Sobrien.sp \n(Ppu
30236593Sobrien.ne 2
31236593Sobrien
32236593SobrienAll arguments must be options.
33236593Sobrien.sp \n(Ppu
34236593Sobrien.ne 2
35236593Sobrien
36236593Sobrien.SH DESCRIPTION
37236593SobrienThe \fBcalc_tickadj\fP script uses provided ntp drift file to generate optimal
38236593Sobrientick value. Generally, ntpd can do better job if the drift value is the
39236593Sobriensmallest possible number. 
40236593Sobrien.sp
41236593SobrienThe example output of 
42236593Sobrien.br
43236593Sobrien.in +4
44236593Sobrien.nf
45236593Sobrien$ ./calc_tickadj
46236593Sobrien81.699 (drift)
47236593Sobrien9999 usec; 9999779 nsec
48236593Sobrien$ cat /etc/ntp/drift
49236593Sobrien-23.159
50236593Sobrien.in -4
51236593Sobrien.fi
52236593Sobrien.sp
53237795Sobrienmeans the following. If tick on that box is 10,000, by making the value 9999
54236593Sobrienwe'll shift the box from its current drift of \-23.159 to a drift of 81.699, and
55237795Sobrienin doing so we'll speed the clock up a little every second instead of slowing
56236593Sobrienthe clock down a little.
57237795Sobrien.sp
58236593SobrienIf 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
59237795Sobrienvalue will be somewhere around 0.0.
60236593Sobrien.sp
61237795Sobrien\fBcalc_tickadj\fP tries to determine the the tick value by using
62236593Sobrien\fBtickadj\fP program from ntp package. If this doesn't work you can specify
63236593Sobriencurrent tick manually on command line.
64237795Sobrien.SH "OPTIONS"
65236593Sobrien.TP
66236593Sobrien.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-drift\-file\f[]=\f\*[I-Font]string\f[]
67236593SobrienNtp drift file to use.
68236593SobrienThe default
69237795Sobrien\f\*[I-Font]string\f[]
70236593Sobrienfor this option is:
71237795Sobrien.ti +4
72236593Sobrien /etc/ntp/drift
73236593Sobrien.sp
74237795SobrienUse the specified drift file for calculations
75236593Sobrien.TP
76237795Sobrien.NOP \f\*[B-Font]\-t\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-tick\f[]=\f\*[I-Font]number\f[]
77236593SobrienTick value of this host.
78236593SobrienThis option takes an integer number as its argument.
79237795Sobrien.sp
80236593SobrienThe current tick which to adjustment will be calculated
81236593Sobrien.TP
82236593Sobrien.NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
83236593SobrienDisplay usage information and exit.
84237795Sobrien.TP
85236593Sobrien.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
86237795SobrienPass the extended usage information through a pager.
87236593Sobrien.TP
88236593Sobrien.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[]}]}]
89236593SobrienOutput version of program and exit.  The default mode is `v', a simple
90236593Sobrienversion.  The `c' mode will print copyright information and `n' will
91236593Sobrienprint the full copyright notice.
92236593Sobrien.PP
93237795Sobrien.SH "EXIT STATUS"
94236593SobrienOne of the following exit values will be returned:
95237795Sobrien.TP
96236593Sobrien.NOP 0 " (EXIT_SUCCESS)"
97237795SobrienSuccessful program execution.
98237795Sobrien.TP
99237795Sobrien.NOP 1 " (EXIT_FAILURE)"
100236593SobrienThe operation failed or the command syntax was not valid.
101237795Sobrien.TP
102236593Sobrien.NOP 70 " (EX_SOFTWARE)"
103236593Sobrienlibopts had an internal operational error.  Please report
104237795Sobrienit to autogen-users@lists.sourceforge.net.  Thank you.
105236593Sobrien.PP
106236593Sobrien.SH "NOTES"
107236593SobrienThis manual page was \fIAutoGen\fP-erated from the \fBcalc_tickadj\fP
108237795Sobrienoption definitions.
109237795Sobrien