set clocksource

Purpose

Configures access to various external time sources that can be used to set and maintain time on the device.

Required permissions

For Digi products with two or more users, permissions must be set to set permissions s-time-source=read to display time source settings, and to set permissions s-time-source=rw to display and configure time source settings. See set permissions for details on setting user permissions for commands.

Syntax

Configure a time source entry

set clocksource [range={1|2|3|4|5}]
[type={unconfigured|cellular|sntp}]
[state={on|off}]
[interval=interval]
[fqdn=fqdn]

Display a time source entry

set clocksource [range={1|2|3|4|5}]

Options

range={1|2|3|4|5}

Specifies the time source entry being created or modified.

type={unconfigured|cellular|sntp}

The type of clock source.

unconfigured

No clock source.

cellular

Use the cellular modem as a clock source.

sntp

Use an NTP/SNTP server as a clock source.

state={on|off}

Enable or disables a clock source entry.

on

This clock source entry is enabled.

off

This clock source entry is disabled.

interval=interval

The rate in seconds at which the time source will be polled for time. If multiple clock sources are enabled, an entry with a shorter poll time will have more influence on the device’s time than an entry with a longer poll time

fqdn=fqdn

Specifies the Fully-Qualified Domain Name or IP address of the NTP/SNTP server.

Examples

# > set clocksource range=3 type=cellular state=on interval=3600

See also