×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

date/time stamp for startup-config?

Answered Question
Jul 18th, 2006
User Badges:

Hi,

When I do "dir nvram:" the date/time field says " <no date> ".

(on a 3745, v12.3, and a 3620, v12.1)

"sh conf" does not include saved date & time, either.

Is there a way to discover when startup-config was last saved?

TIA...

Correct Answer by Richard Burts about 11 years 1 month ago

Paresh - my understanding of the original post is that when she does show startup-config that no date is there. There is an explanation for this.


Narayan - the service timestamps is a good command and I agree that specifying datetime is better than the default of displaying uptime. But this command does not have anything to do with the date in the config file.


What does control the presence (or absence in this case) is whether the router has authoritative time at the time the config was changed or saved. The router can have authoritative time by use of the clock set command or by use of NTP. I believe that NTP is a much better solution.


So if the router really knows correct time it will put the time stamp into the config. And if the router does not know correct time it will supress the time stamp. From the fact that the startup config does not have a time stamp we can believe that the router did not know authoritative time when the config was saved. And I do not know any good way to go back and discover it.


HTH


Rick

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
pkhatri Tue, 07/18/2006 - 21:24
User Badges:
  • Purple, 4500 points or more

Enter in 'show startup-configuration' and it will give you output like the following, which tells you when it was last saved:


router#show startup-config

Using 15198 out of 522232 bytes, uncompressed size = 34695 bytes

Uncompressed configuration from 15198 bytes to 34695 bytes

!

! Last configuration change at 02:40:51 UTC Wed Jul 19 2006

! NVRAM config last updated at 05:23:20 UTC Wed Jul 19 2006


Paresh


PS. Pls do rate posts.

royalblues Wed, 07/19/2006 - 00:43
User Badges:
  • Green, 3000 points or more


Include the following command in your configuration to put a timestamp to all the logs


service timestamps log datetime msec


Narayan

Correct Answer
Richard Burts Wed, 07/19/2006 - 05:55
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Paresh - my understanding of the original post is that when she does show startup-config that no date is there. There is an explanation for this.


Narayan - the service timestamps is a good command and I agree that specifying datetime is better than the default of displaying uptime. But this command does not have anything to do with the date in the config file.


What does control the presence (or absence in this case) is whether the router has authoritative time at the time the config was changed or saved. The router can have authoritative time by use of the clock set command or by use of NTP. I believe that NTP is a much better solution.


So if the router really knows correct time it will put the time stamp into the config. And if the router does not know correct time it will supress the time stamp. From the fact that the startup config does not have a time stamp we can believe that the router did not know authoritative time when the config was saved. And I do not know any good way to go back and discover it.


HTH


Rick

Actions

This Discussion