cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1804
Views
0
Helpful
6
Replies

Displaying timestamp format

kian_hong2000
Level 1
Level 1

Hi,

Can we actually change the timestamp format for switches/routers to include the DAY of the week in front of the the MONTH?

Example:

From:  Jan 26 17:40:00          (MM DD HH:MM:SS)

To:     Wed Jan 26 17:40:00   (DAY MM DD HH:MM:SS)

Most of the documents does not show it.

6 Replies 6

jack
Level 1
Level 1

What command are you using to display the time?

Hi,

Is it possible to change the timestamp for example using "show logging" command as stated earlier ?

The aim is to capture any timestamp to the log through logging in this example.

Below are the login log capture using a linux device. Is cisco equipment able to capture that way ?

Last login: Wed Jan 26 17:40:00 on ssh from x.x.x.x
Last successful login: Wed Jan 26 17:40:25 on ssh from x.x.x.x

I am not aware of any IOS command whch will make that change in the format of the date information that is displayed.

HTH

Rick

HTH

Rick

Hi,

Please check below mention command to change Clock setting on Cisco router verify dose your current running IOS support.

clock set

To change the software system clock settings, enter the clock set command in EXEC mode, using one of the following formats.

clock set hh:mm:ss day month year

clock set hh:mm:ss month day year

Cheers,


Mohseen Patel

No it won't.

Mohseen

The clock set command does allow you to change the order of day month year or month day year. But this format change is only for entering the command and does not change how the time is displayed on output.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card