User's Manual
B-8
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Appendix B Working with the Cisco IOS File System, Configuration Files, and Software Images
Working with the Flash File System
This example shows how to create a file. This command writes the contents of the new-configs directory 
on the local flash device to a file named saved. on the TFTP server at 172.20.10.30:
Switch# archive /create tftp:172.20.10.30/saved. flash:/new-configs
Note The following examples show Catalyst 3750-E switch outputs. The outputs would be similar for the 
Catalyst 3750-X and 3560-X.
This example shows how to display the contents of a switch file that is in flash memory. 
Switch# archive /table flash:.
info (219 bytes)
/ (directory)
/html/ (directory)
/html/foo.html (0 bytes)
/.bin (610856 bytes)
/info (219 bytes)
This example shows how to display only the /html directory and its contents:
Switch# archive /table flash: /html
/html
/html/ (directory)
/html/const.htm (556 bytes)
/html/xhome.htm (9373 bytes)
/html/menu.css (1654 bytes)
<output truncated>
This example shows how to extract the contents of a file located on the TFTP server at 172.20.10.30.
Switch# archive /xtract tftp:/172.20.10.30/saved. flash:/new-configs
Step 3
archive /xtract source-url 
flash:/file-url [dir/file...]
Extract a file into a directory on the flash file system.
For sour
ce-url, specify the source URL alias for the local file system. The 
-filename. is the file from which to extract files. These options are supported:
  • local flash file system syntax: 
flash:
  • FTP syntax: 
ftp:[[//use
rname[:password]@location]/directory]/-filename.
  • RCP syntax: 
rcp:[[//use
rname@location]/directory]/-filename.
  • TFTP syntax: 
tftp:[[//locat
ion]/directory]/-filename.
For fl
ash:/file-url [dir/file...], specify the location on the local flash file system 
from which the file is extracted. Use the dir/file... option to specify a list of files 
or directories within the file to be extracted. If none are specified, all files and 
directories are extracted.
Step 4
more [/ascii | /binary | /ebcdic] 
file-url 
Display the contents of any readable file, including a file on a remote file 
system.
Command Purpose










