1calc_tickadj(1calc_tickadjman) User Commands calc_tickadj(1calc_tickadjman)
2
3
4
6 calc_tickadj - Calculates optimal value for tick given ntp drift file.
7
9 calc_tickadj [-flags] [-flag [value]] [--option-name[[=| ]value]]
10
11 All arguments must be options.
12
13
15 The calc_tickadj script uses provided ntp drift file to generate opti‐
16 mal tick value. Generally, ntpd can do better job if the drift value is
17 the smallest possible number.
18
19 The example output of
20 $ ./calc_tickadj
21 81.699 (drift)
22 9999 usec; 9999779 nsec
23 $ cat /var/lib/ntp/drift
24 -23.159
25
26 means the following. If tick on that box is 10,000, by making the value
27 9999 we'll shift the box from its current drift of -23.159 to a drift
28 of 81.699, and in doing so we'll speed the clock up a little every sec‐
29 ond instead of slowing the clock down a little.
30
31 If 'tick' on that box is 10,000,000 then by setting it to 9999779 the
32 drift value will be somewhere around 0.0.
33
34 calc_tickadj tries to determine the the tick value by using tickadj
35 program from ntp package. If this doesn't work you can specify current
36 tick manually on command line.
37
39 -d string, --drift-file=string
40 Ntp drift file to use. The default string for this option is:
41 /var/lib/ntp/drift
42
43 Use the specified drift file for calculations
44
45 -t number, --tick=number
46 Tick value of this host. This option takes an integer number as
47 its argument.
48
49 The current tick which to adjustment will be calculated
50
51 -?, --help
52 Display usage information and exit.
53
54 -!, --more-help
55 Pass the extended usage information through a pager.
56
57 -v [{v|c|n --version [{v|c|n}]}]
58 Output version of program and exit. The default mode is `v', a
59 simple version. The `c' mode will print copyright information
60 and `n' will print the full copyright notice.
61
63 One of the following exit values will be returned:
64
65 0 (EXIT_SUCCESS)
66 Successful program execution.
67
68 1 (EXIT_FAILURE)
69 The operation failed or the command syntax was not valid.
70
71 70 (EX_SOFTWARE)
72 libopts had an internal operational error. Please report it to
73 autogen-users@lists.sourceforge.net. Thank you.
74
76 This manual page was AutoGen-erated from the calc_tickadj option defi‐
77 nitions.
78
79
80
81ntp (4.2.8p13) 20 Feb 2019 calc_tickadj(1calc_tickadjman)