Using the Flash File System
This example shows how to list the files on the default Flash device:
Console> (enable) dir
-#- -length- -----date/time------ name
1
2
3795052 bytes available (7608212 bytes used)
Console> (enable)
This example shows how to list the deleted files on the default Flash device:
Console> (enable) dir deleted
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D ffffffff 81a027ca
4.1.98.cfg
2 .D ffffffff ccce97a3
.config.cfg
3 .D ffffffff 81a027ca
1213952 bytes available (6388224 bytes used)
Console> (enable)
Displaying the Contents of a File on a Flash Device
In software release 5.2 and later, you can display the contents of a file on a Flash device onscreen. Use
the dump keyword to display a hex dump of the file.
To display the contents of a file on a Flash device, perform this task in privileged mode:
Task
Display the contents of a file on a Flash device.
This example shows how to display the contents of a file in bootflash:
Console> (enable) show file bootflash:dns_config.cfg
begin
!
#dns
set ip dns server 172.16.10.70 primary
set ip dns server 172.16.10.140
set ip dns enable
set ip dns domain corp.com
end
Console> (enable)
Copying Files
Use the copy command to perform these tasks:
•
•
•
•
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
30-4
3846376 Jun 14 2000 14:13:10 cat4000-k4.6-1-0-104-ORL.bin
3761580 Jun 14 2000 14:16:05 cat4000.6-1-0-104-ORL.bin
Download a system image or configuration file from a TFTP or rcp server to a Flash device
Upload a system image or configuration file from a Flash device to a TFTP or rcp server
Configure the switch using a configuration file on a Flash device or on a TFTP or rcp server
Copy the current configuration to a Flash device or to a TFTP or rcp server
41bdc
22
7004 Apr 01 1998 15:27:45 4003.config.
43644
23
6630 Apr 01 1998 15:36:47 4003.default
45220
15
7004 Apr 19 1998 10:05:59 4003_config.cfg
Command
show file [device:]filename [dump]
Chapter 30
Using the Flash File System
78-12647-02