Working with Configuration Files
Examples of Working with Configuration Files
This section includes examples of working with configuration files.
Copying Configuration Files
This example shows how to copy a running configuration to the bootflash: file system:
Backing Up Configuration Files
This example shows how to back up the startup configuration to the bootflash: file system (ASCII file):
switch# copy startup-config bootflash:my-config
This example shows how to back up the startup configuration to the TFTP server (ASCII file):
switch# copy startup-config tftp://172.16.10.100/my-config
This example shows how to back up the running configuration to the bootflash: file system (ASCII file):
switch# copy running-config bootflash:my-config
Rolling Back to a Previous Configuration
To roll back your configuration to a snapshot copy of a previously saved configuration, you need to perform
the following steps:
1 Clear the current running image with the write erase command.
2 Restart the device with the reload command.
Note
By default, the reload command reloads the device from a binary version of the startup configuration.
Beginning with Cisco NX-OS 6.2(2), you can use the reload ascii command to copy an ASCII version
of the configuration to the start up configuration when reloading the device.
3 Copy the previously saved configuration file to the running configuration with the copy configuration_file
running-configuration command.
4 Copy the running configuration to the start-up configuration with the copy running-config startup-config
command.
OL-29291-02
Examples of Working with Configuration Files
Cisco MDS 9000 Family NX-OS Fundamentals Configuration Guide
123