01-15-2017 10:59 PM - edited 03-08-2019 08:55 AM
I go to conf t, then make some change, then I type "do wr " and do verify /md5 nvram:startup-config, the MD5 value is ******ad3,
now I type end and then followed by wr, I get another MD5 value is ******s32, but my two configuration is the same, why we have two MD5 value
for the same config?
can someone show me the reason, if using "do wr" will we lost some configuration?
01-16-2017 12:00 AM
Hello,
this is an excerpt from the document linked below:
You cannot use the do command to execute the configure terminal command because entering the configure terminal command changes the user EXEC mode or privileged EXEC mode to the global configuration mode.
You cannot use the do command to execute copy or write commands in the global configuration or any other configuration mode or submode.
http://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_d1.html#wp1015951
That said, do copy running-config startup-config should work and render the same result.
01-16-2017 01:18 AM
Cisco IOS Configuration Fundamentals Command Reference is a good link to follow
http://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_d1.html#wp1015951
01-16-2017 02:19 AM
Look at the first lines of your startup-config. There you find some lines like the following:
! Last configuration change at 23:34:14 AEDT Mon Nov 28 2016 by ki
! NVRAM config last updated at 21:15:43 AEDT Mon Jan 16 2017 by ki
The timestamps change with every "write" and therefore will give you a different hash-value.
01-16-2017 04:43 AM
No, if no configuration change, MD5 value remain the same.
01-16-2017 04:53 AM
Then, what's exactly your problem?
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