[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 " ">
|
---|
[04cb4e64] | 9 | <!ENTITY ntp-md5sum "516bdabd94ab7c824e9771390761a46c">
|
---|
[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 |
|
---|
[3d6c1859] | 35 | &lfs122_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
|
---|
[a99fd228] | 116 | is valid for 4.8.2p10.
|
---|
| 117 |
|
---|
| 118 | Leap secongs have been deprecated as of November 2022.
|
---|
| 119 | https://en.wikipedia.org/wiki/Leap_second
|
---|
| 120 |
|
---|
[b3dc2ba] | 121 | <para>
|
---|
| 122 | The <command>update-leap</command> command needs to be fixed in order
|
---|
| 123 | to run properly:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[77882028] | 126 | <screen><userinput>sed -e 's/"(\\S+)"/"?([^\\s"]+)"?/' \
|
---|
[b3dc2ba] | 127 | -i scripts/update-leap/update-leap.in</userinput></screen>
|
---|
[a99fd228] | 128 | -->
|
---|
[ab7470e] | 129 |
|
---|
[04cb4e64] | 130 | <para>
|
---|
| 131 | Fix an type issue by executing
|
---|
| 132 | </para>
|
---|
[7d5228e3] | 133 |
|
---|
[04cb4e64] | 134 | <screen><userinput>sed -e "s;pthread_detach(NULL);pthread_detach(0);" \
|
---|
| 135 | -i configure \
|
---|
[7d5228e3] | 136 | sntp/configure</userinput></screen>
|
---|
[04cb4e64] | 137 |
|
---|
[b3dc2ba] | 138 | <para>
|
---|
| 139 | Install <application>ntp</application> by running
|
---|
| 140 | the following commands:
|
---|
| 141 | </para>
|
---|
[dc6715a] | 142 |
|
---|
[544939d] | 143 | <screen><userinput>./configure --prefix=/usr \
|
---|
[78b797d] | 144 | --bindir=/usr/sbin \
|
---|
[2dcc08c0] | 145 | --sysconfdir=/etc \
|
---|
| 146 | --enable-linuxcaps \
|
---|
[78b797d] | 147 | --with-lineeditlibs=readline \
|
---|
| 148 | --docdir=/usr/share/doc/ntp-&ntp-version; &&
|
---|
[11cf9f2] | 149 | make</userinput></screen>
|
---|
| 150 |
|
---|
[b3dc2ba] | 151 | <para>
|
---|
| 152 | To test the results, issue: <command>make check</command>.
|
---|
| 153 | </para>
|
---|
[56ab82c] | 154 |
|
---|
[b3dc2ba] | 155 | <para>
|
---|
| 156 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 157 | </para>
|
---|
[56ab82c] | 158 |
|
---|
[339fbfb9] | 159 | <screen role="root"><userinput>make install &&
|
---|
[78b797d] | 160 | install -v -o ntp -g ntp -d /var/lib/ntp</userinput></screen>
|
---|
[36474cb] | 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | <sect2 role="commands">
|
---|
| 165 | <title>Command Explanations</title>
|
---|
| 166 |
|
---|
[b51fe6e] | 167 | <para>
|
---|
| 168 | <parameter>--bindir=/usr/sbin</parameter>: This parameter places
|
---|
| 169 | the administrative programs in <filename
|
---|
| 170 | class="directory">/usr/sbin</filename>.
|
---|
| 171 | </para>
|
---|
[11cf9f2] | 172 |
|
---|
[b51fe6e] | 173 | <para>
|
---|
| 174 | <parameter>--enable-linuxcaps</parameter>: ntpd is run as user
|
---|
| 175 | ntp, so use Linux capabilities for non-root clock control.
|
---|
| 176 | </para>
|
---|
[2dcc08c0] | 177 |
|
---|
[b51fe6e] | 178 | <para>
|
---|
| 179 | <parameter>--with-lineeditlibs=readline</parameter>: This switch
|
---|
| 180 | enables <application>Readline</application> support for
|
---|
| 181 | <command>ntpdc</command> and <command>ntpq</command> programs. If omitted,
|
---|
| 182 | <application>libedit</application> will be used if installed, otherwise no
|
---|
[2c87187] | 183 | readline capabilities will be compiled.
|
---|
[b51fe6e] | 184 | </para>
|
---|
[a01b1bf] | 185 |
|
---|
[dc6715a] | 186 | </sect2>
|
---|
[56ab82c] | 187 |
|
---|
[dc6715a] | 188 | <sect2 role="configuration">
|
---|
[286c613d] | 189 | <title>Configuring ntp</title>
|
---|
[56ab82c] | 190 |
|
---|
[dc6715a] | 191 | <sect3 id="ntp-config">
|
---|
| 192 | <title>Config Files</title>
|
---|
[56ab82c] | 193 |
|
---|
[b51fe6e] | 194 | <para>
|
---|
| 195 | <filename>/etc/ntp.conf</filename>
|
---|
| 196 | </para>
|
---|
[56ab82c] | 197 |
|
---|
[dc6715a] | 198 | <indexterm zone="ntp ntp-config">
|
---|
| 199 | <primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary>
|
---|
| 200 | </indexterm>
|
---|
[56ab82c] | 201 |
|
---|
[dc6715a] | 202 | </sect3>
|
---|
[56ab82c] | 203 |
|
---|
[dc6715a] | 204 | <sect3>
|
---|
| 205 | <title>Configuration Information</title>
|
---|
| 206 |
|
---|
[b51fe6e] | 207 | <para>
|
---|
| 208 | The following configuration file first defines various ntp
|
---|
| 209 | servers with open access from different continents. Second, it
|
---|
| 210 | creates a drift file where <command>ntpd</command> stores the
|
---|
| 211 | frequency offset and a pid file to store the
|
---|
[a99fd228] | 212 | <command>ntpd</command> process ID. <!--Third, it defines the location
|
---|
[b51fe6e] | 213 | for the leap-second definition file
|
---|
| 214 | <filename>/etc/ntp.leapseconds</filename>, that the
|
---|
| 215 | <command>update-leap</command> script checks and updates, when
|
---|
| 216 | necessary. This script can be run as a cron job and the
|
---|
| 217 | <application>ntp</application> developers recommend a frequency of
|
---|
[a99fd228] | 218 | about three weeks for the updates.--> Since the documentation included
|
---|
[b51fe6e] | 219 | with the package is sparse, visit the ntp website at
|
---|
[75e3e09] | 220 | <ulink url="https://www.ntp.org/"/> and
|
---|
| 221 | <ulink url="https://www.ntppool.org/"/> for more information.
|
---|
[b51fe6e] | 222 | </para>
|
---|
[dc6715a] | 223 |
|
---|
| 224 | <screen role="root"><userinput>cat > /etc/ntp.conf << "EOF"
|
---|
[6e26273] | 225 | <literal># Asia
|
---|
[bca6dfb6] | 226 | server 0.asia.pool.ntp.org
|
---|
[d47e7ea9] | 227 |
|
---|
| 228 | # Australia
|
---|
[bca6dfb6] | 229 | server 0.oceania.pool.ntp.org
|
---|
[56ab82c] | 230 |
|
---|
[d47e7ea9] | 231 | # Europe
|
---|
[ea57941f] | 232 | server 0.europe.pool.ntp.org
|
---|
[d47e7ea9] | 233 |
|
---|
| 234 | # North America
|
---|
[ea57941f] | 235 | server 0.north-america.pool.ntp.org
|
---|
| 236 |
|
---|
| 237 | # South America
|
---|
[bca6dfb6] | 238 | server 2.south-america.pool.ntp.org
|
---|
[d47e7ea9] | 239 |
|
---|
[1e72251e] | 240 | driftfile /var/lib/ntp/ntp.drift
|
---|
[a99fd228] | 241 | pidfile /run/ntpd.pid</literal>
|
---|
[78b797d] | 242 | EOF</userinput></screen>
|
---|
| 243 |
|
---|
[39159bf] | 244 | <para>
|
---|
[af2b317] | 245 | You may wish to add a <quote>Security session.</quote> For
|
---|
[b51fe6e] | 246 | explanations, see <ulink url=
|
---|
| 247 | "https://www.eecis.udel.edu/~mills/ntp/html/accopt.html#restrict"/>.
|
---|
[39159bf] | 248 | </para>
|
---|
[78b797d] | 249 |
|
---|
| 250 | <screen role="root"><userinput>cat >> /etc/ntp.conf << "EOF"
|
---|
| 251 | <literal># Security session
|
---|
[e5bb823] | 252 | restrict default limited kod nomodify notrap nopeer noquery
|
---|
[78b797d] | 253 | restrict -6 default limited kod nomodify notrap nopeer noquery
|
---|
| 254 |
|
---|
| 255 | restrict 127.0.0.1
|
---|
| 256 | restrict ::1</literal>
|
---|
[dc6715a] | 257 | EOF</userinput></screen>
|
---|
| 258 |
|
---|
| 259 | </sect3>
|
---|
[56ab82c] | 260 |
|
---|
[dc6715a] | 261 | <sect3 id="ntp-init">
|
---|
| 262 | <title>Synchronizing the Time</title>
|
---|
| 263 |
|
---|
[b51fe6e] | 264 | <para>
|
---|
| 265 | There are two options. Option one is to run <command>ntpd</command>
|
---|
| 266 | continuously and allow it to synchronize the time in a gradual manner.
|
---|
| 267 | The other option is to run <command>ntpd</command> periodically (using
|
---|
| 268 | cron) and update the time each time <command>ntpd</command> is
|
---|
| 269 | scheduled.
|
---|
| 270 | </para>
|
---|
[56ab82c] | 271 |
|
---|
[b51fe6e] | 272 | <para>
|
---|
| 273 | If you choose Option one, then install the
|
---|
| 274 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/ntp</filename>
|
---|
| 275 | init script</phrase>
|
---|
| 276 | <phrase revision="systemd"><filename>ntpd.service</filename>
|
---|
| 277 | unit</phrase>
|
---|
| 278 | included in the
|
---|
| 279 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
| 280 | <xref linkend="systemd-units" revision="systemd"/> package.
|
---|
| 281 | </para>
|
---|
[56ab82c] | 282 |
|
---|
[7b478500] | 283 | <indexterm zone="ntp ntp-init" revision="sysv">
|
---|
[dc6715a] | 284 | <primary sortas="f-ntp">ntp</primary>
|
---|
[56ab82c] | 285 | </indexterm>
|
---|
[dc6715a] | 286 |
|
---|
[7b478500] | 287 | <indexterm zone="ntp ntp-init" revision="systemd">
|
---|
| 288 | <primary sortas="f-ntpd">ntpd.service</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 |
|
---|
[286c613d] | 291 | <screen role="root"><userinput>make install-ntpd</userinput></screen>
|
---|
[dc6715a] | 292 |
|
---|
[b51fe6e] | 293 | <para>
|
---|
| 294 | If you prefer to run <command>ntpd</command> periodically, add the
|
---|
| 295 | following command to <systemitem class="username">root</systemitem>'s
|
---|
| 296 | <filename>crontab</filename>:
|
---|
| 297 | </para>
|
---|
[56ab82c] | 298 |
|
---|
[dc6715a] | 299 | <screen><literal>ntpd -q</literal></screen>
|
---|
| 300 |
|
---|
[b51fe6e] | 301 | <para revision="sysv">
|
---|
| 302 | Execute the following command if you would like to set the hardware
|
---|
| 303 | clock to the current system time at shutdown and reboot:
|
---|
| 304 | </para>
|
---|
[dc6715a] | 305 |
|
---|
[7b478500] | 306 | <screen role="root" revision="sysv"><userinput>ln -v -sf ../init.d/setclock /etc/rc.d/rc0.d/K46setclock &&
|
---|
[e3353b3] | 307 | ln -v -sf ../init.d/setclock /etc/rc.d/rc6.d/K46setclock</userinput></screen>
|
---|
[dc6715a] | 308 |
|
---|
[b51fe6e] | 309 | <para revision="sysv">
|
---|
| 310 | The other way around is already set up by LFS.
|
---|
| 311 | </para>
|
---|
[56ab82c] | 312 |
|
---|
[dc6715a] | 313 | </sect3>
|
---|
[56ab82c] | 314 |
|
---|
[dc6715a] | 315 | </sect2>
|
---|
[56ab82c] | 316 |
|
---|
[dc6715a] | 317 | <sect2 role="content">
|
---|
| 318 | <title>Contents</title>
|
---|
[56ab82c] | 319 |
|
---|
[dc6715a] | 320 | <segmentedlist>
|
---|
| 321 | <segtitle>Installed Programs</segtitle>
|
---|
| 322 | <segtitle>Installed Libraries</segtitle>
|
---|
[78b797d] | 323 | <segtitle>Installed Directories</segtitle>
|
---|
[56ab82c] | 324 |
|
---|
[dc6715a] | 325 | <seglistitem>
|
---|
[78b797d] | 326 | <seg>calc_tickadj, ntp-keygen, ntp-wait, ntpd, ntpdate, ntpdc, ntpq,
|
---|
[a99fd228] | 327 | ntptime, ntptrace, sntp, tickadj, and update-leap</seg>
|
---|
[dc6715a] | 328 | <seg>None</seg>
|
---|
[78b797d] | 329 | <seg>/usr/share/ntp,
|
---|
| 330 | /usr/share/doc/ntp-4.2.8 and
|
---|
| 331 | /var/lib/ntp</seg>
|
---|
[dc6715a] | 332 | </seglistitem>
|
---|
| 333 | </segmentedlist>
|
---|
[56ab82c] | 334 |
|
---|
[dc6715a] | 335 | <variablelist>
|
---|
| 336 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 337 | <?dbfo list-presentation="list"?>
|
---|
| 338 | <?dbhtml list-presentation="table"?>
|
---|
[56ab82c] | 339 |
|
---|
[78b797d] | 340 | <varlistentry id="calc_tickadj">
|
---|
| 341 | <term><command>calc_tickadj</command></term>
|
---|
| 342 | <listitem>
|
---|
[b51fe6e] | 343 | <para>
|
---|
[4c24eb0a] | 344 | calculates optimal value for tick given ntp drift file
|
---|
[b51fe6e] | 345 | </para>
|
---|
[78b797d] | 346 | <indexterm zone="ntp calc_tickadj">
|
---|
| 347 | <primary sortas="b-calc_tickadj">calc_tickadj</primary>
|
---|
| 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
[dc6715a] | 352 | <varlistentry id="ntp-keygen">
|
---|
| 353 | <term><command>ntp-keygen</command></term>
|
---|
| 354 | <listitem>
|
---|
[b51fe6e] | 355 | <para>
|
---|
| 356 | generates cryptographic data files used by the NTPv4 authentication
|
---|
[4c24eb0a] | 357 | and identification schemes
|
---|
[b51fe6e] | 358 | </para>
|
---|
[dc6715a] | 359 | <indexterm zone="ntp ntp-keygen">
|
---|
| 360 | <primary sortas="b-ntp-keygen">ntp-keygen</primary>
|
---|
| 361 | </indexterm>
|
---|
| 362 | </listitem>
|
---|
| 363 | </varlistentry>
|
---|
[56ab82c] | 364 |
|
---|
[dc6715a] | 365 | <varlistentry id="ntp-wait">
|
---|
| 366 | <term><command>ntp-wait</command></term>
|
---|
| 367 | <listitem>
|
---|
[b51fe6e] | 368 | <para>
|
---|
| 369 | is useful at boot time, to delay the boot sequence until
|
---|
[4c24eb0a] | 370 | <command>ntpd</command> has set the time
|
---|
[b51fe6e] | 371 | </para>
|
---|
[dc6715a] | 372 | <indexterm zone="ntp ntp-wait">
|
---|
| 373 | <primary sortas="b-ntp-wait">ntp-wait</primary>
|
---|
| 374 | </indexterm>
|
---|
| 375 | </listitem>
|
---|
| 376 | </varlistentry>
|
---|
[56ab82c] | 377 |
|
---|
[dc6715a] | 378 | <varlistentry id="ntpd">
|
---|
| 379 | <term><command>ntpd</command></term>
|
---|
| 380 | <listitem>
|
---|
[b51fe6e] | 381 | <para>
|
---|
| 382 | is a ntp daemon that runs in the background and keeps
|
---|
| 383 | the date and time synchronized based on response from configured
|
---|
[4c24eb0a] | 384 | ntp servers. It also functions as a ntp server
|
---|
[b51fe6e] | 385 | </para>
|
---|
[dc6715a] | 386 | <indexterm zone="ntp ntpd">
|
---|
| 387 | <primary sortas="b-ntpd">ntpd</primary>
|
---|
| 388 | </indexterm>
|
---|
| 389 | </listitem>
|
---|
| 390 | </varlistentry>
|
---|
[56ab82c] | 391 |
|
---|
[dc6715a] | 392 | <varlistentry id="ntpdate">
|
---|
| 393 | <term><command>ntpdate</command></term>
|
---|
| 394 | <listitem>
|
---|
[b51fe6e] | 395 | <para>
|
---|
| 396 | is a client program that sets the date and time based on
|
---|
[4c24eb0a] | 397 | the response from an ntp server. This command is deprecated
|
---|
[b51fe6e] | 398 | </para>
|
---|
[dc6715a] | 399 | <indexterm zone="ntp ntpdate">
|
---|
| 400 | <primary sortas="b-ntpdate">ntpdate</primary>
|
---|
| 401 | </indexterm>
|
---|
| 402 | </listitem>
|
---|
| 403 | </varlistentry>
|
---|
[56ab82c] | 404 |
|
---|
[dc6715a] | 405 | <varlistentry id="ntpdc">
|
---|
| 406 | <term><command>ntpdc</command></term>
|
---|
| 407 | <listitem>
|
---|
[b51fe6e] | 408 | <para>
|
---|
| 409 | is used to query the ntp daemon about its current state
|
---|
[4c24eb0a] | 410 | and to request changes in that state
|
---|
[b51fe6e] | 411 | </para>
|
---|
[dc6715a] | 412 | <indexterm zone="ntp ntpdc">
|
---|
| 413 | <primary sortas="b-ntpdc">ntpdc</primary>
|
---|
| 414 | </indexterm>
|
---|
| 415 | </listitem>
|
---|
| 416 | </varlistentry>
|
---|
[56ab82c] | 417 |
|
---|
[dc6715a] | 418 | <varlistentry id="ntpq">
|
---|
| 419 | <term><command>ntpq</command></term>
|
---|
| 420 | <listitem>
|
---|
[b51fe6e] | 421 | <para>
|
---|
| 422 | is a utility program used to monitor <command>ntpd</command>
|
---|
[4c24eb0a] | 423 | operations and determine performance
|
---|
[b51fe6e] | 424 | </para>
|
---|
[dc6715a] | 425 | <indexterm zone="ntp ntpq">
|
---|
| 426 | <primary sortas="b-ntpq">ntpq</primary>
|
---|
| 427 | </indexterm>
|
---|
| 428 | </listitem>
|
---|
| 429 | </varlistentry>
|
---|
[56ab82c] | 430 |
|
---|
[dc6715a] | 431 | <varlistentry id="ntptime">
|
---|
| 432 | <term><command>ntptime</command></term>
|
---|
| 433 | <listitem>
|
---|
[b51fe6e] | 434 | <para>
|
---|
[4c24eb0a] | 435 | reads and displays time-related kernel variables
|
---|
[b51fe6e] | 436 | </para>
|
---|
[dc6715a] | 437 | <indexterm zone="ntp ntptime">
|
---|
| 438 | <primary sortas="b-ntptime">ntptime</primary>
|
---|
| 439 | </indexterm>
|
---|
| 440 | </listitem>
|
---|
| 441 | </varlistentry>
|
---|
[56ab82c] | 442 |
|
---|
[dc6715a] | 443 | <varlistentry id="ntptrace">
|
---|
| 444 | <term><command>ntptrace</command></term>
|
---|
| 445 | <listitem>
|
---|
[b51fe6e] | 446 | <para>
|
---|
[4c24eb0a] | 447 | traces a chain of ntp servers back to the primary source
|
---|
[b51fe6e] | 448 | </para>
|
---|
[dc6715a] | 449 | <indexterm zone="ntp ntptrace">
|
---|
[56ab82c] | 450 | <primary sortas="b-ntptrace">ntptrace</primary>
|
---|
[dc6715a] | 451 | </indexterm>
|
---|
| 452 | </listitem>
|
---|
| 453 | </varlistentry>
|
---|
[56ab82c] | 454 |
|
---|
[36474cb] | 455 | <varlistentry id="sntp">
|
---|
| 456 | <term><command>sntp</command></term>
|
---|
| 457 | <listitem>
|
---|
[b51fe6e] | 458 | <para>
|
---|
[4c24eb0a] | 459 | is a Simple Network Time Protocol (SNTP) client
|
---|
[b51fe6e] | 460 | </para>
|
---|
[36474cb] | 461 | <indexterm zone="ntp sntp">
|
---|
| 462 | <primary sortas="b-sntp">sntp</primary>
|
---|
| 463 | </indexterm>
|
---|
| 464 | </listitem>
|
---|
| 465 | </varlistentry>
|
---|
| 466 |
|
---|
[dc6715a] | 467 | <varlistentry id="tickadj">
|
---|
| 468 | <term><command>tickadj</command></term>
|
---|
| 469 | <listitem>
|
---|
[b51fe6e] | 470 | <para>
|
---|
| 471 | reads, and optionally modifies, several timekeeping-related
|
---|
| 472 | variables in older kernels that do not have support for precision
|
---|
[4c24eb0a] | 473 | timekeeping
|
---|
[b51fe6e] | 474 | </para>
|
---|
[dc6715a] | 475 | <indexterm zone="ntp tickadj">
|
---|
| 476 | <primary sortas="b-tickadj">tickadj</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 | </listitem>
|
---|
| 479 | </varlistentry>
|
---|
[56ab82c] | 480 |
|
---|
[ab6a3f3] | 481 | <varlistentry id="update-leap">
|
---|
| 482 | <term><command>update-leap</command></term>
|
---|
| 483 | <listitem>
|
---|
[b51fe6e] | 484 | <para>
|
---|
| 485 | is a script to verify and, if necessary, update the leap-second
|
---|
[a99fd228] | 486 | definition file.
|
---|
| 487 |
|
---|
| 488 | <note>
|
---|
| 489 | <para>
|
---|
| 490 | In November 2022, at the 27th General Conference on Weights and
|
---|
| 491 | Measures, it was decided to abandon the leap second. In addition
|
---|
| 492 | this script hardcodes a URL for an update file that no longer
|
---|
| 493 | exists. The last time a leap second was declared was January 2017.
|
---|
| 494 | This script will probably be removed in a future release.
|
---|
| 495 | </para>
|
---|
| 496 | </note>
|
---|
[b51fe6e] | 497 | </para>
|
---|
[ab6a3f3] | 498 | <indexterm zone="ntp update-leap">
|
---|
| 499 | <primary sortas="b-update-leap">update-leap</primary>
|
---|
| 500 | </indexterm>
|
---|
| 501 | </listitem>
|
---|
| 502 | </varlistentry>
|
---|
| 503 |
|
---|
[dc6715a] | 504 | </variablelist>
|
---|
[56ab82c] | 505 |
|
---|
[dc6715a] | 506 | </sect2>
|
---|
[56ab82c] | 507 |
|
---|
[39f01ca] | 508 | </sect1>
|
---|