A quick tip on cisco logging. If you’re running Cisco IOS and are wondering why the ‘show log’ is showing the number of days and weeks since the last reload rather than showing dates and times then there’s a small configuration change you need to make:
router(config)# service timestamps log datetime show-timezone
This sets IOS to display the timestamps in the log based on the datetime known to IOS. You will obviously also need to ensure that IOS knows the date, time and timezone as per the below example:
router(config)# clock timezone GMT 0 router(config)# clock summer-time BST recurring last Sun Mar 2:00 last Sun Oct 2:00 router(config)# ntp server 64.236.96.53
You will then see output like the below when running ‘show log’:
.Sep 20 14:01:15 UTC: %SYS-5-CONFIG_I: Configured from console by user on vty1
Jay Greig