diff options
Diffstat (limited to 'sntp/sntp.1sntpman')
-rw-r--r-- | sntp/sntp.1sntpman | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/sntp/sntp.1sntpman b/sntp/sntp.1sntpman index 3d7fa7b..36bdfbd 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 "19 Dec 2014" "4.2.8" "User Commands" +.TH sntp 1sntpman "04 Feb 2015" "4.2.8p1" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-4dayXk/ag-feaqWk) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-apayaT/ag-zpaq_S) .\" -.\" It has been AutoGen-ed December 19, 2014 at 07:51:32 AM by AutoGen 5.18.5pre4 +.\" It has been AutoGen-ed February 4, 2015 at 02:34:13 AM by AutoGen 5.18.5pre4 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME @@ -188,7 +188,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. @@ -289,14 +291,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 @@ -331,7 +347,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 |