Home | History | Annotate | Line # | Download | only in calc_tickadj
      1  1.1.1.15  christos .Dd May 25 2024
      2       1.1  christos .Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands
      3   1.1.1.2  christos .Os
      4       1.1  christos .\"  EDIT THIS FILE WITH CAUTION  (calc_tickadj-opts.mdoc)
      5       1.1  christos .\"
      6  1.1.1.15  christos .\"  It has been AutoGen-ed  May 25, 2024 at 12:05:33 AM by AutoGen 5.18.16
      7       1.1  christos .\"  From the definitions    calc_tickadj-opts.def
      8       1.1  christos .\"  and the template file   agmdoc-cmd.tpl
      9       1.1  christos .Sh NAME
     10       1.1  christos .Nm calc_tickadj
     11       1.1  christos .Nd Calculates "optimal" value for tick given ntp drift file.
     12       1.1  christos .Sh SYNOPSIS
     13       1.1  christos .Nm
     14       1.1  christos .\" Mixture of short (flag) options and long options
     15       1.1  christos .Op Fl flags
     16       1.1  christos .Op Fl flag Op Ar value
     17       1.1  christos .Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
     18       1.1  christos .Pp
     19       1.1  christos All arguments must be options.
     20       1.1  christos .Pp
     21       1.1  christos .Sh DESCRIPTION
     22       1.1  christos The \fBcalc_tickadj\fP script uses provided ntp drift file to generate optimal
     23       1.1  christos tick value. Generally, ntpd can do better job if the drift value is the
     24       1.1  christos smallest possible number. 
     25       1.1  christos .sp
     26       1.1  christos The example output of 
     27       1.1  christos .Bd -literal -offset indent
     28       1.1  christos $ ./calc_tickadj
     29       1.1  christos 81.699 (drift)
     30       1.1  christos 9999 usec; 9999779 nsec
     31       1.1  christos $ cat /etc/ntp/drift
     32       1.1  christos -23.159
     33       1.1  christos .Ed
     34       1.1  christos .sp
     35       1.1  christos means the following. If tick on that box is 10,000, by making the value 9999
     36       1.1  christos we'll shift the box from its current drift of \-23.159 to a drift of 81.699, and
     37       1.1  christos in doing so we'll speed the clock up a little every second instead of slowing
     38       1.1  christos the clock down a little.
     39       1.1  christos .sp
     40       1.1  christos If 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
     41       1.1  christos value will be somewhere around 0.0.
     42       1.1  christos .sp
     43       1.1  christos \fBcalc_tickadj\fP tries to determine the the tick value by using
     44       1.1  christos \fBtickadj\fP program from ntp package. If this doesn't work you can specify
     45       1.1  christos current tick manually on command line.
     46       1.1  christos .Sh "OPTIONS"
     47       1.1  christos .Bl -tag
     48       1.1  christos .It  Fl d Ar string , Fl \-drift\-file Ns = Ns Ar string 
     49       1.1  christos Ntp drift file to use.
     50       1.1  christos The default
     51       1.1  christos .Ar string
     52       1.1  christos for this option is:
     53       1.1  christos .ti +4
     54       1.1  christos  /etc/ntp/drift
     55       1.1  christos .sp
     56       1.1  christos Use the specified drift file for calculations
     57       1.1  christos .It  Fl t Ar number , Fl \-tick Ns = Ns Ar number 
     58       1.1  christos Tick value of this host.
     59       1.1  christos This option takes an integer number as its argument.
     60       1.1  christos .sp
     61       1.1  christos The current tick which to adjustment will be calculated
     62       1.1  christos .It Fl \&? , Fl \-help
     63       1.1  christos Display usage information and exit.
     64       1.1  christos .It Fl \&! , Fl \-more\-help
     65       1.1  christos Pass the extended usage information through a pager.
     66   1.1.1.2  christos .It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
     67   1.1.1.2  christos Output version of program and exit.  The default mode is `v', a simple
     68   1.1.1.2  christos version.  The `c' mode will print copyright information and `n' will
     69   1.1.1.2  christos print the full copyright notice.
     70       1.1  christos .El
     71       1.1  christos .Sh "EXIT STATUS"
     72       1.1  christos One of the following exit values will be returned:
     73       1.1  christos .Bl -tag
     74       1.1  christos .It 0 " (EXIT_SUCCESS)"
     75       1.1  christos Successful program execution.
     76       1.1  christos .It 1 " (EXIT_FAILURE)"
     77       1.1  christos The operation failed or the command syntax was not valid.
     78       1.1  christos .It 70 " (EX_SOFTWARE)"
     79       1.1  christos libopts had an internal operational error.  Please report
     80       1.1  christos it to autogen\-users (a] lists.sourceforge.net.  Thank you.
     81       1.1  christos .El
     82       1.1  christos .Sh "NOTES"
     83       1.1  christos This manual page was \fIAutoGen\fP\-erated from the \fBcalc_tickadj\fP
     84       1.1  christos option definitions.
     85