Purpose
Initializes the Network Time Protocol Daemon
Synopsis
runntp [-localclock] [-precision <small negative integer>] [-logfile <filename for ntpd's stdout/stderr>] [-ntpdpath <pathname of ntpd executable (/usr/afs/bin/ntpd)>] [<host>+] [-help]
This command does not use the syntax conventions of the AFS command suites. Provide the command name and all option names in full.
Description
The runntp command initializes the Network Time Protocol Daemon (NTPD) and related programs on the local machine and constructs an ntp.conf configuration file. The intended use is on AFS file server machines as a convenient interface to the standard ntpd program.
In the conventional configuration, the binary file for the command is located in the /usr/afs/bin directory on a file server machine. The command is not normally issued at the command shell prompt, but rather placed into a file server machine's /usr/afs/local/BosConfig file with the bos create command. If it is ever issued at the command shell prompt, the issuer must be logged onto a server machine as the local superuser root.
Cautions
Do not run the runntp program if NTPD or another time protocol is already in use in the cell. Running two time-synchronization protocols can cause errors.
Options
For example, a value of -6, which translates to 2-6 or 1/64, means that the local clock ticks once every 1/64th of a second, or has a precision of about 60 ticks per second. A value of -7 translates to about 100 ticks per second. A value of -10 translates to about 1000 ticks per second (a millisecond clock).
In general, this argument is necessary only on the system control machine. If the issuer omits it, then the local machine consults the local database server machines listed in its copy of the /usr/afs/etc/CellServDB file.
For advice on selecting appropriate time sources, see the IBM AFS Quick Beginnings or ask AFS Product Support.
Privilege Required
The issuer must be logged in as the superuser root on a file server machine to issue the command at a command shell prompt. It is conventional instead to create and start the process by issuing the bos create command.
Related Information
UNIX manual page for ntp
UNIX manual page for ntpd
UNIX manual page for ntpdc