10-26-2007 06:48 AM - edited 03-03-2019 05:27 AM
As we are changing the clock in the UK, how can I check if the UK Switches will automatically change time?
We have the switches pointing to NTP Servers
10-26-2007 06:58 AM
Ade
It certainly is best practice to have your switches pointing to NTP servers. This assures that they will learn accurate time.
But using NTP does not have anything to do with changing the clock. NTP communicates time as UTC (used to be called GMT) into all time zones without any allowance for local time zone or offset to daylight savings. It is up to the local device to offset from UTC to derive the local time.
The IOS has a configuration option to make the offset for local time zone (the clock timezone command) and a configuration option for daylight savings (the clock summer-time command). If you want to check whether your switches will automatically change time then do show clock detail. (adding the detail parameter will cause the switch to show when it will change time for summer/daylight savings).
HTH
Rick
10-26-2007 07:09 AM
Do this config and it will all be automatic:
clock timezone GMT 0
clock summer-time BST recurring last Sun Mar 2:00 last Sun Oct 3:00
Kevin Dorrell
Luxembourg
10-26-2007 07:50 AM
Thanks
SO if I do a
sh clock
16:49:20.602 BST Fri Oct 26 2007
This shows that the BST time ise set?
Thanks
10-26-2007 08:11 AM
Ade
The show clock command as you have it here will simply show what time the switch believes that it is (with whatever offsets have been configured) and does not tell you whether (or when) it will change the clock for daylight savings. To see the additional information try using the "show clock detail" command.
HTH
Rick
10-26-2007 09:20 AM
Be careful, you would get the same result with
clock timezone BST 1
... until the early hours of Sunday morning ...
Kevin Dorrell
Luxembourg
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide