Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Time differences on cisco switches

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

Re: Time differences on cisco switches

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

New Member

Re: Time differences on cisco switches

Thanks a lot for your reply Milan.

Will try this solution.

Kind regards,

Harry Gorter

New Member

Re: Time differences on cisco switches

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

Regards.

Re: Time differences on cisco switches

216
Views
0
Helpful
4
Replies
CreatePlease to create content