ntpq.html (330106) | ntpq.html (338530) |
---|---|
1<html lang="en"> 2<head> 3<title>ntpq: Network Time Protocol Query User's Manual</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="ntpq: Network Time Protocol Query 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"> --- 30 unchanged lines hidden (view full) --- 39 40<h2 class="unnumbered">ntpq: Network Time Protocol Query User Manual</h2> 41 42<p>The <code>ntpq</code> utility program is used to 43monitor the operational status 44and determine the performance of 45<code>ntpd</code>, the NTP daemon. 46 | 1<html lang="en"> 2<head> 3<title>ntpq: Network Time Protocol Query User's Manual</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="ntpq: Network Time Protocol Query 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"> --- 30 unchanged lines hidden (view full) --- 39 40<h2 class="unnumbered">ntpq: Network Time Protocol Query User Manual</h2> 41 42<p>The <code>ntpq</code> utility program is used to 43monitor the operational status 44and determine the performance of 45<code>ntpd</code>, the NTP daemon. 46 |
47 <p>This document applies to version 4.2.8p11 of <code>ntpq</code>. | 47 <p>This document applies to version 4.2.8p12 of <code>ntpq</code>. |
48 49<ul class="menu"> 50<li><a accesskey="1" href="#ntpq-Description">ntpq Description</a> 51<li><a accesskey="2" href="#ntpq-Invocation">ntpq Invocation</a>: Invoking ntpq 52<li><a accesskey="3" href="#Usage">Usage</a> 53<li><a accesskey="4" href="#Internal-Commands">Internal Commands</a> 54<li><a accesskey="5" href="#Control-Message-Commands">Control Message Commands</a> 55<li><a accesskey="6" href="#Status-Words-and-Kiss-Codes">Status Words and Kiss Codes</a> --- 794 unchanged lines hidden (view full) --- 850 <p>The text printed is the same whether selected with the <code>help</code> option 851(<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print 852the usage text by passing it through a pager program. 853<code>more-help</code> is disabled on platforms without a working 854<code>fork(2)</code> function. The <code>PAGER</code> environment variable is 855used to select the program, defaulting to <span class="file">more</span>. Both will exit 856with a status code of 0. 857 | 48 49<ul class="menu"> 50<li><a accesskey="1" href="#ntpq-Description">ntpq Description</a> 51<li><a accesskey="2" href="#ntpq-Invocation">ntpq Invocation</a>: Invoking ntpq 52<li><a accesskey="3" href="#Usage">Usage</a> 53<li><a accesskey="4" href="#Internal-Commands">Internal Commands</a> 54<li><a accesskey="5" href="#Control-Message-Commands">Control Message Commands</a> 55<li><a accesskey="6" href="#Status-Words-and-Kiss-Codes">Status Words and Kiss Codes</a> --- 794 unchanged lines hidden (view full) --- 850 <p>The text printed is the same whether selected with the <code>help</code> option 851(<span class="option">--help</span>) or the <code>more-help</code> option (<span class="option">--more-help</span>). <code>more-help</code> will print 852the usage text by passing it through a pager program. 853<code>more-help</code> is disabled on platforms without a working 854<code>fork(2)</code> function. The <code>PAGER</code> environment variable is 855used to select the program, defaulting to <span class="file">more</span>. Both will exit 856with a status code of 0. 857 |
858<pre class="example">ntpq - standard NTP query program - Ver. 4.2.8p10 | 858<pre class="example">ntpq - standard NTP query program - Ver. 4.2.8p11 |
859Usage: ntpq [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...] 860 Flg Arg Option-Name Description 861 -4 no ipv4 Force IPv4 name resolution 862 - prohibits the option 'ipv6' 863 -6 no ipv6 Force IPv6 name resolution 864 - prohibits the option 'ipv4' 865 -c Str command run a command and exit 866 - may appear multiple times --- 412 unchanged lines hidden (view full) --- 1279 1280 <br><dt><code><a name="passwd"></a> passwd</code><dd>This command prompts for a password to authenticate requests. 1281The password must correspond to the key ID configured in <code>ntp.conf</code> for this purpose. 1282 1283 <br><dt><code><a name="quit"></a> quit</code><dd>Exit <code>ntpq</code>. 1284 1285 <br><dt><code><a name="raw"></a> raw</code><dd>Display server messages as received and without reformatting. 1286 | 859Usage: ntpq [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ host ...] 860 Flg Arg Option-Name Description 861 -4 no ipv4 Force IPv4 name resolution 862 - prohibits the option 'ipv6' 863 -6 no ipv6 Force IPv6 name resolution 864 - prohibits the option 'ipv4' 865 -c Str command run a command and exit 866 - may appear multiple times --- 412 unchanged lines hidden (view full) --- 1279 1280 <br><dt><code><a name="passwd"></a> passwd</code><dd>This command prompts for a password to authenticate requests. 1281The password must correspond to the key ID configured in <code>ntp.conf</code> for this purpose. 1282 1283 <br><dt><code><a name="quit"></a> quit</code><dd>Exit <code>ntpq</code>. 1284 1285 <br><dt><code><a name="raw"></a> raw</code><dd>Display server messages as received and without reformatting. 1286 |
1287 timeout millseconds | 1287 <br><dt><code><a name="timeout"></a> timeout </code><kbd>milliseconds</kbd><dd>Specify a timeout period for responses to server queries. |
1288The default is about 5000 milliseconds. 1289Note that since <code>ntpq</code> retries each query once after a timeout 1290the total waiting time for a timeout will be twice the timeout value set. 1291 1292 </dl> 1293 1294<div class="node"> 1295<p><hr> --- 644 unchanged lines hidden --- | 1288The default is about 5000 milliseconds. 1289Note that since <code>ntpq</code> retries each query once after a timeout 1290the total waiting time for a timeout will be twice the timeout value set. 1291 1292 </dl> 1293 1294<div class="node"> 1295<p><hr> --- 644 unchanged lines hidden --- |