cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
490
Views
0
Helpful
1
Replies

date and time not displayed in "sh logging"

sagar.shetty
Level 1
Level 1

Hi

I have a 3500XL switch which doesnot display the date and time of the events occuring when issued the "sh logging" command.

Instead it only displays some alphanumeric characters as "1w0d:" in place of the date and time.

Can anybody help me out the cause of this

1 Accepted Solution

Accepted Solutions

a.awan
Level 4
Level 4

First of all you need to configure the correct time on your router. This can be done using either the clock set command or configuring NTP (preferred). Currently you probably have the following statement configured:

service timestamps log uptime

Change this to:

service timestamps log datetime msec localtime show-timezone

This should fix it.

View solution in original post

1 Reply 1

a.awan
Level 4
Level 4

First of all you need to configure the correct time on your router. This can be done using either the clock set command or configuring NTP (preferred). Currently you probably have the following statement configured:

service timestamps log uptime

Change this to:

service timestamps log datetime msec localtime show-timezone

This should fix it.