Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
3-22
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 3 Configuring the Switch
Using Switch File Systems
Saving a Configuration
Use the copy running-config startup-config command to save the new configuration into nonvolatile
storage. Once this command is entered, the running and the startup copies of the configuration are
identical.
Clearing a Configuration
Use the write erase command to clear a startup configuration. Once this command is executed, the
switch’s startup configuration reverts to factory defaults. The running configuration is not affected.
Caution The write erase command erases the entire startup configuration with the exception of any
configuration that affects the loader functionality.
The write erase boot command only erases the configuration that affects the loader functionality. The
loader functionality configuration includes the boot variables and the mgmt0 IP configuration
information (IP address, netmask, and default gateway).
switch# write erase boot
This command will erase the boot variables and the IP configuration of interface mgmt 0.
Using Switch File Systems
This section includes the following topics:
Setting the Current Directory, page 3-22
Displaying the Current Directory, page 3-23
Listing the Files in a Directory, page 3-23
Creating a Directory, page 3-23
Deleting an Existing Directory, page 3-23
Moving Files, page 3-24
Copying Files, page 3-24
Deleting Files, page 3-24
Displaying File Contents, page 3-25
Saving Command Output to a File, page 3-25
Compressing and Uncompressing Files, page 3-25
Setting the Current Directory
The cd command changes the current directory level to a specified directory level. The CLI defaults to
the volatile: file system. This command expects a directory name input.
Any file saved in the volatile: file system is erased when the switch reboots.
The syntax for this command is cd directory name.