The Time and SNTP commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command
config sntp
show sntp
enable sntp
disable sntp
config time date
config time_zone
config dst
show time
Each command is listed in detail, as follows:
config sntp
Purpose
Syntax
Description
Parameters
Restrictions
Example usage:
To configure SNTP settings:
TIME AND SNTP COMMANDS
Parameter
{primary <ipaddr> | secondary <ipaddr> | poll-interval <int 60-86400>}
<date ddmmyyyy> <time hh:mm:ss>
{operator [+ hour <gmt_hour 0-13> minute <minute 0-59> | - hour <gmt_hour 0-
12> minute <minute 0-59>]}
[disable | repeating {week day month hh:mm week day month hh:mm | offset [30
| 60 | 90 | 120]} | annual {date month hh:mm date month hh:mm | offset [30 | 60
| 90 | 120]}]
To setup SNTP service.
config sntp {primary <ipaddr> | secondary <ipaddr> | poll-
interval <int 60-86400>}
The config sntp command configures SNTP service from an SNTP
server. SNTP must be enabled for this command to function (See
enable sntp).
primary <ipaddr> – Specifies the IP address of the primary SNTP
server.
secondary <ipaddr> – Specifies the IP address of the secondary
SNTP server.
poll-interval <int 60-86400> – The interval between requests for
updated SNTP information. The polling interval ranges from 60
seconds (1 minute) to 86,400 seconds (1 day).
Only administrator or operate-level users can issue this command.
SNTP service must be enabled for this command to function (enable
sntp).
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
21
120