Clock Commands
78-21075-01 Command Line Interface Reference Guide
7.1
clock set
The clock set Privileged EXEC mode command manually sets the system clock.
Syntax
hh
mm
ss
clock set
:
:
{[
Parameters
•
—Specifies the current time in hours (military format), minutes,
hh:mm:ss
and seconds. (Range: hh: 0-23, mm: 0-59, ss: 0-59)
•
—Specifies the current day of the month. (Range: 1-31)
day
•
month—Specifies the current month using the first three letters of the
month name. (Range: Jan–Dec)
•
year—Specifies the current year. (Range: 2000–2037)
Command Mode
Privileged EXEC mode
User Guidelines
It is recommended that the user enter the local clock time and date.
Example
The following example sets the system time to 13:32:00 on March 7th, 2005.
switchxxxxxx#
clock set
7.2
clock source
The clock source Global Configuration mode command configures an external
time source for the system clock. Use the no form of this command to disable the
external time source.
day month
month day
] | [
13:32:00 7 Mar 2005
year
]}
7
134