Missing good old ‘wr’ command on N9K? let’s bring it back!

Doing a lot on Nexus 9000 series datacenter boxes (N9K) lately? Sure you’re missing the good old ‘wr’ command to save your last startup-config into running-config.

NXOS architecture guys decided that you should be really well concentrated when deciding to save your nice new configuration to survive device reboot and type: N9K_1(config)# copy running-config startup-config. Just typing ‘wr’ into the console would be too nice right? Let’s use the alias configuration and bring that command back to the box.

N9K_1(config)# copy running-config startup-config 
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
N9K_1(config)#

If you try ‘wr’:

N9K_1(config)# wr
^
% Incomplete command at '^' marker.
N9K_1(config)#

We will configure alias for ‘wr’ so that issuing ‘wr’ command will execute ‘copy running-config startup-config’

N9K_1(config)#cli alias name wr copy runn startup

And now we can save that config by:

N9K_1(config)# wr
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
N9K_1(config)#

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: