clock set is a Cisco IOS privileged EXEC command that manually sets the software clock’s date and time. Accurate timestamps support log correlation and time-dependent security mechanisms. section 2.1.2 section 2.4
Use the command and related clock operations as follows:
- Enter clock set hh:mm:ss month day year from privileged EXEC mode; month and day may be reversed. section 2.1.2
- Verify the result with show clock detail; user configuration becomes the time source and the nonauthoritative asterisk disappears. section 2.1.2
- Use clock update-calendar or clock read-calendar for one-time synchronization with the hardware calendar. section 2.1.2
Set and verify the software clock
R1# clock set 18:30:00 August 28 2023 R1# show clock detail 18:30:03.553 UTC Mon Aug 28 2023 Time source is user configuration
