D-Link DES-3010G Reference Manual - Page 126

Time and SNTP Commands, config sntp

Page 126 highlights

DES-3010F / DES-3010G / DES-3018 / DES-3026 Layer 2 Switch CLI Reference Manual 21 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 config sntp show sntp enable sntp disable sntp config time config time_zone config dst show time Parameters {primary | secondary | poll-interval } {operator [+ | -] | hour | min} [disable | repeating {s_week | s_wday | s_mth | s_time | e_week | e-wday | e_mth | e_time | offset [30 | 60 | 90 | 120]} | annual {s_date | s_mth | s_time | e_date | e_mth | e_time | offset [30 | 60 | 90 | 120]}] Each command is listed, in detail, in the following sections. config sntp Purpose Syntax Description Parameters Restrictions Used to setup SNTP service. config sntp {primary | secondary | poll-interval } Use this command to configure SNTP service from an SNTP server. SNTP must be enabled for this command to function (See enable sntp). primary − This is the primary server the SNTP information will be taken from. − 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. − The IP address for the secondary server. poll-interval − This is the interval between requests for updated SNTP information. − The polling interval ranges from 30 to 99,999 seconds. The default setting is 720 seconds. 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: 124

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147

DES-3010F / DES-3010G / DES-3018 / DES-3026 Layer 2 Switch CLI Reference Manual
21
T
IME AND
SNTP
C
OMMANDS
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 30-99999>}
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 {s_week <start_week 1-4,last> | s_wday
<start_weekday sun-sat>| s_mth <start_mth 1-12> | s_time <start_time
hh:mm> | e_week <end_week 1-4,last> | e-wday <end_weekday sun-sat>
| e_mth <end_mth 1-12> | e_time <end_time hh:mm> | offset [30 | 60 | 90 |
120]} | annual
{s_date <start_date 1-31> | s_mth <start_mth 1-12> |
s_time <start_time hh:mm> | e_date <end_date 1-31> | e_mth <end_mth
1-12> | e_time <end_time 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
30-99999>}
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.
secondary
This is the secondary server the SNTP information will be taken
from in the event the primary server is unavailable.
poll-interval
This is the interval between requests for updated SNTP
information.
Restrictions
Only administrator-level users can issue this command. SNTP service must
be enabled for this command to function (enable sntp).
±
±
±
<ipaddr>
The IP address of the primary server.
<ipaddr>
The IP address for the secondary server.
<int 30-99999>
The polling interval ranges from 30 to 99,999
seconds. The default setting is 720 seconds.
Example usage:
To configure SNTP settings:
124