[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d47e7ea9] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f4a1b66] | 7 | <!ENTITY ntp-download-http "https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-&ntp-version;.tar.gz">
|
---|
| 8 | <!ENTITY ntp-download-ftp " ">
|
---|
[8c2e1c4] | 9 | <!ENTITY ntp-md5sum "a15558df580bd1b955a105a8b91c078f">
|
---|
[5bdf4ce] | 10 | <!ENTITY ntp-size "6.8 MB">
|
---|
[8c2e1c4] | 11 | <!ENTITY ntp-buildsize "99 MB (with tests)">
|
---|
[5bdf4ce] | 12 | <!ENTITY ntp-time "0.8 SBU (With tests; both using parallelism=4)">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[286c613d] | 15 | <sect1 id="ntp" xreflabel="ntp-&ntp-version;">
|
---|
[dc6715a] | 16 | <?dbhtml filename="ntp.html"?>
|
---|
[56ab82c] | 17 |
|
---|
| 18 |
|
---|
[286c613d] | 19 | <title>ntp-&ntp-version;</title>
|
---|
[56ab82c] | 20 |
|
---|
[dc6715a] | 21 | <indexterm zone="ntp">
|
---|
[286c613d] | 22 | <primary sortas="a-ntp">ntp</primary>
|
---|
[dc6715a] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[286c613d] | 26 | <title>Introduction to ntp</title>
|
---|
[56ab82c] | 27 |
|
---|
[b51fe6e] | 28 | <para>
|
---|
| 29 | The <application>ntp</application> package contains a client and server
|
---|
| 30 | to keep the time synchronized between various computers over
|
---|
| 31 | a network. This package is the official reference implementation of the
|
---|
| 32 | NTP protocol.
|
---|
| 33 | </para>
|
---|
[56ab82c] | 34 |
|
---|
[2314cd7] | 35 | &lfs120_checked;
|
---|
[6564aa1] | 36 |
|
---|
[dc6715a] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[b51fe6e] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&ntp-download-http;"/>
|
---|
| 42 | </para>
|
---|
[dc6715a] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[b51fe6e] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&ntp-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[dc6715a] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[b51fe6e] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &ntp-md5sum;
|
---|
| 52 | </para>
|
---|
[dc6715a] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[b51fe6e] | 55 | <para>
|
---|
| 56 | Download size: &ntp-size;
|
---|
| 57 | </para>
|
---|
[dc6715a] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[b51fe6e] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &ntp-buildsize;
|
---|
| 62 | </para>
|
---|
[dc6715a] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[b51fe6e] | 65 | <para>
|
---|
| 66 | Estimated build time: &ntp-time;
|
---|
| 67 | </para>
|
---|
[2174baa] | 68 | </listitem>
|
---|
[dc6715a] | 69 | </itemizedlist>
|
---|
[56ab82c] | 70 |
|
---|
[286c613d] | 71 | <bridgehead renderas="sect3">ntp Dependencies</bridgehead>
|
---|
[56ab82c] | 72 |
|
---|
[77882028] | 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[4392a40] | 75 | <xref linkend="perl-io-socket-ssl"/>
|
---|
[77882028] | 76 | </para>
|
---|
[0d0f150] | 77 |
|
---|
[77882028] | 78 | <!-- Tested 4.2.8p11 with neither wget nor lynx on system: Not required.
|
---|
[b3dc2ba] | 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[45029cb] | 81 | <xref role="runtime" linkend="wget"/> (runtime, for
|
---|
| 82 | <command>update-leap</command>)
|
---|
[77882028] | 83 | <!- - The download code for update-leap uses the File::Fetch perl module,
|
---|
[b51fe6e] | 84 | which may use wget, or lynx, or some core perl modules, so maybe move
|
---|
| 85 | to optional - ->
|
---|
[e3cbfaf] | 86 | </para>
|
---|
[77882028] | 87 | -->
|
---|
[dc6715a] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[03f32bb] | 89 | <para role="optional">
|
---|
[56605b9] | 90 | <xref linkend="libcap-pam"/>,
|
---|
[8558044] | 91 | <xref linkend="libevent"/>,
|
---|
[75e3e09] | 92 | <ulink url="https://www.thrysoee.dk/editline/">libedit</ulink>, and
|
---|
[94b42903] | 93 | <ulink url="https://www.gnu.org/software/autogen/">libopts from AutoGen</ulink>
|
---|
[03f32bb] | 94 | </para>
|
---|
[56ab82c] | 95 |
|
---|
[42ddc30] | 96 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[061ec9d] | 97 | <ulink url="&blfs-wiki;/ntp"/></para>
|
---|
| 98 |
|
---|
[dc6715a] | 99 | </sect2>
|
---|
[56ab82c] | 100 |
|
---|
[dc6715a] | 101 | <sect2 role="installation">
|
---|
[286c613d] | 102 | <title>Installation of ntp</title>
|
---|
[dc6715a] | 103 |
|
---|
[e38cfca] | 104 | <para>
|
---|
| 105 | There should be a dedicated user and group to take control
|
---|
| 106 | of the <command>ntpd</command> daemon after it is
|
---|
| 107 | started. Issue the following commands as the
|
---|
| 108 | <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen role="root"><userinput>groupadd -g 87 ntp &&
|
---|
| 112 | useradd -c "Network Time Protocol" -d /var/lib/ntp -u 87 \
|
---|
| 113 | -g ntp -s /bin/false ntp</userinput></screen>
|
---|
| 114 |
|
---|
[b3dc2ba] | 115 | <!-- At least one of the issues has been reported upstream. The next para
|
---|
| 116 | is valid for 4.8.2p10 -->
|
---|
| 117 | <para>
|
---|
| 118 | The <command>update-leap</command> command needs to be fixed in order
|
---|
| 119 | to run properly:
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
[77882028] | 122 | <screen><userinput>sed -e 's/"(\\S+)"/"?([^\\s"]+)"?/' \
|
---|
[b3dc2ba] | 123 | -i scripts/update-leap/update-leap.in</userinput></screen>
|
---|
| 124 |
|
---|
[ab7470e] | 125 | <para>
|
---|
| 126 | Now fix an issue introduced with glibc-2.34:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <screen><userinput>sed -e 's/#ifndef __sun/#if !defined(__sun) \&\& !defined(__GLIBC__)/' \
|
---|
| 130 | -i libntp/work_thread.c</userinput></screen>
|
---|
| 131 |
|
---|
[b3dc2ba] | 132 | <para>
|
---|
| 133 | Install <application>ntp</application> by running
|
---|
| 134 | the following commands:
|
---|
| 135 | </para>
|
---|
[dc6715a] | 136 |
|
---|
[544939d] | 137 | <screen><userinput>./configure --prefix=/usr \
|
---|
[78b797d] | 138 | --bindir=/usr/sbin \
|
---|
[2dcc08c0] | 139 | --sysconfdir=/etc \
|
---|
| 140 | --enable-linuxcaps \
|
---|
[78b797d] | 141 | --with-lineeditlibs=readline \
|
---|
| 142 | --docdir=/usr/share/doc/ntp-&ntp-version; &&
|
---|
[11cf9f2] | 143 | make</userinput></screen>
|
---|
| 144 |
|
---|
[8761710] | 145 | <!-- https://bugs.ntp.org/show_bug.cgi?id=3688
|
---|
| 146 | It should be fixed in the next ntp release. -->
|
---|
[5bdf4ce] | 147 | <!--<para>The test suite of this package is broken with GCC 10 or later.</para>
|
---|
| 148 | Now works OK-->
|
---|
[8761710] | 149 |
|
---|
[b3dc2ba] | 150 | <para>
|
---|
| 151 | To test the results, issue: <command>make check</command>.
|
---|
| 152 | </para>
|
---|
[56ab82c] | 153 |
|
---|
[b3dc2ba] | 154 | <para>
|
---|
| 155 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 156 | </para>
|
---|
[56ab82c] | 157 |
|
---|
[339fbfb9] | 158 | <screen role="root"><userinput>make install &&
|
---|
[78b797d] | 159 | install -v -o ntp -g ntp -d /var/lib/ntp</userinput></screen>
|
---|
[36474cb] | 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
[b51fe6e] | 166 | <para>
|
---|
| 167 | <envar>CFLAGS="-O2 -g -fPIC"</envar>: This environment variable
|
---|
| 168 | is necessary to generate Position Independent Code needed for
|
---|
| 169 | use in the package libraries.
|
---|
| 170 | </para>
|
---|
[eecae1f9] | 171 |
|
---|
[b51fe6e] | 172 | <para>
|
---|
| 173 | <parameter>--bindir=/usr/sbin</parameter>: This parameter places
|
---|
| 174 | the administrative programs in <filename
|
---|
| 175 | class="directory">/usr/sbin</filename>.
|
---|
| 176 | </para>
|
---|
[11cf9f2] | 177 |
|
---|
[b51fe6e] | 178 | <para>
|
---|
| 179 | <parameter>--enable-linuxcaps</parameter>: ntpd is run as user
|
---|
| 180 | ntp, so use Linux capabilities for non-root clock control.
|
---|
| 181 | </para>
|
---|
[2dcc08c0] | 182 |
|
---|
[b51fe6e] | 183 | <para>
|
---|
| 184 | <parameter>--with-lineeditlibs=readline</parameter>: This switch
|
---|
| 185 | enables <application>Readline</application> support for
|
---|
| 186 | <command>ntpdc</command> and <command>ntpq</command> programs. If omitted,
|
---|
| 187 | <application>libedit</application> will be used if installed, otherwise no
|
---|
[2c87187] | 188 | readline capabilities will be compiled.
|
---|
[b51fe6e] | 189 | </para>
|
---|
[a01b1bf] | 190 |
|
---|
[dc6715a] | 191 | </sect2>
|
---|
[56ab82c] | 192 |
|
---|
[dc6715a] | 193 | <sect2 role="configuration">
|
---|
[286c613d] | 194 | <title>Configuring ntp</title>
|
---|
[56ab82c] | 195 |
|
---|
[dc6715a] | 196 | <sect3 id="ntp-config">
|
---|
| 197 | <title>Config Files</title>
|
---|
[56ab82c] | 198 |
|
---|
[b51fe6e] | 199 | <para>
|
---|
| 200 | <filename>/etc/ntp.conf</filename>
|
---|
| 201 | </para>
|
---|
[56ab82c] | 202 |
|
---|
[dc6715a] | 203 | <indexterm zone="ntp ntp-config">
|
---|
| 204 | <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
|
---|
| 205 | </indexterm>
|
---|
[56ab82c] | 206 |
|
---|
[dc6715a] | 207 | </sect3>
|
---|
[56ab82c] | 208 |
|
---|
[dc6715a] | 209 | <sect3>
|
---|
| 210 | <title>Configuration Information</title>
|
---|
| 211 |
|
---|
[b51fe6e] | 212 | <para>
|
---|
| 213 | The following configuration file first defines various ntp
|
---|
| 214 | servers with open access from different continents. Second, it
|
---|
| 215 | creates a drift file where <command>ntpd</command> stores the
|
---|
| 216 | frequency offset and a pid file to store the
|
---|
| 217 | <command>ntpd</command> process ID. Third, it defines the location
|
---|
| 218 | for the leap-second definition file
|
---|
| 219 | <filename>/etc/ntp.leapseconds</filename>, that the
|
---|
| 220 | <command>update-leap</command> script checks and updates, when
|
---|
| 221 | necessary. This script can be run as a cron job and the
|
---|
| 222 | <application>ntp</application> developers recommend a frequency of
|
---|
| 223 | about three weeks for the updates. Since the documentation included
|
---|
| 224 | with the package is sparse, visit the ntp website at
|
---|
[75e3e09] | 225 | <ulink url="https://www.ntp.org/"/> and
|
---|
| 226 | <ulink url="https://www.ntppool.org/"/> for more information.
|
---|
[b51fe6e] | 227 | </para>
|
---|
[dc6715a] | 228 |
|
---|
| 229 | <screen role="root"><userinput>cat > /etc/ntp.conf << "EOF"
|
---|
[6e26273] | 230 | <literal># Asia
|
---|
[bca6dfb6] | 231 | server 0.asia.pool.ntp.org
|
---|
[d47e7ea9] | 232 |
|
---|
| 233 | # Australia
|
---|
[bca6dfb6] | 234 | server 0.oceania.pool.ntp.org
|
---|
[56ab82c] | 235 |
|
---|
[d47e7ea9] | 236 | # Europe
|
---|
[ea57941f] | 237 | server 0.europe.pool.ntp.org
|
---|
[d47e7ea9] | 238 |
|
---|
| 239 | # North America
|
---|
[ea57941f] | 240 | server 0.north-america.pool.ntp.org
|
---|
| 241 |
|
---|
| 242 | # South America
|
---|
[bca6dfb6] | 243 | server 2.south-america.pool.ntp.org
|
---|
[d47e7ea9] | 244 |
|
---|
[1e72251e] | 245 | driftfile /var/lib/ntp/ntp.drift
|
---|
[ef0722a] | 246 | pidfile /run/ntpd.pid
|
---|
[ab6a3f3] | 247 |
|
---|
[92195dd1] | 248 | leapfile /var/lib/ntp/ntp.leapseconds</literal>
|
---|
[78b797d] | 249 | EOF</userinput></screen>
|
---|
| 250 |
|
---|
[39159bf] | 251 | <para>
|
---|
| 252 | You may wish to add a <quote>Security session</quote>. For
|
---|
[b51fe6e] | 253 | explanations, see <ulink url=
|
---|
| 254 | "https://www.eecis.udel.edu/~mills/ntp/html/accopt.html#restrict"/>.
|
---|
[39159bf] | 255 | </para>
|
---|
[78b797d] | 256 |
|
---|
| 257 | <screen role="root"><userinput>cat >> /etc/ntp.conf << "EOF"
|
---|
| 258 | <literal># Security session
|
---|
[e5bb823] | 259 | restrict default limited kod nomodify notrap nopeer noquery
|
---|
[78b797d] | 260 | restrict -6 default limited kod nomodify notrap nopeer noquery
|
---|
| 261 |
|
---|
| 262 | restrict 127.0.0.1
|
---|
| 263 | restrict ::1</literal>
|
---|
[dc6715a] | 264 | EOF</userinput></screen>
|
---|
| 265 |
|
---|
| 266 | </sect3>
|
---|
[56ab82c] | 267 |
|
---|
[dc6715a] | 268 | <sect3 id="ntp-init">
|
---|
| 269 | <title>Synchronizing the Time</title>
|
---|
| 270 |
|
---|
[b51fe6e] | 271 | <para>
|
---|
| 272 | There are two options. Option one is to run <command>ntpd</command>
|
---|
| 273 | continuously and allow it to synchronize the time in a gradual manner.
|
---|
| 274 | The other option is to run <command>ntpd</command> periodically (using
|
---|
| 275 | cron) and update the time each time <command>ntpd</command> is
|
---|
| 276 | scheduled.
|
---|
| 277 | </para>
|
---|
[56ab82c] | 278 |
|
---|
[b51fe6e] | 279 | <para>
|
---|
| 280 | If you choose Option one, then install the
|
---|
| 281 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/ntp</filename>
|
---|
| 282 | init script</phrase>
|
---|
| 283 | <phrase revision="systemd"><filename>ntpd.service</filename>
|
---|
| 284 | unit</phrase>
|
---|
| 285 | included in the
|
---|
| 286 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
| 287 | <xref linkend="systemd-units" revision="systemd"/> package.
|
---|
| 288 | </para>
|
---|
[56ab82c] | 289 |
|
---|
[7b478500] | 290 | <indexterm zone="ntp ntp-init" revision="sysv">
|
---|
[dc6715a] | 291 | <primary sortas="f-ntp">ntp</primary>
|
---|
[56ab82c] | 292 | </indexterm>
|
---|
[dc6715a] | 293 |
|
---|
[7b478500] | 294 | <indexterm zone="ntp ntp-init" revision="systemd">
|
---|
| 295 | <primary sortas="f-ntpd">ntpd.service</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 |
|
---|
[286c613d] | 298 | <screen role="root"><userinput>make install-ntpd</userinput></screen>
|
---|
[dc6715a] | 299 |
|
---|
[b51fe6e] | 300 | <para>
|
---|
| 301 | If you prefer to run <command>ntpd</command> periodically, add the
|
---|
| 302 | following command to <systemitem class="username">root</systemitem>'s
|
---|
| 303 | <filename>crontab</filename>:
|
---|
| 304 | </para>
|
---|
[56ab82c] | 305 |
|
---|
[dc6715a] | 306 | <screen><literal>ntpd -q</literal></screen>
|
---|
| 307 |
|
---|
[b51fe6e] | 308 | <para revision="sysv">
|
---|
| 309 | Execute the following command if you would like to set the hardware
|
---|
| 310 | clock to the current system time at shutdown and reboot:
|
---|
| 311 | </para>
|
---|
[dc6715a] | 312 |
|
---|
[7b478500] | 313 | <screen role="root" revision="sysv"><userinput>ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
|
---|
[e3353b3] | 314 | ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>
|
---|
[dc6715a] | 315 |
|
---|
[b51fe6e] | 316 | <para revision="sysv">
|
---|
| 317 | The other way around is already set up by LFS.
|
---|
| 318 | </para>
|
---|
[56ab82c] | 319 |
|
---|
[dc6715a] | 320 | </sect3>
|
---|
[56ab82c] | 321 |
|
---|
[dc6715a] | 322 | </sect2>
|
---|
[56ab82c] | 323 |
|
---|
[dc6715a] | 324 | <sect2 role="content">
|
---|
| 325 | <title>Contents</title>
|
---|
[56ab82c] | 326 |
|
---|
[dc6715a] | 327 | <segmentedlist>
|
---|
| 328 | <segtitle>Installed Programs</segtitle>
|
---|
| 329 | <segtitle>Installed Libraries</segtitle>
|
---|
[78b797d] | 330 | <segtitle>Installed Directories</segtitle>
|
---|
[56ab82c] | 331 |
|
---|
[dc6715a] | 332 | <seglistitem>
|
---|
[78b797d] | 333 | <seg>calc_tickadj, ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq,
|
---|
[ab6a3f3] | 334 | ntptime, ntptrace, sntp, tickadj and update-leap</seg>
|
---|
[dc6715a] | 335 | <seg>None</seg>
|
---|
[78b797d] | 336 | <seg>/usr/share/ntp,
|
---|
| 337 | /usr/share/doc/ntp-4.2.8 and
|
---|
| 338 | /var/lib/ntp</seg>
|
---|
[dc6715a] | 339 | </seglistitem>
|
---|
| 340 | </segmentedlist>
|
---|
[56ab82c] | 341 |
|
---|
[dc6715a] | 342 | <variablelist>
|
---|
| 343 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 344 | <?dbfo list-presentation="list"?>
|
---|
| 345 | <?dbhtml list-presentation="table"?>
|
---|
[56ab82c] | 346 |
|
---|
[78b797d] | 347 | <varlistentry id="calc_tickadj">
|
---|
| 348 | <term><command>calc_tickadj</command></term>
|
---|
| 349 | <listitem>
|
---|
[b51fe6e] | 350 | <para>
|
---|
[4c24eb0a] | 351 | calculates optimal value for tick given ntp drift file
|
---|
[b51fe6e] | 352 | </para>
|
---|
[78b797d] | 353 | <indexterm zone="ntp calc_tickadj">
|
---|
| 354 | <primary sortas="b-calc_tickadj">calc_tickadj</primary>
|
---|
| 355 | </indexterm>
|
---|
| 356 | </listitem>
|
---|
| 357 | </varlistentry>
|
---|
| 358 |
|
---|
[dc6715a] | 359 | <varlistentry id="ntp-keygen">
|
---|
| 360 | <term><command>ntp-keygen</command></term>
|
---|
| 361 | <listitem>
|
---|
[b51fe6e] | 362 | <para>
|
---|
| 363 | generates cryptographic data files used by the NTPv4 authentication
|
---|
[4c24eb0a] | 364 | and identification schemes
|
---|
[b51fe6e] | 365 | </para>
|
---|
[dc6715a] | 366 | <indexterm zone="ntp ntp-keygen">
|
---|
| 367 | <primary sortas="b-ntp-keygen">ntp-keygen</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
[56ab82c] | 371 |
|
---|
[dc6715a] | 372 | <varlistentry id="ntp-wait">
|
---|
| 373 | <term><command>ntp-wait</command></term>
|
---|
| 374 | <listitem>
|
---|
[b51fe6e] | 375 | <para>
|
---|
| 376 | is useful at boot time, to delay the boot sequence until
|
---|
[4c24eb0a] | 377 | <command>ntpd</command> has set the time
|
---|
[b51fe6e] | 378 | </para>
|
---|
[dc6715a] | 379 | <indexterm zone="ntp ntp-wait">
|
---|
| 380 | <primary sortas="b-ntp-wait">ntp-wait</primary>
|
---|
| 381 | </indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
[56ab82c] | 384 |
|
---|
[dc6715a] | 385 | <varlistentry id="ntpd">
|
---|
| 386 | <term><command>ntpd</command></term>
|
---|
| 387 | <listitem>
|
---|
[b51fe6e] | 388 | <para>
|
---|
| 389 | is a ntp daemon that runs in the background and keeps
|
---|
| 390 | the date and time synchronized based on response from configured
|
---|
[4c24eb0a] | 391 | ntp servers. It also functions as a ntp server
|
---|
[b51fe6e] | 392 | </para>
|
---|
[dc6715a] | 393 | <indexterm zone="ntp ntpd">
|
---|
| 394 | <primary sortas="b-ntpd">ntpd</primary>
|
---|
| 395 | </indexterm>
|
---|
| 396 | </listitem>
|
---|
| 397 | </varlistentry>
|
---|
[56ab82c] | 398 |
|
---|
[dc6715a] | 399 | <varlistentry id="ntpdate">
|
---|
| 400 | <term><command>ntpdate</command></term>
|
---|
| 401 | <listitem>
|
---|
[b51fe6e] | 402 | <para>
|
---|
| 403 | is a client program that sets the date and time based on
|
---|
[4c24eb0a] | 404 | the response from an ntp server. This command is deprecated
|
---|
[b51fe6e] | 405 | </para>
|
---|
[dc6715a] | 406 | <indexterm zone="ntp ntpdate">
|
---|
| 407 | <primary sortas="b-ntpdate">ntpdate</primary>
|
---|
| 408 | </indexterm>
|
---|
| 409 | </listitem>
|
---|
| 410 | </varlistentry>
|
---|
[56ab82c] | 411 |
|
---|
[dc6715a] | 412 | <varlistentry id="ntpdc">
|
---|
| 413 | <term><command>ntpdc</command></term>
|
---|
| 414 | <listitem>
|
---|
[b51fe6e] | 415 | <para>
|
---|
| 416 | is used to query the ntp daemon about its current state
|
---|
[4c24eb0a] | 417 | and to request changes in that state
|
---|
[b51fe6e] | 418 | </para>
|
---|
[dc6715a] | 419 | <indexterm zone="ntp ntpdc">
|
---|
| 420 | <primary sortas="b-ntpdc">ntpdc</primary>
|
---|
| 421 | </indexterm>
|
---|
| 422 | </listitem>
|
---|
| 423 | </varlistentry>
|
---|
[56ab82c] | 424 |
|
---|
[dc6715a] | 425 | <varlistentry id="ntpq">
|
---|
| 426 | <term><command>ntpq</command></term>
|
---|
| 427 | <listitem>
|
---|
[b51fe6e] | 428 | <para>
|
---|
| 429 | is a utility program used to monitor <command>ntpd</command>
|
---|
[4c24eb0a] | 430 | operations and determine performance
|
---|
[b51fe6e] | 431 | </para>
|
---|
[dc6715a] | 432 | <indexterm zone="ntp ntpq">
|
---|
| 433 | <primary sortas="b-ntpq">ntpq</primary>
|
---|
| 434 | </indexterm>
|
---|
| 435 | </listitem>
|
---|
| 436 | </varlistentry>
|
---|
[56ab82c] | 437 |
|
---|
[dc6715a] | 438 | <varlistentry id="ntptime">
|
---|
| 439 | <term><command>ntptime</command></term>
|
---|
| 440 | <listitem>
|
---|
[b51fe6e] | 441 | <para>
|
---|
[4c24eb0a] | 442 | reads and displays time-related kernel variables
|
---|
[b51fe6e] | 443 | </para>
|
---|
[dc6715a] | 444 | <indexterm zone="ntp ntptime">
|
---|
| 445 | <primary sortas="b-ntptime">ntptime</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 | </listitem>
|
---|
| 448 | </varlistentry>
|
---|
[56ab82c] | 449 |
|
---|
[dc6715a] | 450 | <varlistentry id="ntptrace">
|
---|
| 451 | <term><command>ntptrace</command></term>
|
---|
| 452 | <listitem>
|
---|
[b51fe6e] | 453 | <para>
|
---|
[4c24eb0a] | 454 | traces a chain of ntp servers back to the primary source
|
---|
[b51fe6e] | 455 | </para>
|
---|
[dc6715a] | 456 | <indexterm zone="ntp ntptrace">
|
---|
[56ab82c] | 457 | <primary sortas="b-ntptrace">ntptrace</primary>
|
---|
[dc6715a] | 458 | </indexterm>
|
---|
| 459 | </listitem>
|
---|
| 460 | </varlistentry>
|
---|
[56ab82c] | 461 |
|
---|
[36474cb] | 462 | <varlistentry id="sntp">
|
---|
| 463 | <term><command>sntp</command></term>
|
---|
| 464 | <listitem>
|
---|
[b51fe6e] | 465 | <para>
|
---|
[4c24eb0a] | 466 | is a Simple Network Time Protocol (SNTP) client
|
---|
[b51fe6e] | 467 | </para>
|
---|
[36474cb] | 468 | <indexterm zone="ntp sntp">
|
---|
| 469 | <primary sortas="b-sntp">sntp</primary>
|
---|
| 470 | </indexterm>
|
---|
| 471 | </listitem>
|
---|
| 472 | </varlistentry>
|
---|
| 473 |
|
---|
[dc6715a] | 474 | <varlistentry id="tickadj">
|
---|
| 475 | <term><command>tickadj</command></term>
|
---|
| 476 | <listitem>
|
---|
[b51fe6e] | 477 | <para>
|
---|
| 478 | reads, and optionally modifies, several timekeeping-related
|
---|
| 479 | variables in older kernels that do not have support for precision
|
---|
[4c24eb0a] | 480 | timekeeping
|
---|
[b51fe6e] | 481 | </para>
|
---|
[dc6715a] | 482 | <indexterm zone="ntp tickadj">
|
---|
| 483 | <primary sortas="b-tickadj">tickadj</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
[56ab82c] | 487 |
|
---|
[ab6a3f3] | 488 | <varlistentry id="update-leap">
|
---|
| 489 | <term><command>update-leap</command></term>
|
---|
| 490 | <listitem>
|
---|
[b51fe6e] | 491 | <para>
|
---|
| 492 | is a script to verify and, if necessary, update the leap-second
|
---|
[4c24eb0a] | 493 | definition file
|
---|
[b51fe6e] | 494 | </para>
|
---|
[ab6a3f3] | 495 | <indexterm zone="ntp update-leap">
|
---|
| 496 | <primary sortas="b-update-leap">update-leap</primary>
|
---|
| 497 | </indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
[dc6715a] | 501 | </variablelist>
|
---|
[56ab82c] | 502 |
|
---|
[dc6715a] | 503 | </sect2>
|
---|
[56ab82c] | 504 |
|
---|
[39f01ca] | 505 | </sect1>
|
---|