Cisco CCNA | CCNP Certification Training Site. Cisco tips and tools for exam success. logo video

clock set

Printer-Friendly Format

Command

Clock Set

Use

Sets the date and time on the router. It is important to configure your date and time in order to properly manage logs.

Syntax

Router# clock set hh:mm:ss DAY MONTH YEAR
OR
Router# clock set hh:mm:ss MONTH DAY YEAR

Example

In the below example the clock set command is used to set the time.

R1#clock set 15:37:00 30 NOV 2008
R1#
*Nov 30 15:37:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:39:07 UTC Fri Mar 1 2002 to 15:37:00 UTC Sun Nov 30 2008, configured from console by console.

Now to check the time, the show clock command is used

R1#show clock
15:41:32.883 UTC Sun Nov 30 2008



Back to commands department




Printer-Friendly Format
Home | Search | Contact Us | Tell a Friend | Text Size

2006-2012 HowtoNetwork.net All Rights Reserved. Reproduction without permission prohibited.
Reality Press, Midsummer Court, 314 Midsummer Blvd.,Milton Keynes, MK92UB, UK

This site is powered by MemberGate Membership Site Software