Specifications
DGS-3048 Layer 2 Switch CLI Reference Manual
156
22
TIME AND SNTP COMMANDS
The Simple Network Time Protocol (SNTP) (an adaptation of the Network Time Protocol (NTP)) commands in
the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config sntp {primary <ipaddr> | secondary <ipaddr> | poll-interval <int 60-86400>}
show sntp
enable sntp
disable sntp
config time <date ddmmmyyyy> <time hh:mm:ss >
config time-zone {operator [+ | -] | hour <gmt_hour 0-13> | min<minute 0-59>}
config dst
[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]}]
show time
Each command is listed, in detail, in the following sections.
config sntp
Purpose Used to setup SNTP service.
Syntax
config sntp {primary <ipaddr> | secondary <ipaddr> | poll-interval <int
60-86400>}
Description Use this command to configure SNTP service from an SNTP server. SNTP
must be enabled for this command to function (See enable sntp).
Parameters
primary − This is the primary server the SNTP information will be taken from.
• <ipaddr> − The IP address of the primary server.
secondary − This is the secondary server the SNTP information will be taken
from in the event the primary server is unavailable.
• <ipaddr> − The IP address for the secondary server.
poll-interval − This is the interval between requests for updated SNTP
information.
• <int 60-86400> − The polling interval ranges from 60 to 86,400
seconds. The default setting is 720 seconds.
Restrictions Only administrator-level users can issue this command. SNTP service must
be enabled for this command to function (enable sntp).
Example usage:
To configure SNTP settings:
DGS3048#config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-
interval 30
Command: confi
g
snt
p
p
rimar
y
10.1.1.1 secondar
y
10.1.1.2
p
oll-