01-25-2010 12:36 PM - edited 03-06-2019 09:26 AM
i have a few devices, switches and routers, that when i do a "sh logg" the time stamp is different than the time the router has.
does anyone have a suggestion on how to fix this?
i pasted a quick example of what i'm talking about.
Jan 25 20:20:48.075: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
Jan 25 20:22:49.659: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
Jan 25 20:29:29.661: %SYS-5-CONFIG_I: Configured from console by grivers on vty1
KWCHSW27#sh cloc
14:34:10.545 Central Mon Jan 25 2010
KWCHSW27#
Thanks, Gary
Solved! Go to Solution.
01-25-2010 12:42 PM
Hello Gary,
adding the local-time option at the end of
service timestamps log|debug datetime
can be of help
Hope to help
Giuseppe
01-25-2010 12:42 PM
Hello Gary,
adding the local-time option at the end of
service timestamps log|debug datetime
can be of help
Hope to help
Giuseppe
01-25-2010 12:48 PM
Thanks for the advice...
i tried both cmds but neither one corrected the time stamp.
i pasted an example of the output,
Jan 25 20:45:17: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
6d22h: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
Jan 25 20:46:13: %SYS-5-CONFIG_I: Configured from console by grivers on vty0
KWCHSW27# sh clock
14:46:26.929 Central Mon Jan 25 2010
KWCHSW27#
it looks like the log is showing UTC.
01-25-2010 12:53 PM
i re-read your reply and added "localtime" to the "service timestamps log datetime" cmd and it worked.
Thanks for your help. Gary
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: