peer [
HostAddress ] [ key Number ] [
version Number ] [ prefer ]
|
| Specifies that the local server operate in symmetric active mode with the
remote server specified by HostAddress. In this mode, the
local server can be synchronized to the remote server, or the remote server
can be synchronized to the local server. Use this method in a network
of servers where, depending on various failure scenarios, either the local or
remote server host may be the better source of time.
The key
Number specifies that all packets sent to HostAddress include
authentication fields encrypted using the specified key number. The
value of KeyNumber is the range of an unsigned 32 bit
integer.
The version
Number specifies the version number to use for outgoing NTP
packets. The values for Version can be 1 or
2. The default is NTP version 3 implementation.
The prefer option
marks the host as a preferred host. This host is not subject to
preliminary filtering.
|
server [
HostAddress ] [ key Number ] [
version Number ] [ prefer ] [
mode Number ]
|
| Specifies that the local server operate in client mode with the remote
server specified by HostAddress. In this mode, the local
server can be synchronized to the remote server, but the remote server can
never be synchronized to the local server.
The key
Number specifies that all packets sent to HostAddress include
authentication fields encrypted using the specified key number. The
value of KeyNumber is the range of an unsigned 32 bit
integer.
The version
Number specifies the version number to use for outgoing NTP
packets. The values for Version can be 1 or
2. The default is NTP version 3 implementation.
The prefer argument
marks the host as a preferred host. This host is not subject to
preliminary filtering.
|
broadcast [
HostAddress ] [ key Number ] [
version Number ] [ ttl Number ]
|
| Specifies that the local server operate in broadcast mode where the local
server sends periodic broadcast messages to a client population at the
broadcast/multicast address specified by HostAddress.
Ordinarily, this specification applies only to the local server operating as a
transmitter. In this mode, HostAddress is usually the
broadcast address on [one of] the local network[s] or a multicast
address. The address assigned to NTP is
224.0.1.1; presently, this is the only number that
should be used.
The key
Number specifies that all packets sent to HostAddress include
authentication fields encrypted using the specified key number. The
value of Number is the range of an unsigned 32 bit integer.
The version
Number specifies the version number to use for outgoing NTP
packets. The values for Version can be 1 or
2. The default is NTP version 3 implementation.
The ttl
Number is used only with the broadcast mode. It specifies the
time-to-live (TTL) to use on multicast packets. This value defaults to
127.
|
broadcastclient
| Specifies that the local server listen for broadcast messages on the
local network in order to discover other servers on the same subnet.
When the local server hears a broadcast message for the first time, it
measures the nominal network delay using a brief client/server exchange with
the remote server, then enters the broadcastclient mode, where it
listens for and synchronizes to succeeding broadcast messages.
|
multicastclient [
IPAddress ... ]
| Works like broadcastclient configuration option, but operates
using IP multicasting. If you give one or more IP addresses, the server
joins the respective multicast group(s). If you do not give an IP
address, the IP address assumed is the one assigned to NTP
(224.0.1.1).
|
driftfile
Filename
| Specifies the name of the file used to record the frequency offset of the
local clock oscillator. The xntpd daemon reads this file at
startup, if it exists, in order to set the initial frequency offset and then
updates it once per hour with the current offset computed by the
daemon. If the file does not exist or you do not give this option, the
initial frequency offset assumed is zero. In this case, it may take
some hours for the frequency to stabilize and the residual timing errors to
subside. The file contains a single floating point value equal to the
offset in parts-per-million (ppm).
Note: The update of the file occurs by first writing the
current drift value into a temporary file and then using rename???
to replace the old version. The xntpd daemon must have write
permission in the directory of the drift file, and you should avoid file
system links, symbolic or otherwise.
|
enable
auth | bclient | pll | monitor |
stats [ ... ]
|
| Enables various server options. Does not affect arguments not
mentioned.
The auth option causes
the server to synchronize with unconfigured peers only if the peer has been
correctly authenticated using a trusted key and key identifier. The
default for this argument is disable (off).
The bclient option
causes the server to listen for a message from a broadcast or multicast
server, following which an association is automatically instantiated for that
server. The default for this argument is disable (off).
The pll option enables
the server to adjust its local clock, with default enable (on). If not
set, the local clock free-runs at its intrinsic time and frequency
offset. This option is useful when the local clock is controlled by
some other device or protocol and NTP is used only to provide synchronization
to other clients.
The monitor option
enables the monitoring facility, with default enable (on).
The stats option
enables statistics facility filegen, with default enable (on).
|
disable
auth | bclient | pll | monitor |
stats [ ... ]
|
| Disables various server options. Does not affect arguments not
mentioned. The options are described under the enable
subcommand.
|
keys
Filename
| Specifies the name of a file which contains the encryption keys and key
identifiers used by the xntpd daemon when operating in
authenticated mode.
|
trustedkey
Number [ Number ... ]
| Specifies the encryption key identifiers which are trusted for the
purposes of authenticating peers suitable for synchronization. The
authentication procedures require that both the local and remote servers share
the same key and key identifier for this purpose, although you can use
different keys with different servers. Each Number is a 32
bit unsigned integer.
Note: The NTP key 0 is fixed and globally known. To
perform meaningful authentication, the 0 key should not be trusted.
|
requestkey
Number
| Specifies the key identifier to use with the xntpdc
query/control program that diagnoses and repairs problems that affect the
operation of the xntpd daemon. The operation of the
xntpdc query/control program is specific to this particular
implementation of the xntpd daemon and can be expected to work only
with this and previous versions of the daemon. Requests from a remote
xntpdc program which affect the state of the local server must be
authenticated, which requires both the remote program and local server share a
common key and key identifier. The value of Number is a 32
bit unsigned integer. If you do not include requestkey in
the configuration file, or if the keys do not match, such requests are
ignored.
|
controlkey
Number
| Specifies the key identifier to use with the ntpq query
program, that diagnoses problems that affect the operation of the
xntpd daemon. The operation of the ntpq query
program and the xntpd daemon conform to those specified in RFC
1305. Requests from a remote ntpq program which affect the
state of the local server must be authenticated, which requires both the
remote program and local server share a common key and key identifier.
The value of Number is a 32 bit unsigned integer. If you do
not include controlkey in the configuration file, or if the keys do
not match, such requests are ignored.
|
authdelay
Seconds
| Specifies the amount of time it takes to encrypt an NTP authentication
field on the local computer. This value corrects transmit timestamps
when using authentication on outgoing packets. The value usually lies
somewhere in the range 0.0001 seconds to 0.003 seconds, though
it is very dependent on the CPU speed of the host computer.
|
precision
Number
| Specifies the nominal precision of the local clock. The
Number is an integer approximately equal to the base 2 logarithm of
the local timekeeping precision in seconds. Normally, the
xntpd daemon determines the precision automatically at startup, so
use this option when the xntpd daemon cannot determine the
precision automatically.
|
broadcastdelay
Seconds
| Specifies the default delay to use when in broadcast or multicast
modes. These modes require a special calibration to determine the
network delay between the local and remote servers. Normally, this is
done automatically by the initial protocol exchanges between the local and
remote servers. In some cases, the calibration procedure may fail due
to network or server access controls, for example.
Typically for Ethernet, a number
between 0.003 and 0.007 seconds is appropriate. The
default is 0.004 seconds.
|
trap
HostAddress [ port Number ] [
interface Addess ]
|
| Configures a trap receiver at the given host address and port number for
sending messages with the specified local interface address. If you do
not specify the port number, the value defaults to 18447. If you do not
specify the interface address, the value defaults to the source address of the
local interface.
Note: On a multihomed host, the interface used may vary from
time to time with routing changes.
Normally, the trap receiver logs
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 ensures that when the server starts, no messages
are lost.
|
setvar
Variable [ default ]
| Specifies to add an additional system variable. You can use these
variables to distribute additional information such as the access
policy. If default follows a variable of the from
Name=Value , then the variable becomes part of the
default system variables, as if you used the ntpq rv
command. These additional variables serve informational purposes
only; they are not related to the protocol variables. The known
protocol variables always override any variables defined with
setvar.
There are three special variables
that contain the names of all variables of the same group. The
sys_var_list holds the names of all system variables, the
peer_var_list holds the names of all peer variables, and the
clock_var_list holds the names of the reference clock
variables.
|
logconfig
Key
| Controls the amount of output written to syslog or the logfile. By
default all output is turned on. You can prefix all KeyWords
with = (equal), + (plus) and - (dash). You can control four classes of
messages: sys, peer, clock, and sync. Within these classes, you
can control four types of messages:
- info
- Outputs informational messages that control configuration
information.
- events
- Outputs event messages that control logging of events (reachability,
synchronization, alarm conditions).
- status
- Outputs statistical messages that describe mainly the synchronization
status.
- all
- Outputs all messages having to do with the specified class and suppresses
all other events and messages of the classes not specified.
You form the KeyWord
by concatenating the message class with the event class. To just list
the synchronization state of xntp and the major system events,
enter:
logconfig =syncstatus +sysevents
To list all clock information and
synchronization information and have all other events and messages about
peers, system events and so on suppressed, enter:
logconfig =syncall +clockall
|