How To Change Cisco IOS Time
Hi. Today we will look for changing system time and prompt. You may think that what is the relation between system time and prompt, you are right there is no relation 🙂 . System time is important for network devices because logs get meaning with them and acl, vpn time limitations works truly with them.
In order to change the system time we need enable mod not configure but I know it is surprising. As you can see time is read from hardware clock. If your hardware clock is true you can use it.
123 S1#clock read-calendarS1#Sep 2 03:25:57.798: %SYS-6-CLOCKUPDATE: System clock has been updated from 07:25:57 EEST Tue Sep 2 2014 to 07:25:57 EEST Tue Sep 2 2014, configured from console by console.
But if we need to set clock manually we have to give full time manually like below.
123 S1#clock set 06:28:00 2 SEPTEMBER 2015S1#Sep 2 02:28:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 07:28:17 EEST Tue Sep 2 2014 to 06:28:00 EEST Wed Sep 2 2015, configured from console by console.
So we setup our time but to make it work correctly trough the year we need to configure our time zone. Some times according to our time zone we need summer time. Use this web site for time zone info.
123 S1(config)#clock timezone EET 3 0S1(config)#clock summer-time EEST recurring first SUNDAY MARCH 02:00 last SUNDAY OCTOBER 02:00
To change non configuration modes prompt. You can also set default which is #
1234567 S1(config)#prompt <>S1(config)#exit<><>sh runBuilding configuration...S1(config)#default prompt