8-144 C122-E003-02EN
GSWB
CHAPTER 8 CLI Operations
8.3 Operation Commands
This section describes the operation commands.
8.3.1 Console-related commands
This section describes the console-related commands.
8.3.1.1 clock set
This command sets the software clock. The setting values 0 to 9 for the month, day,
hour, minute, and second are equivalent to 00 to 09.
Example:
(1) Synopsis
(2) Options
z <hh:mm:ss>: Specifies the current time.
- hh: Specifies the hour (0 to 23).
- mm: Specifies the minute (0 to 59).
- ss: Specifies the second (0 to 59).
z <day>: Specifies the day (1 to 31).
z <month>: Specifies the month (01 to 12).
z <year>: Specifies the year (1970 to 2037).
The hour, minute, second, day, and month can be entered as a one-digit or two-digit
value.
The setting values 0 to 9 are equivalent to 00 to 09.
switch#clock set 1:1:1 1 2 2003
Sat Feb 1 01:01:01 JST 2003
switch#clock set 01:01:01 01 02 2003
Sat Feb 1 01:01:01 JST 2003
switch#
clock set <hh:mm:ss> <day> <month> <year>