Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2670
  • Last Modified:

Problems with Cisco Clock and Timestamps

I've become extremely annoyed with the cisco clock and timestamps on my devices.

My clock shows one time when I do a "show clock":

.11:13:58.809 EDT Tue Apr 3 2007

Then to verify my log timestamps are correct, I do a "clear counters" and issue a "show log".  My log shows another time on the timestamp:

.Apr  3 15:14:29: %CLEAR-5-COUNTERS: Clear counter on all interfaces by routeradmin on vty0 (172.X.X.X)

-----

Here's the output from a "show clock detail"
.11:17:34.631 EDT Tue Apr 3 2007
Time source is NTP
Summer time starts 02:00:00 EST Sun Mar 11 2007
Summer time ends 02:00:00 EDT Sun Nov 4 2007

---------

Here's the only config I have on the router, aside from my NTP servers
clock timezone EST -5
clock summer-time EDT recurring 2 Sun Mar 2:00 1 Sun Nov 2:00

---------

Please note, the correct time is the one showing up under "shock clock" and the incorrect time is displaying under my logging and debugging timestamps.

Thanks
0
ctrost
Asked:
ctrost
  • 3
  • 3
1 Solution
 
Don JohnstonInstructorCommented:
From global config;

service timestamp logging datetime
service timestamp debug datetime

0
 
ctrostAuthor Commented:
That's already in place...that's how I'm able to see the date and time on the logging timestamp I posted.  Sorry, should have mentioned that.
0
 
Don JohnstonInstructorCommented:
As the difference is 4 hours, it appears to be GMT offset issue.
0
Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

 
ctrostAuthor Commented:
Ok.....so how do I fix it?  My timezone was set properly with the "clock timezone EST -5" command....which is my proper timezone.  I'm in Indiana and we're on EST (US & Canada).  Obviously we're in EDT currently but I reflected that change with the cisco-provided summertime command...

Shock clock is showing up fine but show log and showing the wrong timestamps, makes no sense
0
 
Don JohnstonInstructorCommented:
service timestamps logging datetime localtime

0
 
ctrostAuthor Commented:
you da man don.  Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now