Setting The Time Function; Setting The Ntp Client Function; Setting The Time Zone For The Os Time - Hitachi CE50-10 Instruction Manual

Table of Contents

Advertisement

5.8 Setting the time function
5.8.1 Setting the NTP client function
The unit supports the NTP client function. If the NTP server is running in the network environment connected to the
unit, you can update the unit time based on the time distributed by the NTP server. Use the systemd-timesyncd
service to synchronize the unit time with the time of the NTP server. When setting up systemd-timesyncd, you
must first modify the definition file, and then set up the service.
The NTP client function is disabled by default. To enable this function, perform the following.
1. Modify the definition file.
Definition file name: /etc/systemd/timesyncd.conf
In the timesyncd.conf file, specify the NTP server to be referenced by the systemd-timesyncd service.
The timesyncd.conf definition file does not contain any settings by default. Edit the file to specify required
definitions, if any.
[Time]
#NTP=150.0.0.10
#FallbackNTP=ntp.ubuntu.com
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
(A)
Specify the host name or IP address of the NTP server that the systemd-timesyncd service will
reference.
(B)
Specify the host name or IP address of the NTP server that is referenced if an attempt to synchronize with (A)
fails.
(C)
Specify the maximum permitted communication delay time (communication between the NTP server and NTP
client).
(D)
Specify at least 16 seconds as the minimum polling interval for NTP messages.
(E)
Specify the maximum polling interval for NTP messages. Specify a value greater than the value specified in
(D).
2. If a firewall is enabled, permit transmission to port 123 with the UDP protocol.
For details about how to set this up, see (3) Setting firewall rules.
This setting is unnecessary if the firewall has been disabled as described in (2) Enabling or disabling the firewall.
3. Enable the service.
Run the following command to enable the systemd-timesyncd service.
$ sudo timedatectl set-ntp true
5.8.2 Setting the time zone for the OS time
The OS time of the CE50-10 is set to UTC (Coordinated Universal Time) at the time of product shipment.
If you want to display the OS time in your preferred local time zone, specify the following settings.
1. Obtains the time zone list.
Run the following command to obtain a list of time zones that can be set.
$ sudo timedatectl list-timezones
5. Configuring Software Environment
--- (A)
--- (B)
--- (C)
--- (D)
--- (E)
49

Advertisement

Table of Contents
loading

Table of Contents