ntpd is the NTP daemon process which manages the local time of an POSIX system, sometimes in conjunction with internet standard servers.
ntpd |
[-bdgq] [-c <conffile>] [-D <level>] [-f <driftfile>] [-k <keyfile>] [-l <logfile>] [-p <pidfile>] [-r <broadcastdelay>] |
You should normally start the NTP daemon ntpd with the /etc/init.d/TCP-IP-SV.ntp script or with the /etc/rc2.d/S97TCP-IP-SV.ntp link pointing to this script. The script includes the /etc/default/TCP-IP-SV.ntp file in order to perform preallocations for particular shell variables (which define, among other things, job class, job name, account, conffile, driftfile, logfile and pidfile) and calls the /opt/TCP-IP-SV/ntp/sbin/start-ntp-daemon program.
The latter generates and starts an ENTER job which calls the /opt/TCP-IP-SV/ntp/etc/rc.d/ntpd script, which then calls the ntpd. Changes to the options should therefore be made in /etc/default/TCP-IP-SV.ntp.
The configuration parameters for ntpd are read from a configuration file (default: /etc/ntp.conf) when the daemon is started. If ntpd is used only as a broadcast client, a configuration file is not needed provided the NTP daemon is started using the ntpd -b command and not using the /etc/init.d/TCP-IP-SV.ntp script. Internal variables and/or configuration parameters of ntpd can be displayed with the ntpq program.
The local ntpd can be configured to one of the following modes with respect to the remote hosts:
Symmetrically active/passive
Client
Broadcast client
A broadcast client automatically recognizes remote servers and calculates time corrections on the basis of the message runtimes between the server and the client. Broadcast clients can be completely configured by means of parameters in the command line.
Options
Further information on the options described below and those which are not listed is available, for example, in the HTML documentation.
-b
ntpd is a broadcast client, i.e. it receives NTP broadcasts and synchronizes the local time accordingly.
-d
Starts ntpd in debugging mode. This option can be specified more than once for more extensive debugging messages. If the <logfile> option (see below) is not set, all debugging messages are written to the /var/adm/syslog file.
-g
Sets ntpd to always correct the local system time on the basis of a received timestamp. Without this option, the local system time is corrected only if it differs from the received timestamp by no more than 1000 seconds. You can use this option with the -q and -x options.
-q
ntpd is terminated after the system clock has been set for the first time. This behavior emulates the ntpdate program which will be scrapped in the future. You can use this option with the -g and -x options.
-c <conffile>
Refers to the name of the configuration file.
Default: /etc/ntp.conf
-D <level>
Sets the test mode level directly.
-f <driftfile>
Specifies the name of the drift file (see "driftfile statement"). This has the same effect as the driftfile statement.
-k <keyfile>
Specifies the file with the symmetrical keys. This has the same effect as the keys statement.
-l <logfile>
Specifies the name of the log file for syslog messages.
-p <pidfile>
Specifies the file in which ntpd stores its process ID.
-r <broadcastdelay>
ntpd usually balances out message runtimes between a broadcast server and the client automatically. If this is not possible, you can use this option to specify an estimated message runtime.