1275970Scy.de1 NOP 2275970Scy. it 1 an-trap 3275970Scy. if \\n[.$] \,\\$*\/ 4275970Scy.. 5275970Scy.ie t \ 6275970Scy.ds B-Font [CB] 7275970Scy.ds I-Font [CI] 8275970Scy.ds R-Font [CR] 9275970Scy.el \ 10275970Scy.ds B-Font B 11275970Scy.ds I-Font I 12275970Scy.ds R-Font R 13338531Sdelphij.TH calc_tickadj 1calc_tickadjman "14 Aug 2018" "ntp (4.2.8p12)" "User Commands" 14275970Scy.\" 15338531Sdelphij.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-98aG9a/ag-j9aG8a) 16275970Scy.\" 17338531Sdelphij.\" It has been AutoGen-ed August 14, 2018 at 08:08:53 AM by AutoGen 5.18.5 18275970Scy.\" From the definitions calc_tickadj-opts.def 19275970Scy.\" and the template file agman-cmd.tpl 20275970Scy.SH NAME 21275970Scy\f\*[B-Font]calc_tickadj\fP 22275970Scy\- Calculates optimal value for tick given ntp drift file. 23275970Scy.SH SYNOPSIS 24275970Scy\f\*[B-Font]calc_tickadj\fP 25275970Scy.\" Mixture of short (flag) options and long options 26275970Scy[\f\*[B-Font]\-flags\f[]] 27275970Scy[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]] 28275970Scy[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]] 29275970Scy.sp \n(Ppu 30275970Scy.ne 2 31275970Scy 32275970ScyAll arguments must be options. 33275970Scy.sp \n(Ppu 34275970Scy.ne 2 35275970Scy 36275970Scy.SH DESCRIPTION 37275970ScyThe \fBcalc_tickadj\fP script uses provided ntp drift file to generate optimal 38275970Scytick value. Generally, ntpd can do better job if the drift value is the 39275970Scysmallest possible number. 40275970Scy.sp 41275970ScyThe example output of 42275970Scy.br 43275970Scy.in +4 44275970Scy.nf 45275970Scy$ ./calc_tickadj 46275970Scy81.699 (drift) 47275970Scy9999 usec; 9999779 nsec 48275970Scy$ cat /etc/ntp/drift 49275970Scy-23.159 50275970Scy.in -4 51275970Scy.fi 52275970Scy.sp 53275970Scymeans the following. If tick on that box is 10,000, by making the value 9999 54275970Scywe'll shift the box from its current drift of \-23.159 to a drift of 81.699, and 55275970Scyin doing so we'll speed the clock up a little every second instead of slowing 56275970Scythe clock down a little. 57275970Scy.sp 58275970ScyIf 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift 59275970Scyvalue will be somewhere around 0.0. 60275970Scy.sp 61275970Scy\fBcalc_tickadj\fP tries to determine the the tick value by using 62275970Scy\fBtickadj\fP program from ntp package. If this doesn't work you can specify 63275970Scycurrent tick manually on command line. 64275970Scy.SH "OPTIONS" 65275970Scy.TP 66275970Scy.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-drift\-file\f[]=\f\*[I-Font]string\f[] 67275970ScyNtp drift file to use. 68275970ScyThe default 69275970Scy\f\*[I-Font]string\f[] 70275970Scyfor this option is: 71275970Scy.ti +4 72275970Scy /etc/ntp/drift 73275970Scy.sp 74275970ScyUse the specified drift file for calculations 75275970Scy.TP 76275970Scy.NOP \f\*[B-Font]\-t\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-tick\f[]=\f\*[I-Font]number\f[] 77275970ScyTick value of this host. 78275970ScyThis option takes an integer number as its argument. 79275970Scy.sp 80275970ScyThe current tick which to adjustment will be calculated 81275970Scy.TP 82275970Scy.NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[] 83275970ScyDisplay usage information and exit. 84275970Scy.TP 85275970Scy.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[] 86275970ScyPass the extended usage information through a pager. 87275970Scy.TP 88275970Scy.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[]}]}] 89275970ScyOutput version of program and exit. The default mode is `v', a simple 90275970Scyversion. The `c' mode will print copyright information and `n' will 91275970Scyprint the full copyright notice. 92275970Scy.PP 93275970Scy.SH "EXIT STATUS" 94275970ScyOne of the following exit values will be returned: 95275970Scy.TP 96275970Scy.NOP 0 " (EXIT_SUCCESS)" 97275970ScySuccessful program execution. 98275970Scy.TP 99275970Scy.NOP 1 " (EXIT_FAILURE)" 100275970ScyThe operation failed or the command syntax was not valid. 101275970Scy.TP 102275970Scy.NOP 70 " (EX_SOFTWARE)" 103275970Scylibopts had an internal operational error. Please report 104275970Scyit to autogen-users@lists.sourceforge.net. Thank you. 105275970Scy.PP 106275970Scy.SH "NOTES" 107275970ScyThis manual page was \fIAutoGen\fP-erated from the \fBcalc_tickadj\fP 108275970Scyoption definitions. 109