D-Link DES-3526 Reference Manual - Page 168

Time and SNTP Commands, config sntp

Page 168 highlights

DES-3526 Layer 2 Fast Ethernet Switch 23 TIME AND SNTP COMMANDS The Simple Network Time Protocol (SNTP) (an adaptation of the Network Time Protocol (NPT)) 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_day | s_mth | s_time | e_week | e-day | 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 Used to setup SNTP service. Syntax config sntp {primary | secondary | pollinterval } 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. • − 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. Restrictions Only administrator-level users can issue this command. SNTP service must be enabled for this command to function (enable sntp) 160

  • 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
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246

DES-3526 Layer 2 Fast Ethernet Switch
23
T
IME AND
SNTP
C
OMMANDS
The Simple Network Time Protocol (SNTP) (an adaptation of the Network Time Protocol (NPT)) 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_day
<start_day sun-sat>| s_mth <start_mth 1-12> | s_time <start_time
hh:mm> | e_week <end_week 1-4,last> | e-day <end_day 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 <int 30-99999>
This is the interval between requests
for updated SNTP information. The polling interval ranges from 30 to
99,999 seconds.
Restrictions
<ipaddr>
The IP address of the primary server.
<ipaddr>
The IP address for the secondary server.
Only administrator-level users can issue this command. SNTP
service must be enabled for this command to function (
enable sntp
)
160