NTP clock timezone doubt

Answered Question
Aug 11th, 2009

Hi,


I have the following doubt:


In my customer switches the NTP server configured is located in US and hence CST time is being used. Also the switches send syslog messages to a syslog server also located in US and working with CST times.


My question is:


The customer is located in Europe and uses CET times. If I configure the switches with the command clock timezone CET +7, what timezone will the switch use to send the messages to the syslog, CST or CET?


Regards.

Correct Answer by Lucien Avramov about 7 years 6 months ago

To be more precise, yes you can add the time from the router if you want and you do have several options. Be aware this is not the default behavior.


NMS-CAT6K-B(config)#service timestamps log ?

datetime Timestamp with date and time

uptime Timestamp with system uptime


You can insert datetime or uptime and then for the datetime you can send the local time on the router or the UTC time and add if you want the timezone to it that is on the router.


More details:


http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp1029551


This should address your question

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
Lucien Avramov Wed, 08/05/2009 - 03:09

the syslog messages will be received with the timezone the server receiving them is.

Make sure the syslog server is synced as well with the ntp server else you will not be able to correlate the messages from the show log on the routers / switches with the syslog server.


jorge.calvo Tue, 08/11/2009 - 23:05

Thanks for your quick reply. So, if I understood it right, the clock timezone CET 7 command will only have local meaning to the switches and it will not affect the syslog time?


For instance, if in the NTP server the time is 9:00 AM CST and I configure the switch to show it as 16:00 CET, the messages received in the syslog will appear as 9:00 CST?


Thanks again and regards.

iyde Wed, 08/12/2009 - 12:21

If I remember correctly the syslog server will timestamp the entries with it's own time setting, but the entries will also include the timestamp of the sending switch IF you have set up "service timestamp logging ..." in the switch.

So you *should* see both your CST time and your CET time in the log entries.

HTH

Correct Answer
Lucien Avramov Wed, 08/12/2009 - 13:22

To be more precise, yes you can add the time from the router if you want and you do have several options. Be aware this is not the default behavior.


NMS-CAT6K-B(config)#service timestamps log ?

datetime Timestamp with date and time

uptime Timestamp with system uptime


You can insert datetime or uptime and then for the datetime you can send the local time on the router or the UTC time and add if you want the timezone to it that is on the router.


More details:


http://www.cisco.com/en/US/docs/ios/12_3/configfun/command/reference/cfr_1g07.html#wp1029551


This should address your question

jorge.calvo Wed, 08/12/2009 - 14:22

Thanks, my doubt is solved now. I will configure the timezone offset on the switches.


Regards.

Actions

This Discussion