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