cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2029
Views
0
Helpful
3
Replies

Nexus 7000: how to replace running-config

R.Artin
Level 1
Level 1

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

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

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

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.

stefano1981
Level 1
Level 1

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

Review Cisco Networking for a $25 gift card