timesource
The timesource kickstart command is optional. Use it to set NTP, NTS servers, and pools that provide time data, as well as control whether NTP services are enabled or disabled on the system.
- Syntax
-
timesource [--ntp-server NTP_SERVER | --ntp-pool NTP_POOL | --ntp-disable] [--nts] - Mandatory options
-
It is mandatory to specify one of the following options when you use the
timesourcecommand:--ntp-server- adds one NTP server as a time source. You can add this option only once to a single command to add one NTP time source server. To add multiple sources, add multiple timesource commands each with a single--ntp-serveror--ntp-pooloption each time. For example, to add multiple sources for Europe timezone.
timezone Europe timesource --ntp-server 0.rhel.pool.ntp.org timesource --ntp-server 1.rhel.pool.ntp.org timesource --ntp-server 2.rhel.pool.ntp.org--ntp-pool- adds a NTP server pool as a time source. This option can be added only once to add a single NTP time source pool. Repeat the timesource command to add multiple sources.--ntp-disable- disables NTP time sources for the installed system.
- Optional options
-
--nts- the server or pool added with this command uses the NTS protocol. Note that this option can be added even with --ntp-disable, but it has no effect.