9-15
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
78-6511-08
Chapter 9 Troubleshooting
Copying Configuration Files to Troubleshoot Configuration Problems
Copying Configuration Files to Troubleshoot Configuration
Problems
You can use the file system in Flash memory to copy files and to troubleshoot configuration problems.
This could be useful if you wanted to save configuration files on an external server in case a switch fails.
You can then copy the configuration file to a replacement switch and avoid having to reconfigure the
switch.
Step 1
Enter the privileged EXEC dir flash: command to display the contents of Flash memory:
switch# dir flash:
Directory of flash:
2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA
4 drwx 3776 Mar 01 1993 01:23:24 html
66 -rwx 130 Jan 01 1970 00:01:19 env_vars
68 -rwx 1296 Mar 01 1993 06:55:51 config.text
1728000 bytes total (456704 bytes free)
The file system uses a URL-based file specification. This example uses the TFTP protocol to copy the
file config.text from the host arno to the switch Flash memory:
switch# copy tftp://arno//2900/config.text flash:config.text
You can enter these parameters as part of a filename:
•
TFTP
•
Flash
•
RCP
•
XMODEM
Step 2
Enter the copy running-config startup-config privileged EXEC command to save your configuration
changes to Flash memory so that they are not lost if there is a system reload or power outage. This
example shows how to use this command to save your changes:
switch# copy running-config startup-config
Building configuration...
It might take a minute or two to save the configuration to Flash memory. After it has been saved, this
message appears:
[OK]
switch#