Home | History | Annotate | Line # | Download | only in sntp
sntp.html revision 1.1
      1  1.1  kardel <html lang="en">
      2  1.1  kardel <head>
      3  1.1  kardel <title>Sntp User's Manual</title>
      4  1.1  kardel <meta http-equiv="Content-Type" content="text/html">
      5  1.1  kardel <meta name="description" content="Sntp User's Manual">
      6  1.1  kardel <meta name="generator" content="makeinfo 4.13">
      7  1.1  kardel <link title="Top" rel="top" href="#Top">
      8  1.1  kardel <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
      9  1.1  kardel <meta http-equiv="Content-Style-Type" content="text/css">
     10  1.1  kardel <style type="text/css"><!--
     11  1.1  kardel   pre.display { font-family:inherit }
     12  1.1  kardel   pre.format  { font-family:inherit }
     13  1.1  kardel   pre.smalldisplay { font-family:inherit; font-size:smaller }
     14  1.1  kardel   pre.smallformat  { font-family:inherit; font-size:smaller }
     15  1.1  kardel   pre.smallexample { font-size:smaller }
     16  1.1  kardel   pre.smalllisp    { font-size:smaller }
     17  1.1  kardel   span.sc    { font-variant:small-caps }
     18  1.1  kardel   span.roman { font-family:serif; font-weight:normal; } 
     19  1.1  kardel   span.sansserif { font-family:sans-serif; font-weight:normal; } 
     20  1.1  kardel --></style>
     21  1.1  kardel </head>
     22  1.1  kardel <body>
     23  1.1  kardel <h1 class="settitle">Sntp User's Manual</h1>
     24  1.1  kardel <div class="node">
     25  1.1  kardel <a name="Top"></a>
     26  1.1  kardel <p><hr>
     27  1.1  kardel Next:&nbsp;<a rel="next" accesskey="n" href="#sntp-Description">sntp Description</a>,
     28  1.1  kardel Previous:&nbsp;<a rel="previous" accesskey="p" href="#dir">(dir)</a>,
     29  1.1  kardel Up:&nbsp;<a rel="up" accesskey="u" href="#dir">(dir)</a>
     30  1.1  kardel 
     31  1.1  kardel </div>
     32  1.1  kardel 
     33  1.1  kardel <h2 class="unnumbered">Simple Network Time Protocol User Manual</h2>
     34  1.1  kardel 
     35  1.1  kardel <p>This document describes the use of the NTP Project's <code>sntp</code> program,
     36  1.1  kardel that can be used to query a Network Time Protocol (NTP) server and
     37  1.1  kardel display the time offset of the system clock relative to the server
     38  1.1  kardel clock.  Run as root, it can correct the system clock to this offset as
     39  1.1  kardel well.  It can be run as an interactive command or from a cron job.
     40  1.1  kardel 
     41  1.1  kardel   <p>This document applies to version 4.2.6 of <code>sntp</code>.
     42  1.1  kardel 
     43  1.1  kardel   <p>The program implements the SNTP protocol as defined by the draft NTPv4
     44  1.1  kardel IETF specification.
     45  1.1  kardel 
     46  1.1  kardel   <div class="shortcontents">
     47  1.1  kardel <h2>Short Contents</h2>
     48  1.1  kardel <ul>
     49  1.1  kardel <a href="#Top">Simple Network Time Protocol User Manual</a>
     50  1.1  kardel </ul>
     51  1.1  kardel </div>
     52  1.1  kardel 
     53  1.1  kardel <ul class="menu">
     54  1.1  kardel <li><a accesskey="1" href="#sntp-Description">sntp Description</a>:             Description
     55  1.1  kardel * sntp Invocation::                Invoking sntp
     56  1.1  kardel <li><a accesskey="2" href="#Usage">Usage</a>:                        Usage
     57  1.1  kardel </ul>
     58  1.1  kardel 
     59  1.1  kardel <div class="node">
     60  1.1  kardel <a name="sntp-Description"></a>
     61  1.1  kardel <p><hr>
     62  1.1  kardel Next:&nbsp;<a rel="next" accesskey="n" href="#Usage">Usage</a>,
     63  1.1  kardel Previous:&nbsp;<a rel="previous" accesskey="p" href="#Top">Top</a>,
     64  1.1  kardel Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
     65  1.1  kardel 
     66  1.1  kardel </div>
     67  1.1  kardel 
     68  1.1  kardel <!-- node-name,  next,  previous,  up -->
     69  1.1  kardel <h3 class="section">Description</h3>
     70  1.1  kardel 
     71  1.1  kardel <p>By default, <code>sntp</code> writes the local data and time (i.e., not UTC) to the
     72  1.1  kardel standard output in the format:
     73  1.1  kardel 
     74  1.1  kardel <pre class="example">     1996 Oct 15 20:17:25.123 +4.567 +/- 0.089 secs
     75  1.1  kardel </pre>
     76  1.1  kardel   <p>where the +4.567 +/- 0.089 secs indicates the time offset and
     77  1.1  kardel error bound of the system clock relative to the server clock.
     78  1.1  kardel 
     79  1.1  kardel <!-- @include sntp-opts.texi -->
     80  1.1  kardel <div class="node">
     81  1.1  kardel <a name="Usage"></a>
     82  1.1  kardel <p><hr>
     83  1.1  kardel Previous:&nbsp;<a rel="previous" accesskey="p" href="#sntp-Description">sntp Description</a>,
     84  1.1  kardel Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>
     85  1.1  kardel 
     86  1.1  kardel </div>
     87  1.1  kardel 
     88  1.1  kardel <!-- node-name,  next,  previous,  up -->
     89  1.1  kardel <h3 class="section">Usage</h3>
     90  1.1  kardel 
     91  1.1  kardel <p>The simplest use of this program is as an unprivileged command to
     92  1.1  kardel check the current time, offset, and error in the local clock. 
     93  1.1  kardel For example:
     94  1.1  kardel 
     95  1.1  kardel <pre class="example">     sntp ntpserver.somewhere
     96  1.1  kardel </pre>
     97  1.1  kardel   <p>With suitable privilege, it can be run as a command or in a
     98  1.1  kardel <code>crom</code> job to reset the local clock from a reliable server, like
     99  1.1  kardel the <code>ntpdate</code> and <code>rdate</code> commands. 
    100  1.1  kardel For example:
    101  1.1  kardel 
    102  1.1  kardel <pre class="example">     sntp -a ntpserver.somewhere
    103  1.1  kardel </pre>
    104  1.1  kardel   </body></html>
    105  1.1  kardel 
    106