01-04-2019 05:06 PM - edited 03-08-2019 04:57 PM
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!
01-04-2019 05:59 PM
The files are OK to delete, however, use the "software clean" command to remove them properly.
01-04-2019 06:25 PM
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.
01-04-2019 06:41 PM - edited 01-04-2019 06:43 PM
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
12-20-2022 08:27 AM
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
01-04-2019 10:23 PM
Part of upgrade it will clean up proceedure. follow the below guide.
03-12-2019 08:20 AM
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."
03-12-2019 08:32 AM
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 ?
03-12-2019 08:32 AM
01-30-2023 07:04 AM
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.
01-30-2023 10:58 AM
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
10-30-2024 12:23 AM
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
10-30-2024 12:32 AM
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.
10-30-2024 01:38 AM
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
10-30-2024 02:22 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide