09-19-2018 09:54 AM - edited 03-08-2019 04:12 PM
Hello,
I would like to know if running the command "write memory" on an IOS device, write the active configuration to the flash even if no change has been done in the configuration. In other words, if every time one runs "write memory" there is a writing cycle on the flash memory.
Thanks and regards,
Víctor.
Solved! Go to Solution.
09-19-2018 10:10 AM
Victor
Yes the behavior is the same. Each time you execute either of those commands there is a write to flash. The difference in output reflects the differences in the command used. The copy command has optional parameters so that you can specify sources, destinations, and protocol to use. So when you execute copy running-config startup-config the output reflects the choice of destination and then it executes the copy while write memory does not need to identify any optional parameters and just executes the copy.
HTH
Rick
09-19-2018 09:57 AM
Victor
Yes every time you issue the write memory command there is a write to flash.
HTH
Rick
09-19-2018 10:01 AM
Thanks Richard,
if instead of running "write memory" I use "copy running-config startup-config". Is the behaviour the same?
I have just realize that the command outputs are different:
SWLAB#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
0 bytes copied in 1.887 secs (0 bytes/sec)
SWLAB#write memory
Building configuration...
[OK]
Thanks,
Víctor.
09-19-2018 10:10 AM
Victor
Yes the behavior is the same. Each time you execute either of those commands there is a write to flash. The difference in output reflects the differences in the command used. The copy command has optional parameters so that you can specify sources, destinations, and protocol to use. So when you execute copy running-config startup-config the output reflects the choice of destination and then it executes the copy while write memory does not need to identify any optional parameters and just executes the copy.
HTH
Rick
09-19-2018 10:11 AM
Many thanks!
09-19-2018 10:13 AM
Victor
You are welcome. I am glad that my explanations were helpful. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information.
HTH
Rick
09-19-2018 10:00 AM
yes it is. that is normal process.
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