diff options
Diffstat (limited to 'sntp/sntp.1sntpman')
-rw-r--r-- | sntp/sntp.1sntpman | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/sntp/sntp.1sntpman b/sntp/sntp.1sntpman index 15b4dff..1b636e9 100644 --- a/sntp/sntp.1sntpman +++ b/sntp/sntp.1sntpman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH sntp 1sntpman "02 Dec 2014" "4.2.7p482" "User Commands" +.TH sntp 1sntpman "07 Apr 2015" "4.2.8p2" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-GgaaeT/ag-5ga4cT) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-E6aqmA/ag-76ailA) .\" -.\" It has been AutoGen-ed December 2, 2014 at 08:59:25 AM by AutoGen 5.18.5pre4 +.\" It has been AutoGen-ed April 7, 2015 at 04:18:00 AM by AutoGen 5.18.5pre4 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME @@ -72,7 +72,8 @@ Otherwise, only the is displayed. Finally, the \fIstratum\f[] -of the host is reported. +of the host is reported +and the leap indicator is decoded and displayed. .SH "OPTIONS" .TP .NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[] @@ -156,7 +157,8 @@ for this option is: /var/db/ntp-kod .sp Specifies the filename to be used for the persistent history of KoD -responses received from servers. +responses received from servers. If the file does not exist, a +warning message will be displayed. The file will not be created. .TP .NOP \f\*[B-Font]\-k\f[] \f\*[I-Font]file\-name\f[], \f\*[B-Font]\-\-keyfile\f[]=\f\*[I-Font]file\-name\f[] Look in this file for the key specified with \fB-a\fP. @@ -187,7 +189,9 @@ greater than or equal to 0 .sp If the time adjustment is less than \fIsteplimit\fP milliseconds, slew the amount using \fBadjtime(2)\fP. Otherwise, step the -correction using \fBsettimeofday(2)\fP. +correction using \fBsettimeofday(2)\fP. The default value is 0, +which means all adjustments will be stepped. This is a feature, as +different situations demand different values. .TP .NOP \f\*[B-Font]\-o\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-ntpversion\f[]=\f\*[I-Font]number\f[] Send \fBint\fP as our NTP protocol version. @@ -288,14 +292,28 @@ is the simplest use of this program and can be run as an unprivileged command to check the current time and error in the local clock. .TP 7 -.NOP \f[C]sntp \-a ntpserver.somewhere\f[] +.NOP \f[C]sntp \-Ss \-M 128 ntpserver.somewhere\f[] With suitable privilege, run as a command or from a \fCcron\fR(8)\f[] job, -\f\*[B-Font]sntp \-a\f[] -will reset the local clock from a synchronized specified server, +\f\*[B-Font]sntp \-Ss \-M 128 ntpserver.somewhere\f[] +will request the time from the server, +and if that server reports that it is synchronized +then if the offset adjustment is less than 128 milliseconds +the correction will be slewed, +and if the correction is more than 128 milliseconds +the correction will be stepped. +.TP 7 +.NOP \f[C]sntp \-S ntpserver.somewhere\f[] +With suitable privilege, +run as a command +or from a +\fCcron\fR(8)\f[] +job, +\f\*[B-Font]sntp \-S ntpserver.somewhere\f[] +will set (step) the local clock from a synchronized specified server, like the (deprecated) \fCntpdate\fR(1ntpdatemdoc)\f[], or @@ -330,7 +348,7 @@ it to autogen-users@lists.sourceforge.net. Thank you. .NOP "Dave Hart" .br .SH "COPYRIGHT" -Copyright (C) 1970-2014 The University of Delaware all rights reserved. +Copyright (C) 1992-2015 The University of Delaware and Network Time Foundation all rights reserved. This program is released under the terms of the NTP license, <http://ntp.org/license>. .SH "BUGS" Please send bug reports to: http://bugs.ntp.org, bugs@ntp.org |