2-1334
Catalyst 6500 Series Switch Command Reference—Release8.4
OL-6244-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
undelete
undelete
To recover a deleted file on a Flash memory device, use the undelete command. The deleted file can be
recovered using its index (because there could be multiple deleted files with the same name).
undelete index [[m/]device:]
Syntax Description
Defaults This command has no default settings.
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines A colon (:) is required after the specified device. See the dir—switch command to learn the index
number of the file to be undeleted. A file cannot be undeleted if a valid file with the same name exists.
You must delete the existing file before you can undelete the target file. A file can be deleted and
undeleted up to 15 times. To delete all deleted files permanently on a device, use the squeeze command.
Examples This example shows how to recover the deleted file with index 1 and use the show flash command to
confirm:
Console> (enable) undelete 1 bootflash:
Console> (enable)
Console> (enable) show flash
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .. ffffffff fec05d7a 4b3a4c 25 4667849 Mar 03 2000 08:52:09 cat6000-sup.
5-3-4-CSX.bin
2 .. ffffffff 4e5efc31 c0fadc 30 7716879 May 19 2000 06:50:55 cat6000-sup-
d.6-1-0.bin
3605796 bytes available (12384988 bytes used)
Console> (enable)
Related Commands delete
show flash
squeeze
index Index number of the deleted file.
m/ (Optional) Module number of the supervisor engine containing the Flash device.
device:(Optional) Device where the Flash resides.