System administration and management
TransPort LR User Guide
96
Set system date and time
Having an accurate date and time set on your device is important for a number of reasons, including
validating certificates and having accurate timestamps on events in the event log.
Methods for setting system date and time
There are two methods for setting system date and time:
n
Using the Simple Network Time Protocol (SNTP). SNTP continually polls an external NTP time
server on either a private company network or the internet at a configured interval rate.
SNTP usually provides an accuracy of less than a second.
n
Setting the date and time manually.
Set the date and time using SNTP
Required configuration items
n
Enable SNTP.
Additional configuration options
n
The SNTP server. By default, SNTP is configured to use Digi’s SNTP server,
time.devicecloud.com
.
n
The SNTP update interval. This is the interval at which the TLR device checks the SNTP server
for date and time. By default, SNTP is checked every hour. At bootup, the device attempts to
send an update message to the configured SNTP server every
15
seconds until it receives a
response. Once it receives a response, it reverts to the configured update interval.
From the command line
To set the date and time using SNTP, use the
command.
1. Enable SNTP.
sntp state on
2. Optional: Set the SNTP server. For example, to set the server to
time.digi.com
:
sntp server time.digi.com
3. Optional: Set the SNTP update interval.
sntp update-interval 10
Set the date and time manually
From the command line
To set the date and time manually, use the
command. The
command specifies the time in
HH:MM:SS
format, where seconds are optional, followed by the date,
in
DD:MM:YYYY
format.
For example, to manually set the time and date to
14:55:00
on
May 3, 2016
, enter: