Switch time and date

Answered Question
May 19th, 2010
User Badges:

Hi all,


Can any one tell me how to set the time and date on 3560 switches.


Best Regards,


Ayman Yehia

Correct Answer by Ganesh Hariharan about 6 years 10 months ago


Hi all,


Can any one tell me how to set the time and date on 3560 switches.


Best Regards,


Ayman Yehia


Hi Ayman,




The heart of the time service is the system clock. This clock runs from the moment the system starts up and keeps track of the date and time.The time remains accurate until the next system restart. As per the  recommendation says  use manual configuration only as a last resort. If you have an outside source to which the switch can synchronize (NTP), you do not need to manually set the system clock.


Following is the command to set clock manually on switches :-


Switch# clock set 13:32:00 23 July 2001


Hope to Help !!


Ganesh.H


Remember to rate the helpful post

Correct Answer by Jon Marshall about 6 years 10 months ago

207558867 wrote:


Hi all,


Can any one tell me how to set the time and date on 3560 switches.


Best Regards,


Ayman Yehia


Ayman


See this config guide for details -


http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_44_se/configuration/guide/swadmin.html#wp1020905


Note though if you do it manually as above then when the system is restarted you need to reset the time again. This is because the 3560 does not have a hardware clock. Therefore NTP is a much better way to keep the time synchronised on your network devices that don't have hardware clocks -


3560 NTP config


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Jon Marshall Wed, 05/19/2010 - 02:47
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

207558867 wrote:


Hi all,


Can any one tell me how to set the time and date on 3560 switches.


Best Regards,


Ayman Yehia


Ayman


See this config guide for details -


http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_44_se/configuration/guide/swadmin.html#wp1020905


Note though if you do it manually as above then when the system is restarted you need to reset the time again. This is because the 3560 does not have a hardware clock. Therefore NTP is a much better way to keep the time synchronised on your network devices that don't have hardware clocks -


3560 NTP config


Jon

Correct Answer
Ganesh Hariharan Wed, 05/19/2010 - 09:05
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016


Hi all,


Can any one tell me how to set the time and date on 3560 switches.


Best Regards,


Ayman Yehia


Hi Ayman,




The heart of the time service is the system clock. This clock runs from the moment the system starts up and keeps track of the date and time.The time remains accurate until the next system restart. As per the  recommendation says  use manual configuration only as a last resort. If you have an outside source to which the switch can synchronize (NTP), you do not need to manually set the system clock.


Following is the command to set clock manually on switches :-


Switch# clock set 13:32:00 23 July 2001


Hope to Help !!


Ganesh.H


Remember to rate the helpful post

ayman emara Wed, 05/19/2010 - 13:41
User Badges:

Thanks for your update

but can i now make the one of my core switches 6513 work as NTP server .??

and if it is possible does it affect the performance of the core or not ??





Thanks


Ayman Yehia

Leo Laohoo Wed, 05/19/2010 - 16:12
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

If your core switch is synchronized then yes it's a good idea.  You don't need to configure the core switch just configure the switch with the command "ntp server [prefer]".

Ganesh Hariharan Wed, 05/19/2010 - 22:40
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Member's Choice, February 2016

Thanks for your update

but can i now make the one of my core switches 6513 work as NTP server .??

and if it is possible does it affect the performance of the core or not ??





Thanks


Ayman Yehia


Hi Ayman,


Following is the command to make the switch as ntp server for clients in your network and it wont affect any performance issue with 6500 series if it is configured as NTP server for clients.


HG1#clock set 00:00:00 1 Jan 2000
HG1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
HG1(config)#ntp master 3


and at the clients end configure as


ntp server 10.x.x.x prefer (NTP servers if there are more)  ip address of the core switch which is reachble from network and ntp port needs to be opened that is 123.


Hope to Help !!


Ganesh.H


Remember to rate the helpful post

Actions

This Discussion