Main index | Section 8 | 日本語 | Options |
The following options are available:
| |
Enable debugging mode; do not detach from the terminal. | |
| |
Add network to the list of networks to ignore. All other networks to which the machine is directly connected are used by timed. This option may be specified multiple times to add more than one network to the list. | |
| |
Create a list of trusted hosts. | |
Can take one or more parameters. | |
timed will only accept trusted hosts as masters. If it finds an untrusted host claiming to be master, timed will suppress incoming messages from that host and call for a new election. | |
Use real host names (resolvable by RDNS) not aliases (eg in named(8) parlance: use A names, not C names). | |
Use full names eg time1.domain.com not time1. | |
| |
If
| |
| Allow this host to become a timed master if necessary. |
| Add network to the list of allowed networks. All other networks to which the machine is directly connected are ignored by timed. This option may be specified multiple times to add more than one network to the list. |
| Enable tracing of received messages and log to the file /var/log/timed.log. Tracing can be turned on or off while timed is running with the timedc(8) utility. |
The
A
timed
running without the
The timed utility is based on a master-slave scheme. When timed is started on a machine, it asks the master for the network time and sets the host's clock to that time. After that, it accepts synchronization messages periodically sent by the master and calls adjtime(2) to perform the needed corrections on the host's clock.
It also communicates with
date(1)
in order to set the date globally,
and with
timedc(8),
a
timed
control utility.
If the machine running the master becomes unreachable,
the slaves will elect a new master
from among those slaves
which are running with at least one of the
At startup
timed
normally checks for a master time server on each network to which
it is connected, except as modified by the
One way to synchronize a group of machines is to use
ntpd(8)
to
synchronize the clock of one machine to a distant standard or a radio
receiver and
Messages printed by the kernel on the system console occur with interrupts disabled. This means that the clock stops while they are printing. A machine with many disk or network hardware problems and consequent messages cannot keep good time by itself. Each message typically causes the clock to lose a dozen milliseconds. A time daemon can correct the result.
Messages in the system log about machines that failed to respond usually indicate machines that crashed or were turned off. Complaints about machines that failed to respond to initial time settings are often associated with "multi-homed" machines that looked for time masters on more than one network and eventually chose to become a slave on the other network.
The protocol is based on
UDP/IP
broadcasts.
All machines within the range of a broadcast that are using the
TSP
protocol must cooperate.
There cannot be more than a single administrative domain using the
/var/log/timed.log | tracing file for timed |
/var/log/timed.masterlog | |
log file for master timed | |
TSP: The Time Synchronization Protocol for UNIX 4.3BSD,
, ,The latest timed code has been made available as a port (net/timed) in preparation of removal from base in FreeBSD 13.0 .
TIMED (8) | February 11, 2008 |
Main index | Section 8 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If you sat a monkey down in front of a keyboard, the first thing typed would be a unix command. | ” |
— Bill Lye |