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 --- (A)
#FallbackNTP=ntp.ubuntu.com --- (B)
#RootDistanceMaxSec=5 --- (C)
#PollIntervalMinSec=32 --- (D)
#PollIntervalMaxSec=2048 --- (E)
(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
49
Summary of Contents for CE50-10
Page 1: ...Hitachi Industrial Edge Computer CE50 10 Instruction Manual CC 65 0171 ...
Page 10: ......
Page 23: ...Figure 1 6 Attaching mounting brackets 4 1 Installing the CE50 10 7 ...
Page 26: ......
Page 38: ......
Page 42: ...4 2 5 Connection diagram Figure 4 2 Connection diagram 4 External Contact Functions 26 ...
Page 44: ......
Page 87: ... sudo etc init d netfilter persistent save 5 Configuring Software Environment 71 ...
Page 117: ...version information 13 Log out from the unit exit 5 Configuring Software Environment 101 ...
Page 148: ......
Page 149: ...7 Maintaining the CE50 10 This chapter describes maintenance of the CE50 10 133 ...
Page 157: ...8 Troubleshooting This chapter describes troubleshooting of the CE50 10 141 ...
Page 162: ...8 1 14 Cannot turn off the power to the unit Please contact us 8 Troubleshooting 146 ...