31.
NTP Client Description
MN700004 Rev 01
348
device-name
(config)#
time-server ntp add
A.B.C.D
2. Add an MD5 authentication key with key ID of 27 and plain-text key
qwerty
:
device-name
(config)#
time-server ntp key add 27 qwerty
3. Start the NTP server polling with refresh period of 10 minutes and time zone 2:
device-name
(config)#
time-server ntp start 10 2
Configuring Daylight Saving Time (DST)
You can configure your switch to observe the daylight saving time in your area. This way,
whenever the system time is corrected using a timeserver, it will be automatically corrected
with the local DST time offset. The option can be set in two ways: as either recurring or one-
time option. Table 31-2 lists the commands that invoke the recurring or the nonrecurring
option, respectively.
Table 31-2 Daylight Saving Time Commands
Command Description
time-server
summer-time
recurring
Configures the switch to perform DST adjustment that recurs yearly.
time-server
summer-time
date
Configures the switch to perform one-time DST adjustment on specified
dates.
Enabling the Daylight Saving Time Adjustment
The
time-server summer-time recurring
command, in Global Configuration mode,
configures the switch to adjust system time to daylight saving time in a recurring fashion. You
specify the start and end dates and times for the DST and this time adjustment will repeat
every year.
The
no
form of the command removes the summer time definition.
By default, the summer time definition is disabled.
Command Syntax
device-name
(config)#
time-server summer-time recurring
(
first
1
|<N
1
>|last
1
)
DAY
1
MONTH
1
HH:MM:SS
1
(first
2
|<N
2
>|last
2
)
DAY
2
MONTH
2
HH:MM:SS
2
<
T
>