Invokes the time server daemon.
/usr/sbin/timed [ -c ] [ -M ] [ -t ] [ [ -n Network ] ... | [ -i Network ] ... ]
Note: Use the rc.tcpip file to start the daemon with each initial program load. You can specify the timed daemon at the command line. You can also use SRC commands to control the timed daemon from the command line.
The timed daemon synchronizes one machine's clock with those of other machines on the local area network that are also running the timed daemon. The timed daemon slows the clocks of some machines and speeds up the clocks on other machines to create an average network time.
When the timed daemon is started without the -M flag, the machine locates the nearest master time server and asks for the network time. Then the machine uses the date command to set the machine's clock to the network time. The machine accepts synchronization messages periodically sent by the master time server and calls the adjtime subroutine to perform the needed corrections on the machine's clock.
When the timed daemon is started with the -M flag, the machine polls each of its local area networks to determine which networks have master time servers. The machine becomes a master time server on the networks that do not have a master time server. The machine becomes a submaster time server on the networks that already have a master time server. The timed daemon creates the /var/adm/timed.masterlog file when the timed daemon is started with the -M flag. The /var/adm/timed.masterlog file contains a log of the deltas between the local machine's clock and the clocks of the other machines on the networks for which the local machine is the master time server. The /var/adm/timed.masterlog file is updated approximately every 4 minutes and is never cleared. You may need to clear this file to conserve disk space. If the machine is only a submaster time server on its networks, the /var/adm/timed.masterlog file remains empty. To clear the /var/adm/timed.masterlog file, enter:
cat /dev/null > /var/adm/timed.masterlog
If the master time server ceases to function on a network, a new master time server is elected from the submaster time servers on that network. The timedc command enables you to select which submaster time server becomes the master time server.
The timed daemon can be controlled using the System Resource Controller (SRC), the System Management Interface Tool (SMIT), or the command line. The timed daemon is not started by default. Use the rc.tcpip file to start the timed daemon with each initial program load.
The timed daemon is a subsystem controlled by the SRC. The timed daemon is a member of the SRC tcpip system group. Use the following SRC commands to manipulate the timed daemon:
startsrc | Starts a subsystem, group of subsystems, or a subserver. |
stopsrc | Stops a subsystem, group of subsystems, or a subserver. |
lssrc | Gets the short status of a subsystem, group of subsystems, or a subserver. The long status option usually found in lssrc is not supported for the timed daemon. |
startsrc -s timed
This command starts the daemon. You can use this command in the rc.tcpip file or on the command line. The -s flag specifies that the subsystem that follows is to be started.
stopsrc -s timed
This command stops the daemon. The -s flag specifies that the subsystem that follows is to be stopped.
lssrc -s timed
This command returns the name of the daemon, the process ID of the daemon, and the state of the daemon (active or inactive).
startsrc -s timed -a "-M -i net1 -i net2"
This command starts the daemon. The machine becomes the master or submaster time server for its networks. Networks net1 and net2 are excluded from clock synchronization. The -s flag specifies that the subsystem that follows is to be started. The -a flag specifies that the timed daemon should be started with the flags that follow. The flags must be enclosed in quotes.
timed -t -n net1 -n net2
This command starts the daemon. Tracing is activated and both net1 and net2 are included in clock synchronization.
/var/adm/timed.log | Contains the messages traced for the timed daemon. This file is created when the timed daemon is started with the -t flag or when tracing is enabled with the timedc command. |
/etc/rc.tcpip | Contains the SRC commands to be executed at system startup. |
/var/adm/timed.masterlog | Contains a log of the deltas between the master time server clock and the clocks of the other machines on the networks. This file is created when the timed daemon is started with the -M flag. However, this file only contains information for those networks on which the machine is the master time server. |
The date command, timedc command.
The adjtime subroutine, gettimeofday subroutine.
The networks file format.
TCP/IP Daemons in AIX 5L Version 5.2 System Management Guide: Communications and Networks.