diff options
Diffstat (limited to 'sntp/sntp.mdoc.in')
-rw-r--r-- | sntp/sntp.mdoc.in | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/sntp/sntp.mdoc.in b/sntp/sntp.mdoc.in index 1ce2e39554b7..9b66208f171b 100644 --- a/sntp/sntp.mdoc.in +++ b/sntp/sntp.mdoc.in @@ -1,9 +1,9 @@ -.Dd December 19 2014 +.Dd February 4 2015 .Dt SNTP @SNTP_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc) .\" -.\" It has been AutoGen-ed December 19, 2014 at 07:51:38 AM by AutoGen 5.18.5pre4 +.\" It has been AutoGen-ed February 4, 2015 at 02:34:20 AM by AutoGen 5.18.5pre4 .\" From the definitions sntp-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME @@ -162,7 +162,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. .It Fl o Ar number , Fl \-ntpversion Ns = Ns Ar number Send \fBint\fP as our NTP protocol version. This option takes an integer number as its argument. @@ -251,14 +253,27 @@ is searched for within those directories. 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. -.It Li "sntp \-a ntpserver.somewhere" +.It Li "sntp \-Ss \-M 128 ntpserver.somewhere" With suitable privilege, run as a command or from a .Xr cron 8 job, -.Ic "sntp \-a" -will reset the local clock from a synchronized specified server, +.Ic "sntp \-Ss \-M 128 ntpserver.somewhere" +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. +.It Li "sntp \-S ntpserver.somewhere" +With suitable privilege, +run as a command +or from a +.Xr cron 8 +job, +.Ic "sntp \-S ntpserver.somewhere" +will set (step) the local clock from a synchronized specified server, like the (deprecated) .Xr ntpdate @NTPDATE_MS@ , or @@ -287,7 +302,7 @@ it to autogen\-users@lists.sourceforge.net. Thank you. .An "Harlan Stenn" .An "Dave Hart" .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 |