Foundry NetIron M2404C and M2404F Metro Access Switches
Switch Administration (Rev. 03)
Managing the System Time and Date © 2008 Foundry Networks, Inc.
Page 70 of 87
Displaying the MD5 Authentication Key
The
time-server ntp key show
command, in Global Configuration mode, displays the existing
MD5 authentication key ID and string.
Command Syntax
device-name
(config)#
time-server ntp key show
Example
The following example adds an MD5 authentication key with key ID of 27 and plain-text key
qwerty
:
device-name
(config)#
time-server ntp key show
186.102.20.11
27 qwerty
System Time and Date Commands
You need to set the system time and date correctly for proper operation of key chains, and for
keeping proper track of events in logging messages.
Table 29
lists the commands that set and
display the system time and date.
Table 29: Time and Date Commands
Command
Description
date
Sets the system time and date.
show date
Displays the current time and date.
show clock
Displays the current time and date, and optionally the
synchronization client (if available).
time-server
Sets the device to synchronize with the specified remote host.
show time-server
Displays the time server configuration.
time-server summer-
time recurring
Adjusts the system time to daylight saving time in a recurring
fashion.
time-server summer-
time date
Adjusts the system time to DST and then back to standard time on
pre-set dates.
Setting the System Time and Date
The
date
command, in Global Configuration mode, sets the system time and date.
Command Syntax
device-name
(config)#
date hh:mm:ss <day> MONTH <year>
Argument Description
hh:mm:ss
Specifies the time (24-hour format) in hours and minutes.