Setting the Time for the Software Clock
You can change the order of the month and day parameters to enter the time and date as time day month
year. You cannot delete the software clock.
The software clock runs only when the software is up. The clock restarts, based on the hardware clock,
when the switch reboots. To set the time and date for the software clock, use the following command:
Command Syntax
clock set time month day year
Synchronizing the Hardware Clock Using the Software Clock
The Aggregator allows you to synchronize the hardware clock with the time setting on the
software clock. Perform this operation only if you are sure that the hardware clock is inaccurate
and the software clock is correct.
Note: You cannot undo the result of this operation by entering the
To set the hardware clock according to the time on the software clock, enter the
update-calendar
Command Syntax
clock update-calendar
226
|
System Time and Date
Command Mode
EXEC Privilege
FTOS#clock set 12:11:00 21 may 2012
FTOS#
command.
Command Mode
EXEC Privilege
Purpose
Set the system software clock to the current time and
date.
•
Enter the time in hours:minutes:seconds.
time:
For the hour variable, use the 24-hour format, for
example, 17:15:00 is 5:15 pm.
•
month:
Enter the name of one of the 12 months in
English. You can enter the name of a day to
change the order of the display to
.
year
•
Enter the number of the day. Range: 1 to 31.
day:
You can enter the name of a month to change the
order of the display to
time day month year
•
Enter a four-digit number as the year.
year:
Range: 1993 to 2035.
form of the command.
no
Purpose
Reset the hardware clock to the current time and date
on the software clock.
time day month
clock