calc_tickadj.mdoc.in revision 289764
1168404Spjd.Dd October 21 2015
2168404Spjd.Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands
3168404Spjd.Os
4168404Spjd.\"  EDIT THIS FILE WITH CAUTION  (calc_tickadj-opts.mdoc)
5185029Spjd.\"
6185029Spjd.\"  It has been AutoGen-ed  October 21, 2015 at 12:34:02 PM by AutoGen 5.18.5
7168404Spjd.\"  From the definitions    calc_tickadj-opts.def
8168404Spjd.\"  and the template file   agmdoc-cmd.tpl
9168404Spjd.Sh NAME
10168404Spjd.Nm calc_tickadj
11168404Spjd.Nd Calculates "optimal" value for tick given ntp drift file.
12168404Spjd.Sh SYNOPSIS
13168404Spjd.Nm
14168404Spjd.\" Mixture of short (flag) options and long options
15168404Spjd.Op Fl flags
16168404Spjd.Op Fl flag Op Ar value
17168404Spjd.Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
18168404Spjd.Pp
19168404SpjdAll arguments must be options.
20168404Spjd.Pp
21168404Spjd.Sh DESCRIPTION
22219089SpjdThe \fBcalc_tickadj\fP script uses provided ntp drift file to generate optimal
23168404Spjdtick value. Generally, ntpd can do better job if the drift value is the
24168404Spjdsmallest possible number. 
25258630Savg.sp
26258630SavgThe example output of 
27274303Sdelphij.Bd -literal -offset indent
28274304Sdelphij$ ./calc_tickadj
29258630Savg81.699 (drift)
30168404Spjd9999 usec; 9999779 nsec
31168404Spjd$ cat /etc/ntp/drift
32168404Spjd-23.159
33168404Spjd.Ed
34208047Smm.sp
35168404Spjdmeans the following. If tick on that box is 10,000, by making the value 9999
36168404Spjdwe'll shift the box from its current drift of \-23.159 to a drift of 81.699, and
37274304Sdelphijin doing so we'll speed the clock up a little every second instead of slowing
38168404Spjdthe clock down a little.
39168404Spjd.sp
40274304SdelphijIf 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
41168404Spjdvalue will be somewhere around 0.0.
42168404Spjd.sp
43168404Spjd\fBcalc_tickadj\fP tries to determine the the tick value by using
44168404Spjd\fBtickadj\fP program from ntp package. If this doesn't work you can specify
45168404Spjdcurrent tick manually on command line.
46168404Spjd.Sh "OPTIONS"
47168404Spjd.Bl -tag
48168404Spjd.It  Fl d Ar string , Fl \-drift\-file Ns = Ns Ar string 
49168404SpjdNtp drift file to use.
50168404SpjdThe default
51168404Spjd.Ar string
52219089Spjdfor this option is:
53219089Spjd.ti +4
54258630Savg /etc/ntp/drift
55258630Savg.sp
56168404SpjdUse the specified drift file for calculations
57168404Spjd.It  Fl t Ar number , Fl \-tick Ns = Ns Ar number 
58258630SavgTick value of this host.
59168404SpjdThis option takes an integer number as its argument.
60168404Spjd.sp
61258630SavgThe current tick which to adjustment will be calculated
62219089Spjd.It Fl \&? , Fl \-help
63168404SpjdDisplay usage information and exit.
64219089Spjd.It Fl \&! , Fl \-more\-help
65258630SavgPass the extended usage information through a pager.
66168404Spjd.It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
67168404SpjdOutput version of program and exit.  The default mode is `v', a simple
68219089Spjdversion.  The `c' mode will print copyright information and `n' will
69168404Spjdprint the full copyright notice.
70219089Spjd.El
71168404Spjd.Sh "EXIT STATUS"
72168404SpjdOne of the following exit values will be returned:
73168404Spjd.Bl -tag
74168404Spjd.It 0 " (EXIT_SUCCESS)"
75168404SpjdSuccessful program execution.
76219089Spjd.It 1 " (EXIT_FAILURE)"
77219089SpjdThe operation failed or the command syntax was not valid.
78219089Spjd.It 70 " (EX_SOFTWARE)"
79219089Spjdlibopts had an internal operational error.  Please report
80168404Spjdit to autogen\-users@lists.sourceforge.net.  Thank you.
81219089Spjd.El
82219089Spjd.Sh "NOTES"
83219089SpjdThis manual page was \fIAutoGen\fP\-erated from the \fBcalc_tickadj\fP
84219089Spjdoption definitions.
85219089Spjd