Cisco WS-C4003 Software Guide - Page 445
Restoring Deleted Files, Verifying a File Checksum
View all Cisco WS-C4003 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 445 highlights
Chapter 30 Using the Flash File System Using the Flash File System This example shows how to permanently remove all deleted files from a Flash device: Console> (enable) squeeze bootflash: All deleted files will be removed, proceed (y/n) [n]? y Squeeze operation may take a while, proceed (y/n) [n]? y Erasing squeeze log Console> (enable) Restoring Deleted Files You must specify the index number of a deleted file to identify the file to undelete. The index number for each file appears in the first column of the dir command output. A file cannot be undeleted if a valid file with the same name already exists. Instead, you must delete the existing file and then undelete the desired file. A file can be deleted and undeleted up to 15 times. To restore deleted files on a Flash device, perform this task in privileged mode: Step 1 Step 2 Step 3 Task Identify the index number of the deleted files on the Flash device. Undelete a file on a Flash device. Verify that the file is restored. Command dir [[m/]device:][filename] deleted undelete index [[m/]device:] dir [[m/]device:][filename] This example shows how to restore a deleted file: Console> (enable) dir deleted -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name 6 .D ffffffff 42da7f71 657a00 14 135 Jul 17 1999 11:30:05 dns_config.cfg 1213952 bytes available (3231989 bytes used) Console> (enable) undelete 6 Console> (enable) dir -#- -length- -----date/time------ name 5 3231989 Jun 24 1999 12:04:40 cat4000.4-4-0-28.bin 6 135 Jul 17 1999 11:30:05 dns_config.cfg 1213952 bytes available (3231989 bytes used) Console> (enable) Verifying a File Checksum To verify the checksum of a file on a Flash device, perform this task in privileged mode: Task Command Verify the checksum of a file on a Flash device. verify [[m/]device:] filename This example shows how to verify the checksum of a file: Console> (enable) verify cat4000.4-4-1.bin CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCC File bootflash:cat4000.4-4-1.bin verified OK Console> (enable) 78-12647-02 Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4 30-7