cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
626
Views
0
Helpful
4
Replies

Time differences on cisco switches

hgorter
Level 1
Level 1

We are using a NTP server for our cisco switches. All our switches have the same time when we check with sh clock. NTP works fine it seems. But if we check the log file (sh logging), all events are having a time 2 hours earlier than the time we received from the NTP server. How come? And how to fix this so that time in logging events will become the same time as from the NTP?

Thanks in advance for your replies.

Kind Regards,

Harry Gorter

4 Replies 4

milan.kulik
Level 10
Level 10

Hi,

use

service timestamps log datetime msec localtime

command in your configs.

It will put your local time stamps to syslog.

You can also configure your local time shift from NTP received time using

clock timezone ....

clock summer-time .....

commands.

Regards,

Milan

Thanks a lot for your reply Milan.

Will try this solution.

Kind regards,

Harry Gorter

saif_farooq
Level 1
Level 1

Can you explain me how I can configure NTP on a network with different Routers and switches.

Regards.