Using “wr” on NX-OS

Those who have found their way into some NX-OS environments realize that there are some differences between the Nexus commands and that of IOS based devices. One such difference is how you save the running configuration. NX-OS requires that the administrator type “copy running-config startup-config”. It has been no secret that Cisco has been steering us this direction for a while. All of the current training materials show this as the proper command to save the configuration.

Fortunately, there is a work around for those of us who can’t remember [or choose not] to type anything more than “wr”. This workaround simply involves creating a cli alias as follows.

NX1(config)#cli alias name wr copy running-config startup-config

The alias command has been around for quite some time. It can lend itself useful in those situations where a stubborn engineer like me refuses to change his ways.

No related content found.

About Paul Stewart, CCIE 26009 (Security)

Paul is a Network and Security Engineer, Trainer and Blogger who enjoys understanding how things really work. With over 15 years of experience in the technology industry, Paul has helped many organizations build, maintain and secure their networks and systems.
This entry was posted in How-To. Bookmark the permalink.

3 Responses to Using “wr” on NX-OS

  1. MarvinRhoads says:

    Paul, I’ve tried to avoid creating the alias command and am instead retraining myself to use the abbreviated form (“copy r s”). Just a few more characters than “wr” 🙂

    • will says:

      same here

      alias are fun toys but are not so helpful when you work with 1000s of pieces of equipment across different NMS domains

      • Paul Stewart says:

        You guys have more toys than I do. Definitely good advice and good points. I never understood why Cisco started going away from “wr” (at least as a consistent shortcut). I agree that “copy r s” is a good habit to get into.

Comments are closed.