Annotation of embedaddon/ntp/html/miscopt.html, revision 1.1

1.1     ! misho       1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        !             2: 
        !             3: <html>
        !             4: 
        !             5:        <head>
        !             6:                <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
        !             7:                <title>Miscellaneous Options</title>
        !             8:                <link href="scripts/style.css" type="text/css" rel="stylesheet">
        !             9:        </head>
        !            10: 
        !            11:        <body>
        !            12:                <h3>Miscellaneous Options</h3>
        !            13:                <img src="pic/boom3.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
        !            14:                <p>We have three, now looking for more.</p>
        !            15:                <p>Last update:
        !            16:                        <!-- #BeginDate format:En2m -->13-Nov-2009  19:08<!-- #EndDate --> 
        !            17:                        UTC</p>
        !            18:                <br clear="left">
        !            19:        <h4>Related Links</h4>
        !            20:                <script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
        !            21:                <script type="text/javascript" language="javascript" src="scripts/miscopt.txt"></script>
        !            22:                <hr>
        !            23:                <dl>
        !            24:                        <dt id="broadcastdelay"><tt>broadcastdelay <i>seconds</i></tt></dt>
        !            25:                        <dd>The broadcast and multicast modes require a special calibration to determine the network delay between the local and remote servers. Ordinarily, this is done automatically by the initial protocol exchanges between the client and server. In some cases, the calibration procedure may fail due to network or server access controls, for example. This command specifies the default delay to be used under these circumstances. Typically (for Ethernet), a number between 0.003 and 0.007 seconds is appropriate.</dd>
        !            26:                        <dt id="driftfile"><tt>driftfile <i>driftfile</i> { <i>tolerance</i> ]</tt></dt>
        !            27:                        <dd>This command specifies the complete path and name of the file used to record the frequency of the local clock oscillator. This is the same operation as the <tt>-f</tt> command linke option. If the file exists, it is read at startup in order to set the initial frequency and then updated once per hour or more with the current frequency computed by the daemon. If the file name is specified, but the file itself does not exist, the starts with an initial frequency of zero and creates the file when writing it for the first time. If this command is not given, the daemon will always start with an initial frequency of zero.</dd>
        !            28:                                <dd>The file format consists of a single line containing a single floating point number, which records the frequency offset measured in parts-per-million (PPM). The file is updated by first writing the current drift value into a temporary file and then renaming this file to replace the old version. This implies that <tt>ntpd</tt> must have write permission for the directory the drift file is located in, and that file system links, symbolic or otherwise, should be avoided.</dd>
        !            29:                                <dd>The parameter <tt>tolerance</tt> is the wander threshold to skip writing the new value. If the value of wander computed from recent frequency changes is greater than this threshold the file will be updated once per hour. If below the threshold, the file will not be written.</dd>
        !            30:                        <dt id="enable"><tt>enable [ auth | bclient | calibrate | kernel | monitor | ntp | pps | stats]</tt><br>
        !            31:                        <tt>disable [ auth | bclient | calibrate | kernel | monitor | ntp | pps | stats ]</tt></dt>
        !            32:                        <dd>Provides a way to enable or disable various system options. Flags not mentioned are unaffected. Note that all of these flags can be controlled remotely using the <a href="ntpdc.html"><tt>ntpdc</tt></a> utility program.
        !            33:                                <dl>
        !            34:                                        <dt><tt>auth</tt></dt>
        !            35:                                        <dd>Enables the server to synchronize with unconfigured peers only if the peer has been correctly authenticated using either public key or private key cryptography. The default for this flag is enable.</dd>
        !            36:                                        <dt><tt>bclient</tt></dt>
        !            37:                                        <dd>Enables the server to listen for a message from a broadcast or multicast server, as in the <tt>multicastclient</tt> command with default address. The default for this flag is disable.</dd>
        !            38:                                        <dt><tt>calibrate</tt></dt>
        !            39:                                        <dd>Enables the calibrate feature for reference clocks. The default for this flag is disable.</dd>
        !            40:                                        <dt><tt>kernel</tt></dt>
        !            41:                                        <dd>Enables the kernel time discipline, if available. The default for this flag is enable if support is available, otherwise disable.</dd>
        !            42:                                        <dt><tt>monitor</tt></dt>
        !            43:                                        <dd>Enables the monitoring facility. See the <tt>ntpdc</tt> program and the <tt>monlist</tt> command or further information. The default for this flag is enable.</dd>
        !            44:                                        <dt><tt>ntp</tt></dt>
        !            45:                                        <dd>Enables time and frequency discipline. In effect, this switch opens and closes the feedback loop, which is useful for testing. The default for this flag is enable.</dd>
        !            46:                                        <dt><tt>stats</tt></dt>
        !            47:                                        <dd>Enables the statistics facility. See the <a href="monopt.html">Monitoring Options</a> page for further information. The default for this flag is disable.</dd>
        !            48:                                </dl>
        !            49:                                </dd>
        !            50:                        <dt id="includefile"><tt>includefile <i>includefile</i></tt></dt>
        !            51:                        <dd>This command allows additional configuration commands to be included from a separate file. Include files may be nested to a depth of five; upon reaching the end of any include file, command processing resumes in the previous configuration file. This option is useful for sites that run <tt>ntpd</tt> on multiple hosts, with (mostly) common options (e.g., a restriction list).</dd>
        !            52:                        <dt id="interface"><tt>interface [listen | ignore | drop] [all | ipv4 | ipv6 | wildcard | <i>name</i> | <i>address</i>[/<i>prefixlen</i>]]</tt></dt>
        !            53:                        <dd>This command controls which network addresses <tt>ntpd</tt> opens, and whether input is dropped without processing. The first parameter determines the action for addresses which match the second parameter. That parameter specifies a class of addresses, or a specific interface name, or an address. In the address case, <tt><i>prefixlen</i></tt> determines how many bits must match for this rule to apply. <tt>ignore</tt> prevents opening matching addresses, <tt>drop</tt> causes <tt>ntpd</tt> to open the address and drop all received packets without examination. Multiple <tt>interface</tt> commands can be used. The last rule which matches a particular address determines the action for it. <tt>interface</tt> commands are disabled if any <a href="ntpd.html#--interface"><tt>-I</tt></a>, <a href="ntpd.html#--interface"><tt>--interface</tt></a>, <a href="ntpd.html#--novirtualips"><tt>-L</tt></a>, or <a href="ntpd.html#--novirtualips"><tt>--novirtualips</tt></a> command-line options are used.  If none of those options are used and no <tt>interface</tt> actions are specified in the configuration file, all available network addresses are opened. The <tt>nic</tt> command is an alias for <tt>interface</tt>.</dd>
        !            54:                        <dt id="leapfile"><tt>leapfile <i>leapfile</i></tt></dt>
        !            55:                        <dd>This command loads the NIST leapseconds file and initializes the leapsecond values for the next leapsecond time, expiration time and TAI offset. The file can be obtained directly from NIST national time servers using <tt>ftp</tt> as the ASCII file <tt>pub/leap-seconds</tt>.</dd>
        !            56:                        <dd>While not strictly a security function, the Autokey protocol provides means to securely retrieve the current or updated leapsecond values from a server.</dd>
        !            57:                        <dt id="logconfig"><tt>logconfig <i>configkeyword</i></tt></dt>
        !            58:                        <dd>This command controls the amount and type of output written to the system <tt>syslog</tt> facility or the alternate <tt>logfile</tt> log file. All <i><tt>configkeyword</tt></i> keywords can be prefixed with <tt>=</tt>, <tt>+</tt> and <tt>-</tt>, where <tt>=</tt> sets the <tt>syslogmask</tt>, <tt>+</tt> adds and <tt>-</tt> removes messages. <tt>syslog messages</tt> can be controlled in four classes (<tt>clock</tt>, <tt>peer</tt>, <tt>sys</tt> and <tt>sync</tt>). Within these classes four types of messages can be controlled: informational messages (<tt>info</tt>), event messages (<tt>events</tt>), statistics messages (<tt>statistics</tt>) and status messages (<tt>status</tt>).</dd>
        !            59:                                <dd>Configuration keywords are formed by concatenating the message class with the event class. The <tt>all</tt> prefix can be used instead of a message class. A message class may also be followed by the <tt>all</tt> keyword to enable/disable all messages of the respective message class. By default, <tt>logconfig</tt> output is set to <tt>allsync</tt>.</dd>
        !            60:                                <dd>Thus, a minimal log configuration could look like this:</dd>
        !            61:                                <dd><tt>logconfig=syncstatus +sysevents</tt></dd>
        !            62:                                                <dd>This would just list the synchronizations state of <tt>ntpd</tt> and the major system events. For a simple reference server, the following minimum message configuration could be useful:</dd>
        !            63:                                <dd><tt>logconfig allsync +allclock</tt></dd>
        !            64:                                <dd>This configuration will list all clock information and synchronization information. All other events and messages about peers, system events and so on is suppressed.</dd>
        !            65:                        <dt id="logfile"><tt>logfile <i>logfile</i></tt></dt>
        !            66:                        <dd>This command specifies the location of an alternate log file to be used instead of the default system <tt>syslog</tt> facility. This is the same operation as the <tt>-l </tt>command line option.</dd>
        !            67:                        <dt id="phone"><tt>phone <i>dial</i>1 <i>dial</i>2 ...</tt></dt>
        !            68:                        <dd>This command is used in conjunction with the ACTS modem driver (type 18). The arguments consist of a maximum of 10 telephone numbers used to dial USNO, NIST or European time services. The Hayes command ATDT&nbsp;is normally prepended to the number, which can contain other modem control codes as well.</dd>
        !            69:                        <dt id="saveconfigdir"><tt>saveconfigdir <i>directory_path</i></tt></dt>
        !            70:                        <dd>Specify the directory in which to write configuration snapshots requested with <tt>ntpq</tt>'s <a href="ntpq.html#saveconfig">saveconfig</a> command.  If <tt>saveconfigdir</tt> does not appear in the configuration file, saveconfig requests are rejected by ntpd.</dd>
        !            71:                        <dt id="setvar"><tt>setvar <i>variable</i> [default]</tt></dt>
        !            72:                        <dd>This command adds an additional system variable. These variables can be used to distribute additional information such as the access policy. If the variable of the form <tt><i>name</i> = <i>value</i></tt> is followed by the <tt>default</tt> keyword, the variable will be listed as part of the default system variables (<tt>ntpq rv</tt> command). These additional variables serve informational purposes only. They are not related to the protocol other that they can be listed. The known protocol variables will always override any variables defined via the <tt>setvar</tt> mechanism. There are three special variables that contain the names of all variable of the same group. The <tt>sys_var_list</tt> holds the names of all system variables. The <tt>peer_var_list</tt> holds the names of all peer variables and the <tt>clock_var_list</tt> holds the names of the reference clock variables.</dd>
        !            73:                        <dt id="tinker"><tt>tinker [ allan <i>allan</i> | dispersion <i>dispersion</i> | freq <i>freq</i> | huffpuff <i>huffpuff</i> | panic <i>panic</i> | step <i>step</i> | stepout <i>stepout</i> ]</tt></dt>
        !            74:                        <dd>This command alters certain system variables used by the clock discipline algorithm. The default values of these variables have been carefully optimized for a wide range of network speeds and reliability expectations. Very rarely is it necessary to change the default values; but, some folks can't resist twisting the knobs. The options are as follows:</dd>
        !            75:                                <dd><dl>
        !            76:                                        <dt><tt>allan <i>allan</i></tt></dt>
        !            77:                                        <dd>Spedifies the Allan intercept, which is a parameter of the PLL/FLL clock discipline algorithm, in seconds with default 1500 s.</dd>
        !            78:                                        <dt><tt>dispersion <i>dispersion</i></tt></dt>
        !            79:                                        <dd>Specifies the dispersion increase rate in parts-per-million (PPM) with default 15 PPM.</dd>
        !            80:                                        <dt><tt>freq <i>freq</i></tt></dt>
        !            81:                                        <dd>Spedifies the frequency offset in parts-per-million (PPM) with default the value in the frequency file.</dd>
        !            82:                                        <dt><tt>huffpuff <i>huffpuff</i></tt></dt>
        !            83:                                        <dd>Spedifies the huff-n'-puff filter span, which determines the most recent interval the algorithm will search for a minimum delay. The lower limit is 900 s (15 m), but a more reasonable value is 7200 (2 hours).</dd>
        !            84:                                        <dt><tt>panic <i>panic</i></tt></dt>
        !            85:                                        <dd>Spedifies the panic threshold in seconds with default 1000 s. If set to zero, the panic sanity check is disabled and a clock offset of any value will be accepted.</dd>
        !            86:                                        <dt><tt>step <i>step</i></tt></dt>
        !            87:                                        <dd>Spedifies the step threshold in seconds. The default without this command
        !            88:                                                is 0.128 s. If set to zero, step adjustments will never
        !            89:                                                occur. Note: The kernel time discipline is disabled if
        !            90:                                                the step threshold is set to zero or greater than 0.5
        !            91:                                                s.</dd>
        !            92:                                        <dt><tt>stepout <i>stepout</i></tt></dt>
        !            93:                                        <dd>Specifies the stepout threshold in seconds. The default without this
        !            94:                                                command is 900 s.  If set to zero, popcorn spikes will
        !            95:                                                not be suppressed.</dd>
        !            96:                        </dl></dd>
        !            97:                        <dt id="tos"><tt>tos [ beacon <i>beacon</i> | ceiling <i>ceiling</i> | cohort {0 | 1} | floor <i>floor</i> | maxclock <i>maxclock </i>| maxdist <i>maxdist</i> | minclock <i>minclock</i> | mindist <i>mindist </i>| minsane <i>minsane</i> | orphan <i>stratum</i> ]</tt></dt>
        !            98:                        <dd>This command alters certain system variables used by the the clock selection and clustering algorithms. The default values of these variables have been carefully optimized for a wide range of network speeds and reliability expectations. Very rarely is it necessary to change the default values; but, some folks can't resist twisting the knobs. It can be used to select the quality and quantity of peers used to synchronize the system clock and is most useful in dynamic server discovery schemes. The options are as follows:</dd>
        !            99:                                <dd><dl>
        !           100:                                        <dt><tt>beacon <i>beacon</i></tt></dt>
        !           101:                                        <dd>The manycast server sends packets at intervals of 64 s if less than  <tt>maxclock</tt> servers are available. Otherwise, it sends packets at the <i><tt>beacon</tt></i> interval in seconds. The default is 3600 s. See the <a href="manyopt.html">Automatic Server Discovery</a> page for further details.</dd>
        !           102:                                        <dt><tt>ceiling <i>ceiling</i></tt></dt>
        !           103:                                        <dd>Specify the maximum stratum (exclusive) for acceptable server packets. The default is 16. See the <a href="manyopt.html">Automatic Server Discovery</a> page for further details.</dd>
        !           104:                                        <dt><tt>cohort { 0 | 1 }</tt></dt>
        !           105:                                        <dd>Specify whether (1) or whether not (0) a server packet will be accepted for the same stratum as the client. The default is 0. See the <a href="manyopt.html">Automatic Server Discovery</a> page for further details.</dd>
        !           106:                                        <dt><tt>floor <i>floor</i></tt></dt>
        !           107:                                        <dd>Specify the minimum stratum (inclusive) for acceptable server packest. The default is 1. See the <a href="manyopt.html">Automatic Server Discovery</a> page for further details.</dd>
        !           108:                                        <dt><tt>maxclock <i>maxclock</i></tt></dt>
        !           109:                                        <dd>Specify the maximum number of servers retained by the server discovery schemes. The default is 10. See the <a href="manyopt.html">Automatic Server Discovery</a> page for further details.</dd>
        !           110:                                        <dt><tt>maxdist <i>maxdistance</i></tt></dt>
        !           111:                                        <dd>Specify the synchronization distance threshold used by the clock selection algorithm. The default is 1.5 s. This determines both the minimum number of packets to set the system clock and the maximum roundtrip delay. It can be decreased to improve reliability or increased to synchronize clocks on the Moon or planets.</dd>
        !           112:                                        <dt><tt>minclock <i>minclock</i></tt></dt>
        !           113:                                        <dd>Specify the number of servers used by the clustering algorithm as the minimum to include on the candidate list. The default is 3. This is also the number of servers to be averaged by the combining algorithm.</dd>
        !           114:                                        <dt><tt>mindist <i>mindistance</i></tt></dt>
        !           115:                                        <dd>Specify the minimum distance used by the selection and anticlockhop
        !           116:                                                algorithm. Larger values increase the tolerance for outliers;
        !           117:                                                smaller values increase the selectivity. The default is .001 s. In some
        !           118:                                                cases, such as reference clocks with high jitter and a PPS signal, it is
        !           119:                                                useful to increase the value to insure the intersection interval is
        !           120:                                                always nonempty.</dd>
        !           121:                                        <dt><tt>minsane <i>minsane</i></tt></dt>
        !           122:                                        <dd>Specify the number of servers used by the selection algorithm as the minimum to set the system clock. The default is 1 for legacy purposes; however, for critical applications the value should be somewhat higher but less than <tt>minclock</tt>.</dd>
        !           123:                                        <dt><tt>orphan <i>stratum</i></tt></dt>
        !           124:                                        <dd>Specify the orphan stratum with default 16. If less than 16 this is the stratum assumed by the root servers. See the <a href="assoc.html">Association Management</a> page for further details.</dd>
        !           125:                        </dl></dd>
        !           126:                        <dt id="trap"><tt>trap <i>host_address</i> [port <i>port_number</i>] [interface <i>interfSace_address</i>]</tt></dt>
        !           127:                        <dd>This command configures a trap receiver at the given host address and port number for sending messages with the specified local interface address. If the port number is unspecified, a value of 18447 is used. If the interface address is not specified, the message is sent with a source address of the local interface the message is sent through. Note that on a multihomed host the interface used may vary from time to time with routing changes.</dd>
        !           128:                                <dd>The trap receiver will generally log event messages and other information from the server in a log file. While such monitor programs may also request their own trap dynamically, configuring a trap receiver will ensure that no messages are lost when the server is started.</dd>
        !           129:                        <dt id="ttl"><tt>ttl <i>hop</i> ...</tt></dt>
        !           130:                        <dd>This command specifies a list of TTL values in increasing order. up to 8 values can be specified. In manycast mode these values are used in turn in an expanding-ring search. The default is eight multiples of 32 starting at 31.</dd>
        !           131:                </dl>
        !           132:                <hr>
        !           133:                <script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
        !           134:        </body>
        !           135: 
        !           136: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>