Deleted Added
full compact
sntp.html (316068) sntp.html (330106)
1<html lang="en">
2<head>
3<title>Sntp User's Manual</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Sntp User's Manual">
6<meta name="generator" content="makeinfo 4.7">
7<link title="Top" rel="top" href="#Top">
8<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">

--- 22 unchanged lines hidden (view full) ---

31<h2 class="unnumbered">Simple Network Time Protocol User Manual</h2>
32
33<p>This document describes the use of the NTP Project's <code>sntp</code> program,
34that can be used to query a Network Time Protocol (NTP) server and
35display the time offset of the system clock relative to the server
36clock. Run as root, it can correct the system clock to this offset as
37well. It can be run as an interactive command or from a cron job.
38
1<html lang="en">
2<head>
3<title>Sntp User's Manual</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Sntp User's Manual">
6<meta name="generator" content="makeinfo 4.7">
7<link title="Top" rel="top" href="#Top">
8<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">

--- 22 unchanged lines hidden (view full) ---

31<h2 class="unnumbered">Simple Network Time Protocol User Manual</h2>
32
33<p>This document describes the use of the NTP Project's <code>sntp</code> program,
34that can be used to query a Network Time Protocol (NTP) server and
35display the time offset of the system clock relative to the server
36clock. Run as root, it can correct the system clock to this offset as
37well. It can be run as an interactive command or from a cron job.
38
39 <p>This document applies to version 4.2.8p10 of <code>sntp</code>.
39 <p>This document applies to version 4.2.8p11 of <code>sntp</code>.
40
41 <p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
42IETF specification.
43
44 <div class="shortcontents">
45<h2>Short Contents</h2>
46<ul>
47<a href="#Top">Simple Network Time Protocol User Manual</a>

--- 123 unchanged lines hidden (view full) ---

171 <p>The text printed is the same whether selected with the <code>help</code> option
172(<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print
173the usage text by passing it through a pager program.
174<code>more-help</code> is disabled on platforms without a working
175<code>fork(2)</code> function. The <code>PAGER</code> environment variable is
176used to select the program, defaulting to <span class="file">more</span>. Both will exit
177with a status code of 0.
178
40
41 <p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4
42IETF specification.
43
44 <div class="shortcontents">
45<h2>Short Contents</h2>
46<ul>
47<a href="#Top">Simple Network Time Protocol User Manual</a>

--- 123 unchanged lines hidden (view full) ---

171 <p>The text printed is the same whether selected with the <code>help</code> option
172(<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print
173the usage text by passing it through a pager program.
174<code>more-help</code> is disabled on platforms without a working
175<code>fork(2)</code> function. The <code>PAGER</code> environment variable is
176used to select the program, defaulting to <span class="file">more</span>. Both will exit
177with a status code of 0.
178
179<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p10
180Usage: sntp [ -&lt;flag&gt; [&lt;val&gt;] | --&lt;name&gt;[{=| }&lt;val&gt;] ]... \
179<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.7p245
180USAGE: sntp [ -&lt;flag&gt; [&lt;val&gt;] | --&lt;name&gt;[{=| }&lt;val&gt;] ]... \
181 [ hostname-or-IP ...]
182 Flg Arg Option-Name Description
183 -4 no ipv4 Force IPv4 DNS name resolution
181 [ hostname-or-IP ...]
182 Flg Arg Option-Name Description
183 -4 no ipv4 Force IPv4 DNS name resolution
184 - prohibits the option 'ipv6'
184 - prohibits these options:
185 ipv6
185 -6 no ipv6 Force IPv6 DNS name resolution
186 -6 no ipv6 Force IPv6 DNS name resolution
186 - prohibits the option 'ipv4'
187 -a Num authentication Enable authentication with the key auth-keynumber
187 - prohibits these options:
188 ipv4
189 -a Num authentication Enable authentication with the key @var{auth-keynumber}
190 -B Num bctimeout The number of seconds to wait for broadcasts
188 -b Str broadcast Listen to the address specified for broadcast time sync
189 - may appear multiple times
190 -c Str concurrent Concurrently query all IPs returned for host-name
191 - may appear multiple times
192 -d no debug-level Increase debug verbosity level
193 - may appear multiple times
191 -b Str broadcast Listen to the address specified for broadcast time sync
192 - may appear multiple times
193 -c Str concurrent Concurrently query all IPs returned for host-name
194 - may appear multiple times
195 -d no debug-level Increase debug verbosity level
196 - may appear multiple times
194 -D Num set-debug-level Set the debug verbosity level
197 -D Str set-debug-level Set the debug verbosity level
195 - may appear multiple times
196 -g Num gap The gap (in milliseconds) between time requests
197 -K Fil kod KoD history filename
198 - may appear multiple times
199 -g Num gap The gap (in milliseconds) between time requests
200 -K Fil kod KoD history filename
198 -k Fil keyfile Look in this file for the key specified with -a
201 -k Fil keyfile Look in this file for the key specified with @option{-a}
199 -l Fil logfile Log to specified logfile
202 -l Fil logfile Log to specified logfile
200 -M Num steplimit Adjustments less than steplimit msec will be slewed
201 - it must be in the range:
203 -M Num steplimit Adjustments less than @var{steplimit} msec will be slewed
204 - It must be in the range:
202 greater than or equal to 0
205 greater than or equal to 0
203 -o Num ntpversion Send int as our NTP protocol version
204 - it must be in the range:
206 -o Num ntpversion Send @var{int} as our NTP version
207 - It must be in the range:
205 0 to 7
206 -r no usereservedport Use the NTP Reserved Port (port 123)
208 0 to 7
209 -r no usereservedport Use the NTP Reserved Port (port 123)
207 -S no step OK to 'step' the time with settimeofday(2)
208 -s no slew OK to 'slew' the time with adjtime(2)
209 -t Num timeout The number of seconds to wait for responses
210 -S no step OK to 'step' the time with @command{settimeofday(2)}
211 -s no slew OK to 'slew' the time with @command{adjtime(2)}
212 -u Num uctimeout The number of seconds to wait for unicast responses
210 no wait Wait for pending replies (if not setting the time)
213 no wait Wait for pending replies (if not setting the time)
211 - disabled as '--no-wait'
214 - disabled as --no-wait
212 - enabled by default
215 - enabled by default
213 opt version output version information and exit
214 -? no help display extended usage information and exit
215 -! no more-help extended usage information passed thru pager
216 -&gt; opt save-opts save the option state to a config file
217 -&lt; Str load-opts load options from a config file
218 - disabled as '--no-load-opts'
216 opt version Output version information and exit
217 -? no help Display extended usage information and exit
218 -! no more-help Extended usage information passed thru pager
219 -&gt; opt save-opts Save the option state to a config file
220 -&lt; Str load-opts Load options from a config file
221 - disabled as --no-load-opts
219 - may appear multiple times
220
221Options are specified by doubled hyphens and their name or by a single
222hyphen and the flag character.
223
224
222 - may appear multiple times
223
224Options are specified by doubled hyphens and their name or by a single
225hyphen and the flag character.
226
227
228
225The following option preset mechanisms are supported:
226 - reading file $HOME/.ntprc
227 - reading file ./.ntprc
228 - examining environment variables named SNTP_*
229
229The following option preset mechanisms are supported:
230 - reading file $HOME/.ntprc
231 - reading file ./.ntprc
232 - examining environment variables named SNTP_*
233
230Please send bug reports to: &lt;http://bugs.ntp.org, bugs@ntp.org&gt;
234please send bug reports to: http://bugs.ntp.org, bugs@ntp.org
231</pre>
232 <div class="node">
233<p><hr>
234<a name="sntp-ipv4"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-ipv6">sntp ipv6</a>,
235Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-usage">sntp usage</a>,
236Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
237<br>
238</div>

--- 386 unchanged lines hidden ---
235</pre>
236 <div class="node">
237<p><hr>
238<a name="sntp-ipv4"></a>Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-ipv6">sntp ipv6</a>,
239Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-usage">sntp usage</a>,
240Up:&nbsp;<a rel="up" accesskey="u" href="#sntp-Invocation">sntp Invocation</a>
241<br>
242</div>

--- 386 unchanged lines hidden ---