cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7709
Views
0
Helpful
7
Replies

Switch clock/time

mstyfernandez
Level 1
Level 1

Hi,

Can anybody please advise on the configuration for the clock on these 2960 S switches?

We have used:

clock timezone GMT 0

clock summert-time bst recurring

When you do 'Show Log' the clock is an hour behind.  When you do 'Show Clock' it shows the right time.

We tried:

clock timezone GMT 0

clock summer-time BST recurring last Sun Mar 1:00 last Sun Oct 1:00

and again when you do 'Show Log' it is an hour behind, although it acknowledges the config change:

Sep 7 09:15:06:  %SYS-6-CLOCKUPDATE: System clock has been updated from 10:15:06 bst wed Sep 7 2011 to 10:15:06 BST Wed Sep 7 2011, configured from console by.......

How do you get the log to reflect the real time?

TIA

Trish.

1 Accepted Solution

Accepted Solutions

Leo Laohoo
Hall of Fame
Hall of Fame
clock timezone GMT 0

Change the "0" value you have to the correct timezone.  For example, for Australia we use "clock timezone AEST 10" because we are +10 from GMT.

Another thing is the following lines:

service timestamps debug datetime localtime show-timezone

service timestamps log datetime localtime show-timezone

View solution in original post

7 Replies 7

James Hawkins
Level 8
Level 8

What have you got set in your service timestamps log command?

There is a show-timezone option that may help you - you may also need the localtime option as I think by default it will use UTC

James,

we have:

service timestamps debug uptime

service timestamps log datetime

Leo Laohoo
Hall of Fame
Hall of Fame
clock timezone GMT 0

Change the "0" value you have to the correct timezone.  For example, for Australia we use "clock timezone AEST 10" because we are +10 from GMT.

Another thing is the following lines:

service timestamps debug datetime localtime show-timezone

service timestamps log datetime localtime show-timezone

leolaohoo,

I should have stated, we are in the UK :-)

Thanks for the ratings. 

You're welcome!  Thank you for your help

I'm happy to be of some form of assistance.