Set the Time on a Cisco Router Manually

Setting the internal clock in a Cisco router allows timestamping of logging information which makes troubleshooting much easier. If you do not have an NTP server running, you can set the time manually with a simple command.


To set the time, use this command in enable mode (not configuration mode):

Router# clock set 22:55:05 June 19 2006

The time is in 24-hour mode. To see the information about the clock settings, use the following:

Router# show clock detail
22:56:07.136 PDT Mon Jun 19 2006
Time source is user configuration

This will show the current date and time and the source of the time configuration (in this case showing that the time was manually set).

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

2 Responses to “Set the Time on a Cisco Router Manually”

  1. June 09, 2011 at 7:35 pm, Anonimouse :D said:

    Hi!
    I can´t delete the clock! it´s possible?
    Thanks!

    Reply

  2. August 31, 2012 at 12:08 pm, Brendon de Meyer said:

    Hi Quinn,

    Just want to say thanks for this. I am a CCNP been in the industry for a while now and I forgot completely how to do this!! Embarrasing as it is!!!!

    Amazing how you forget the simple stuff! Really silly concept as well!!
    Thanks!!!

    Reply

Leave a Reply

You may also like-

How to enable local logging on a Cisco router.How to enable local logging on a Cisco router.In order to view the log of a Cisco router we have to enable logging.This is done using the following command global configuration command: ... Increase or change Cisco router log sizeIncrease or change Cisco router log sizeMessages logged by a router can make troubleshooting problems substantially easier. However, the default size of most Cisco routers is 4096 bytes which typically ...