08-05-2009 03:09 AM - edited 03-06-2019 07:05 AM
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.
Solved! Go to Solution.
08-12-2009 01:22 PM
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
08-05-2009 03:09 AM
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.
08-11-2009 11:05 PM
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.
08-12-2009 12:21 PM
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
08-12-2009 01:22 PM
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
08-12-2009 02:22 PM
Thanks, my doubt is solved now. I will configure the timezone offset on the switches.
Regards.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide