Configuring the Switch
from the startup configuration, enter the show startup-config command to view the ASCII version of the
current startup configuration that was used to boot the switch if a copy running-config startup-config
command was not entered after the reboot. Use the show startup-config command to view the contents of
the current startup configuration.
You can also gather specific information on the entire switch configuration by entering the relevant show
commands. Configurations are displayed based on a specified feature, interface, module, or VSAN. Available
show commands for each feature are briefly described in this section and listed at the end of each chapter.
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
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.
This command exchanges the current directory to the root directory on the bootflash: file system:
switch# cd bootflash:
This example changes the current directory to a mystorage directory that resides in the current directory:
switch# cd mystorage
Displaying the Current Directory
The pwd command displays the current directory location. This example changes the directory and displays
the current directory:
switch# cd bootflash:
switch# pwd
bootflash:
OL-16597-01
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Saving a Configuration
49