Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/sntp/sntp.html
Show All 30 Lines | |||||
<h2 class="unnumbered">Simple Network Time Protocol User Manual</h2> | <h2 class="unnumbered">Simple Network Time Protocol User Manual</h2> | ||||
<p>This document describes the use of the NTP Project's <code>sntp</code> program, | <p>This document describes the use of the NTP Project's <code>sntp</code> program, | ||||
that can be used to query a Network Time Protocol (NTP) server and | that can be used to query a Network Time Protocol (NTP) server and | ||||
display the time offset of the system clock relative to the server | display the time offset of the system clock relative to the server | ||||
clock. Run as root, it can correct the system clock to this offset as | clock. Run as root, it can correct the system clock to this offset as | ||||
well. It can be run as an interactive command or from a cron job. | well. It can be run as an interactive command or from a cron job. | ||||
<p>This document applies to version 4.2.8p4 of <code>sntp</code>. | <p>This document applies to version 4.2.8p5 of <code>sntp</code>. | ||||
<p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 | <p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 | ||||
IETF specification. | IETF specification. | ||||
<div class="shortcontents"> | <div class="shortcontents"> | ||||
<h2>Short Contents</h2> | <h2>Short Contents</h2> | ||||
<ul> | <ul> | ||||
<a href="#Top">Simple Network Time Protocol User Manual</a> | <a href="#Top">Simple Network Time Protocol User Manual</a> | ||||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | This is the automatically generated usage text for sntp. | ||||
<p>The text printed is the same whether selected with the <code>help</code> option | <p>The text printed is the same whether selected with the <code>help</code> option | ||||
(<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print | (<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print | ||||
the usage text by passing it through a pager program. | the usage text by passing it through a pager program. | ||||
<code>more-help</code> is disabled on platforms without a working | <code>more-help</code> is disabled on platforms without a working | ||||
<code>fork(2)</code> function. The <code>PAGER</code> environment variable is | <code>fork(2)</code> function. The <code>PAGER</code> environment variable is | ||||
used to select the program, defaulting to <span class="file">more</span>. Both will exit | used to select the program, defaulting to <span class="file">more</span>. Both will exit | ||||
with a status code of 0. | with a status code of 0. | ||||
<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p4 | <pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p5 | ||||
Usage: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \ | Usage: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \ | ||||
[ hostname-or-IP ...] | [ hostname-or-IP ...] | ||||
Flg Arg Option-Name Description | Flg Arg Option-Name Description | ||||
-4 no ipv4 Force IPv4 DNS name resolution | -4 no ipv4 Force IPv4 DNS name resolution | ||||
- prohibits the option 'ipv6' | - prohibits the option 'ipv6' | ||||
-6 no ipv6 Force IPv6 DNS name resolution | -6 no ipv6 Force IPv6 DNS name resolution | ||||
- prohibits the option 'ipv4' | - prohibits the option 'ipv4' | ||||
-a Num authentication Enable authentication with the key auth-keynumber | -a Num authentication Enable authentication with the key auth-keynumber | ||||
▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines |