2.3.1. clock set

Syntax

clock set HH:MM:SS (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) <1-31> <2000-2035>

Parameter

HH:MM:SS (jan | mar | apr | may | jun | jul | aug | sep | oct | nov | dec) <1-31> <2000-2035>

Specify static time of year, month, day, hour, minute,second

Default

No default is defined. The clock set to 2000/01/01 08:00:00 by default at startup.

Mode

Privileged EXEC

Usage

Use the clock set command to set static time. The static time won’t save to configuration file. You can verify your setting by entering the show clock command.

Example

The example shows how to set static time of switch.

Switch# clock set 11:03:00 sep 21 2012
11:03:00 GMT(UTC+0) Sep 21 2012
Switch# show clock
11:03:21 GMT(UTC+0) Sep 21 2012
No time source