Solved

Problems with Cisco Clock and Timestamps

Posted on 2007-04-03
6
2,610 Views
Last Modified: 2008-09-17
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
Comment
Question by:ctrost
  • 3
  • 3
6 Comments
 
LVL 50

Expert Comment

by:Don Johnston
Comment Utility
From global config;

service timestamp logging datetime
service timestamp debug datetime

0
 
LVL 3

Author Comment

by:ctrost
Comment Utility
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
 
LVL 50

Expert Comment

by:Don Johnston
Comment Utility
As the difference is 4 hours, it appears to be GMT offset issue.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 3

Author Comment

by:ctrost
Comment Utility
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
 
LVL 50

Accepted Solution

by:
Don Johnston earned 250 total points
Comment Utility
service timestamps logging datetime localtime

0
 
LVL 3

Author Comment

by:ctrost
Comment Utility
you da man don.  Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hi there, This article summarizes what you need if you are going to set up your home or small business Network Attached Storage (NAS) to be accessible from the internet. Of course there are configuration differences based on your NAS or router ma…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now