Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ntp/ntpdc/ntpdc.html
Show All 30 Lines | |||||
<h2 class="unnumbered">ntpdc: NTPD Control User Manual</h2> | <h2 class="unnumbered">ntpdc: NTPD Control User Manual</h2> | ||||
<p>This document describes the use of the NTP Project's <code>ntpdc</code> program, | <p>This document describes the use of the NTP Project's <code>ntpdc</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>ntpdc</code>. | <p>This document applies to version 4.2.8p5 of <code>ntpdc</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">ntpdc: NTPD Control User Manual</a> | <a href="#Top">ntpdc: NTPD Control User Manual</a> | ||||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | This is the automatically generated usage text for ntpdc. | ||||
<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">ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p4 | <pre class="example">ntpdc - vendor-specific NTPD control program - Ver. 4.2.8p5 | ||||
Usage: ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...] | Usage: ntpdc [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...] | ||||
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' | ||||
-c Str command run a command and exit | -c Str command run a command and exit | ||||
- may appear multiple times | - may appear multiple times | ||||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |