ā04-26-2012 01:12 PM - edited ā03-07-2019 06:21 AM
Hi,
I need to manage our lab remotly, and have setup already set up management. One in a while i need to clear the config (run & start) without loosing my management connection. N7000 no longer supports "copy <file> startup-config", instead suggest using the following sequence:
'write erase' + 'reload' + 'copy <file> running-config' + 'copy running-config startup-config'.
the problem with this sequnce is that i loose my connection. When i try to use 'copy <file> running-config' with out 'write erase' and 'reload', it will just appends the running-config and does not replace it.
My question is: is ther eany way to retore to factory without loosing my managemnet access? can i use the startup-config lock mechanisms for this?
Thanks
ā04-26-2012 04:00 PM
Hi,
I think you should look into the root cause of the problem and figure out why do you need to clear the config. If hardware, software, memory, etc.. are all working properly, you should not need to clear to config and reboot.
HTH
ā04-26-2012 04:21 PM
this is a lab environment and occasionally we need to set it up for various testing/troubleshooting scenarios.most of the times in order to make sure there is no other config in the switch that could affect the results of the test, it's better to reset the programming to factoury and try the new layout from scratch.
ā07-21-2015 03:44 AM
hi,
according to cisco doc that shouldnt happen:
Note The write erase command erases the entire startup configuration, except for the following:
ā¢Boot variable definitions
ā¢The IPv4 configuration on the mgmt0 interface, including the following:
āAddress
āSubnet mask
āRoute address in the management VRF
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/4_0/nx-os/fundamentals/configuration/guide2/fun_nx-os_book/fun_config_files.html
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