Send documentation comments to mdsfeedback-doc@cisco.com
4-92
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 4 C Commands
clock set
clock set
To change the system time on a Cisco MDS 9000 Family switch, use the clock set command in EXEC
mode.
clock set HH:MM:SS DD Month YYYY
Syntax Description
Defaults None.
Command Modes EXEC mode.
Command History
Usage Guidelines Generally, if the system is synchronized by a valid outside timing mechanism, such as an NTP clock
source, or if you have a switch with calendar capability, you do not need to set the system clock. Use this
command if no other time sources are available. The time specified in this command is relative to the
configured time zone.
The clock set command changes are saved across system resets.
Examples The following example displays the clock set command:
switch# clock set 15:58:15 12 August 2002
Mon Aug 12 15:58:00 PDT 2002
HH The two-digit time in hours in military format (15 for 3 p.m.).
MM The two-digit time in minutes (58).
SS The two-digit time in seconds(15).
DD The two-digit date (12).
Month The month in words (August).
YYYY The four-digit year (2002).
Release Modification
1.0(2) This command was introduced.