cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5978
Views
21
Helpful
6
Replies

How can I delet file from a 4948 switch

Guohua Zhang
Level 1
Level 1

I cannot upload a new image to one of our 4948 switch because there is no space. See the output that I checked with different commands:

lhcb1r91-4948tg-124#dir

Directory of bootflash:/

    3  -rwx    15728568  Mar 23 2009 15:08:54 -04:00  cat4500-ipbasek9-mz.122-50.SG1.bin

    4  -rw-        1553   Dec 8 2009 22:20:00 -05:00  post-2009.12.09.03.20.00-failed.txt

    5  -rw-        1553   Dec 8 2009 23:28:00 -05:00  post-2009.12.09.04.28.00-passed.txt

61341696 bytes total (15311656 bytes free)

lhcb1r91-4948tg-124#dir /all

Directory of bootflash:/

    1  -rwx    14569696  Dec 24 2008 01:20:26 -05:00  [cat4500-ipbase-mz.122-46.SG.bin]

    2  -rwx    15728024  Mar 23 2009 05:26:09 -04:00  [cat4500-ipbasek9-mz.122-50.SG.bin]

    3  -rwx    15728568  Mar 23 2009 15:08:54 -04:00  cat4500-ipbasek9-mz.122-50.SG1.bin

    4  -rw-        1553   Dec 8 2009 22:20:00 -05:00  post-2009.12.09.03.20.00-failed.txt

    5  -rw-        1553   Dec 8 2009 23:28:00 -05:00  post-2009.12.09.04.28.00-passed.txt

61341696 bytes total (15311656 bytes free)

How can I delete those two files with [ ]? Thanks.

6 Replies 6

Kelvin Willacey
Level 4
Level 4

You can use the delete flash:cat4500-ipbase-mz.122-46.SG.bin command, be sure to upload the new image and set the boot variable before reloading the switch.

amikat
Level 7
Level 7

Hi,

You can get rid of these files by issuing the command "squeeze bootflash:". Please note that there is no way to recover these deleted files after you issue this command.

Best regards,

Antonin

Great. That's the command I am looking for. See the space released after the process.

lhcb1r91-4948tg-124#squeeze bootflash:

All deleted files will be removed. Continue? [confirm]

Squeeze operation may take a while. Continue? [confirm]

Squeeze of bootflash complete

lhcb1r91-4948tg-124#dir

Directory of bootflash:/

    1  -rwx    15728568  Mar 23 2009 15:08:54 -04:00  cat4500-ipbasek9-mz.122-50.SG1.bin

    2  -rw-        1553   Dec 8 2009 22:20:00 -05:00  post-2009.12.09.03.20.00-failed.txt

    3  -rw-        1553   Dec 8 2009 23:28:00 -05:00  post-2009.12.09.04.28.00-passed.txt

61341696 bytes total (45609632 bytes free)

Hi Amikat,

I would like to say thank to you as your post helped me in solving my issue... thanks once again.

 

Regards

Surya

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

BTW, newer IOS disk formats no longer need to "squeeze".  Just doing a delete will recover the space.  Depending on the vintage of the device, and its IOS, you may need to reformat the flash to get the newer format.

thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: