Log appears in UTC time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 07:59 AM - edited 03-04-2019 03:49 AM
Hi Cisco NetPros,
i have a short question:
We are using several Cisco1841 routers.
The show clock command gives the output which i expect (Time = NTP time).
But the show log command give the output with a time stamp from UTC (i have to add 1 hour to get our real time here in germany).
Most of our other cisco equipement shows the correct time in the logs (UTC+1). Only the 1841s show UTC (not +1) in the log. Can i configure the 1841s, so they will give back the NTP time in the logs?
What would be the command to do this?
Thanks in advance for your answers!
Alexander
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 08:00 AM
Hi
Try this
service timestamps log datetime localtime show-timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 08:19 AM
thank you very much adam.
it works!!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 02:30 PM
many thanks.. works great on my ISR4431
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 11:03 AM
3750x works.Tx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 06:46 AM
Thank you! Works on C4500 with IOS 03.11.04.E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 08:09 AM
hi adam,
thanks for your quick answer.
if i do as you have supposed, i turn back my system time to gmt. then the logging time and the ntp time are equal.
unfortunately thats not the affect wanted.
in germany we have gmt+1. i may not turn back the system time on the routers in setting it to gmt+0.
can't i set the logging time equal to the time NTP gives to the router. can i turn off UTC/GMT+0 for logging and use gmt+1 instead....
thanks in advance,
alexander
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2009 08:15 AM
This command should do it, I corrected my post but you must have read it already
service timestamps log datetime localtime show-timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2014 12:30 AM
Works a treat for me on my 2851!
Cheers
Mick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2020 06:57 AM
Dec 14 16:52:41 CAT: %PARSER-5-CFGLOG_LOGGEDCMD: User:administrator logged command:service timestamps log datetime localtime show-timezone
Dec 14 16:52:43 CAT: %SYS-5-CONFIG_I: Configured from console by administrator on vty0 (172.16.4.145)
ASW-001#
ASW-001#sh clock
16:55:49.847 CAT Mon Dec 14 2020
ASW-001#
Changes the timezone but not the clock for me, am I missing something?
