cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
37072
Views
7
Helpful
17
Replies

3850 clear flash: space

ctc.ciscotech
Level 1
Level 1

I have a new Catalyst 3850 24T. I want to upgrade it to the latest IOS XE. I have uploaded the bin file, but it says it doesn't have enough space to extract it. I am new to XE, and I'm unfamiliar with all the things in flash: Does anyone know what is safe to delete to clear up some space for me? cat3k_caa-universalk9.16.03.07.SPA.bin is the one I'm trying to boot from.

 

Switch#dir flash:
Directory of flash:/

8094 -rwx 2097152 Jan 5 2019 00:41:30 +00:00 nvram_config
8083 -rw- 537489817 Jan 5 2019 00:31:33 +00:00 cat3k_caa-universalk9.16.03.07.SPA.bin
8086 -rwx 30418104 Sep 25 2014 07:53:39 +00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EX3.pkg
8088 -rwx 64586444 Sep 25 2014 07:53:39 +00:00 cat3k_caa-wcm.SPA.10.0.120.0.pkg
8096 -rw- 1237 Mar 11 2017 18:55:03 +00:00 packages.conf
8092 -rw- 1248 Apr 3 2015 11:08:35 +00:00 packages.conf.00-
40406 -rw- 34846028 Apr 3 2015 11:08:31 +00:00 cat3k_caa-iosd-universalk9.SPA.150-1.EZ5.pkg
40408 -rw- 77456192 Apr 3 2015 11:08:31 +00:00 cat3k_caa-wcm.SPA.10.1.150.0.pkg
8090 -rw- 303772864 Mar 11 2017 18:49:07 +00:00 cat3k_caa-universalk9.SPA.03.06.06.E.152-2.E6.bin
8082 -rwx 1224 Sep 25 2014 07:53:49 +00:00 packages.conf.01-
8097 -rw- 83293932 Mar 11 2017 18:54:58 +00:00 cat3k_caa-base.SPA.03.06.06E.pkg
8098 -rw- 3982012 Mar 11 2017 18:54:58 +00:00 cat3k_caa-drivers.SPA.03.06.06E.pkg
8099 -rw- 33788908 Mar 11 2017 18:54:58 +00:00 cat3k_caa-infra.SPA.03.06.06E.pkg
8100 -rw- 43074880 Mar 11 2017 18:54:58 +00:00 cat3k_caa-iosd-universalk9.SPA.152-2.E6.pkg
8101 -rw- 28394380 Mar 11 2017 18:54:58 +00:00 cat3k_caa-platform.SPA.03.06.06E.pkg
8102 -rw- 111233856 Mar 11 2017 18:54:59 +00:00 cat3k_caa-wcm.SPA.10.2.160.0.pkg
8095 drwx 4096 Nov 9 2018 14:12:14 +00:00 dc_profile_dir

1562509312 bytes total (204087296 bytes free)

 

 

Thanks!

17 Replies 17

Leo Laohoo
Hall of Fame
Hall of Fame

The files are OK to delete, however, use the "software clean" command to remove them properly.

I'm not sure I understand. Are you saying just run "software clean" and it will delete everything that's not used? Will that delete the file I just uploaded? For some reason it took a really long time to upload it and I'd prefer not to erase it.

 

Do I delete files manually until I have enough space to boot to the new software, then run "software clean"?

 

If so, which files can I delete? It is currently running 3.6.6. And as I said, I'm trying to get it to boot to cat3k_caa-universalk9.16.03.07.SPA.bin.

 

Thanks for your help.

hi,

the 'software clean' is like a macro command that automatically erase unnecessary package files. it's safe to run this command rather than deleting files manually.

see helpful link:

http://wannabelab.blogspot.com/2018/02/upgrading-cisco-3850-denali-switch-via.html

 

Switch#software clean     
Preparing clean operation ...
[1]: Cleaning up unnecessary package files
[1]: No path specified, will use booted path flash:packages.conf
[1]: Cleaning flash:
[1]: Preparing packages list to delete ...
     In use files, will not delete:
       cat3k_caa-base.SPA.03.06.04.E.pkg
       cat3k_caa-infra.SPA.03.06.04.E.pkg
       cat3k_caa-iosd-universalk9.SPA.152-2.E4.pkg
       cat3k_caa-platform.SPA.03.06.04.E.pkg
       cat3k_caa-wcm.SPA.10.2.140.0.pkg
       packages.conf
     Committed files, will not delete:
       cat3k_caa-drivers.SPA.03.06.04.E.pkg
[1]: Files that will be deleted:
    cat3k_caa-guestshell.16.03.05b.SPA.pkg
    cat3k_caa-rpbase.16.03.05b.SPA.pkg
    cat3k_caa-rpcore.16.03.05b.SPA.pkg
    cat3k_caa-srdriver.16.03.05b.SPA.pkg
    cat3k_caa-universalk9.SPA.03.06.04.E.152-2.E4.conf
    cat3k_caa-wcm.16.03.05b.SPA.pkg
    cat3k_caa-webui.16.03.05b.SPA.pkg
    packages.conf.00-

[1]: Do you want to proceed with the deletion? [yes/no]: yes
[1]: Clean up completed

I attempted software clean on my stacked 3850s that just upgraded to 16.12.08 but the command us not recognized. You have to use command: request platform software package clean switch all

balaji.bandi
Hall of Fame
Hall of Fame

Part of upgrade it will clean up proceedure. follow the below guide.

 

https://www.cisco.com/c/en/us/support/docs/switches/catalyst-3850-series-switches/117552-technote-cat3850-00.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

CSCO12079629
Level 1
Level 1

I am also going from 3.xE to Cisco IOS XE Denali. I ran out of space also and tried deleting all the files I could with the 'software clean' but it wasn't enough as I still need another 400mB. Cisco TAC stated you can erase all .pkg for current version and it won't cause an outage as long as you upgrade with the newly freed up space before any power outage.

 

So steps is to erase any .pkg files from the current booted version, then upgrade to v16, then check to insure all the newest v16 .pkg files are present, then reboot so the bootvar changes to the new version.

 

copy and paste from TAC:

"Deleting the 03.06.06E .pkg files won't cause any problems till the time you reload the switch. Make sure the 16.03.07 installation is successful and you have the .pkg files for 16.03.07 in flash before reloading the switch."

As Long as Switches not rebooted when you deleted the image, you are fine.

 

If you worried, then other approach and safe for you is -  copy the new image to USB flash, Boot from USB Flash test all working, then clean up for space and install new image.

 

make sense ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

make sure its in install mode going from 3.x to 16.3
i had to convert my switches first , if its in bundle the bootloader may not update and brick itself , its in the release notes of 16.3

This is how i did it going from 3.x to Denali without any issues


A if switch is in bundle mode convert it to install mode – if already install you can move direct to section B
1 Check switch is in bundle mode in show version * 1 52 WS-C3650-48PS 03.06.07b.E cat3k_caa-universalk9 BUNDLE
2 Clean the flash with software command - software clean file flash:
3 Check flash is cleaned old images are removed
4 Re-added original .bin 3.6.7b from USB to local flash - copy usbflash0:cat3k_caa-universalk9.SPA.03.06.07b.E.152-2.E7b.bin flash:
5 Expand the software - software expand file flash:cat3k_caa-universalk9.SPA.03.06.07b.E.152-2.E7b.bin
6 Set the bootvar to packages and save -- boot system flash:packages.conf
7 Confirm Boot is – show boot - BOOT variable = flash:packages.conf;
8 Save and Reload

B Switch is now ready for Denali upgrade
1 Check switch is in Install mode in show version * 1 52 WS-C3650-48PS 03.06.07b.E cat3k_caa-universalk9 INSTALL
2 Copy Denali from USB to flash - copy usbflash0:cat3k_caa-universalk9.16.03.07.SPA.bin flash:
3 Use software install force command to push package - software install file flash:cat3k_caa-universalk9.16.03.07.SPA.bin new force
4 Accept reload after packages removed added through install - Do you want to proceed with reload? [yes/no]: yes
5 Confirm Denali is in place and in INSTALL mode with show ver - * 1 52 WS-C3650-48PS 16.3.7 CAT3K_CAA-UNIVERSALK9 INSTALL


If its a remote upgrade you will lose the cipher and RSA ssh wont work after upgrade , apply this first to the switch if its remote it will generate new SSH keys when rebooting with new image

event manager applet Xilinx_SSH_RSA_Generate
event timer cron cron-entry "@reboot"
action 0.0 info type routername
action 0.1 set status "none"
action 1.0 cli command "enable"
action 2.0 cli command "show ip ssh | include ^SSH"
action 2.1 regexp "([ED][^ ]+)" "$_cli_result" result status
action 3.0 if $status eq "Disabled"
action 3.1 cli command "configure terminal"
action 3.2 cli command "crypto key generate rsa modulus 2048 label $_info_routername"
action 3.3 cli command "end"
action 3.4 end

ejmUSMC
Level 1
Level 1

I like to use the "request platform software package clean" command.  Similar to the ASR's it will scan packages that aren't being used and let you know what it's going to delete before it removes it.

depends on the code running, check the release notes and command syntax based on the platform

the one above is based on IOX XE, if you running IOS-XR need to check the command

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

omurwahabakuk
Level 1
Level 1

Switch#$stall file usbflash0:cat3k_caa-universalk9ldpe.16.09.03.SPA.bin
Preparing install operation ...
[1]: Starting install operation
[1]: Expanding bundle usbflash0:cat3k_caa-universalk9ldpe.16.09.03.SPA.bin
[1]: Copying package files
[1]: Package files copied
[1]: Finished expanding bundle usbflash0:cat3k_caa-universalk9ldpe.16.09.03.SPA.bin
[1]: Verifying and copying expanded package files to flash:
[1]: Verified and copied expanded package files to flash:
[1]: Starting compatibility checks
[1]: % Candidate package compatibility checks failed because the following
package dependencies were not satisfied. Operation aborted.

 

[1]: % An internal error was encountered. Operation aborted.

what is right ios for cisco WS-C3850-12

Post the complete output to the command "dir".

I think this is not going to work because the package files are being expanded in the USB flash drive.  

Transfer or copy the firmware first into the flash and re-run the package extraction.

Switch#dir
Directory of flash:/

69842 -rw- 2097152 Oct 28 2024 12:18:14 +00:00 nvram_config
69843 -rw- 82665136 Apr 17 2016 01:13:19 +00:00 cat3k_caa-base.SPA.03.06.04.E.pkg
69844 -rw- 4913852 Apr 17 2016 01:13:19 +00:00 cat3k_caa-drivers.SPA.03.06.04.E.pkg
69845 -rw- 33784816 Apr 17 2016 01:13:19 +00:00 cat3k_caa-infra.SPA.03.06.04.E.pkg
69846 -rw- 43021636 Apr 17 2016 01:13:19 +00:00 cat3k_caa-iosd-universalk9.SPA.152-2.E4.pkg
69847 -rw- 27417488 Apr 17 2016 01:13:19 +00:00 cat3k_caa-platform.SPA.03.06.04.E.pkg
69848 -rw- 111180608 Apr 17 2016 01:13:19 +00:00 cat3k_caa-wcm.SPA.10.2.140.0.pkg
69849 -rw- 1244 Apr 17 2016 01:13:28 +00:00 packages.conf
69850 drwx 4096 Oct 28 2024 12:17:33 +00:00 dc_profile_dir
69852 -rw- 19596 Aug 5 2022 20:09:24 +00:00 vlan.dat
69853 -rw- 0 Oct 25 2024 13:26:10 +00:00 yes
69854 -rw- 0 Oct 25 2024 13:25:49 +00:00 system
69855 -rw- 0 Oct 25 2024 13:28:23 +00:00 switch
69857 -rw- 0 Oct 28 2024 11:39:53 +00:00 cat3k_caa-universalk9.16.12.12.SPA.bin
69861 -rw- 19860092 Oct 28 2024 13:01:34 +00:00 cat3k_caa-guestshell.16.09.03.SPA.pkg
69862 -rw- 29547396 Oct 28 2024 13:01:35 +00:00 cat3k_caa-rpbase.16.09.03.SPA.pkg
69863 -rw- 373060212 Oct 28 2024 13:01:51 +00:00 cat3k_caa-rpcore.16.09.03.SPA.pkg
69864 -rw- 3101308 Oct 28 2024 13:01:51 +00:00 cat3k_caa-srdriver.16.09.03.SPA.pkg
69865 -rw- 22774392 Oct 28 2024 13:01:55 +00:00 cat3k_caa-webui.16.09.03.SPA.pkg

Do you have enough space - can you delete this image if not needed to make space -cat3k_caa-universalk9.16.12.12.SPA.bin (if you intention to upgrade 16.09.03)

Also as suggested delete related 16.09.03.SPA.pkg and re-run the installation.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card