04-06-2022 06:02 AM
Hi,
I have been given a second hand 3850 switch that was not reset.
I have managed to do a factory-reset config to clear the startup config and regain access to the switch, but would like to go one step further and fully wipe it to start over.
As it is a few versions behind IOS, I was thinking my best bet is to do a factory-reset all, which clears everything, then upload the latest IOS image to the unit.
Would this be a sensible approach?
Can anyone point me to any guide on how to upload the latest IOS after doing a factory-reset all?
Many thanks
James
Solved! Go to Solution.
04-07-2022 03:09 AM
How was the BIN file transferred into this switch? Was it using a USB thumb drive? IF it is, read on:
04-06-2022 06:18 AM
@JamesEdmondsAspall wrote:
As it is a few versions behind IOS, I was thinking my best bet is to do a factory-reset all, which clears everything, then upload the latest IOS image to the unit.
Would this be a sensible approach?
This is the only approach to IOS-XE.
04-06-2022 06:27 AM
Can anyone point me to any guide on how to upload the latest IOS after doing a factory-reset all?
after factory reset you get switch#
depends on version you looking upgrade bundle or install mode.
04-06-2022 06:31 AM
Thanks.
Looks like the current image, and recommendation from Cisco, is install mode.
I should be able to follow the process in that doc.
The only part I'm not sure about, is how to get the image onto the device?
As there is no config, it has not network connectivity, so I cannot use FTP/TFTP. Is there a way I can add it via a USB drive perhaps?
Thanks
James
04-06-2022 08:32 AM
As there is no config, it has not network connectivity, so I cannot use FTP/TFTP. Is there a way I can add it via a USB drive perhaps?
You can do basic setup and connect Laptop to one of the port and run TFTP upload
if the device support you can use USB stick, what ever best suites you.
04-06-2022 08:35 AM
Got it via USB now, thanks!
04-06-2022 09:08 AM
I have booted the image from a USB drive, but this is in BUNDLE mode.
I have tried to run the command on the Cisco doc you sent previously to now install the image to flash:
software install file flash:cat3k.......bin
But "software" isn't found as a valid command in any mode.
How do I get the image installed to flash from here?
Cheers
James
04-06-2022 03:40 PM
04-07-2022 02:22 AM
When trying to install using the command:
request platform software package install switch all file flash:filename.bin on-reboot new auto-copy verbose
I get a failure saying:
%INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 2 R0/0: provision: Failed to install package flash:cat3k_caa-universalk9.16.12.05b.SPA.bin, Error: switch local is not booted with provisioning file
There is no packages.conf on the flash
Output of dir:
ASP-AGSW-01#dir Directory of flash:/ 40402 drwx 4096 Apr 7 2022 08:46:40 +00:00 .installer 40404 -rw- 111 Apr 7 2022 08:46:41 +00:00 bootloader_evt_handle.log 40405 drwx 4096 Apr 6 2022 15:18:17 +00:00 core 40406 drwx 4096 Apr 6 2022 15:39:22 +00:00 .prst_sync 40408 drwx 4096 Apr 6 2022 15:12:37 +00:00 .rollback_timer 40411 drwx 4096 Apr 6 2022 15:12:40 +00:00 gs_script 40412 drwx 4096 Apr 6 2022 15:12:40 +00:00 tech_support 40438 drwx 4096 Apr 7 2022 08:46:50 +00:00 dc_profile_dir 40443 -rw- 132108 Apr 7 2022 08:47:07 +00:00 memleak.tcl 40444 -rw- 76 Apr 7 2022 08:46:52 +00:00 boothelper.log 40445 drwx 4096 Apr 6 2022 15:24:49 +00:00 .dbpersist 40446 -rw- 0 Apr 7 2022 08:47:49 +00:00 rdope_out.txt 40447 -rw- 545 Apr 7 2022 08:48:03 +00:00 rdope.log 40448 -rw- 2097152 Apr 7 2022 08:48:12 +00:00 nvram_config 40449 -rw- 2097152 Apr 7 2022 08:48:12 +00:00 nvram_config_bkup 40450 drwx 4096 Apr 6 2022 15:17:58 +00:00 onep 40453 -rw- 34 Apr 6 2022 15:23:01 +00:00 pnp-tech-time 40454 -rw- 119373 Apr 6 2022 15:23:03 +00:00 pnp-tech-discovery-summary 40459 -rw- 480018036 Apr 6 2022 15:25:43 +00:00 cat3k_caa-universalk9.16.12.05b.SPA.bin 40462 -rw- 76 Apr 6 2022 15:38:19 +00:00 boothelper.old 1562509312 bytes total (994258944 bytes free)
Many thanks
James
04-07-2022 02:42 AM
Don't think my original reply to this posted;
In the doc, I tried to run this:
request platform software package install switch all file flash:filename.bin on-reboot new auto-copy verbose
I then got this error:
%INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 2 R0/0: provision: Failed to install package flash:cat3k_caa-universalk9.16.12.05b.SPA.bin, Error: switch local is not booted with provisioning file
There is no packages.conf on the flash
Output of dir command after booting to the image manually:
ASP-AGSW-01#dir Directory of flash:/ 40402 drwx 4096 Apr 7 2022 08:46:40 +00:00 .installer 40404 -rw- 111 Apr 7 2022 08:46:41 +00:00 bootloader_evt_handle.log 40405 drwx 4096 Apr 6 2022 15:18:17 +00:00 core 40406 drwx 4096 Apr 6 2022 15:39:22 +00:00 .prst_sync 40408 drwx 4096 Apr 6 2022 15:12:37 +00:00 .rollback_timer 40411 drwx 4096 Apr 6 2022 15:12:40 +00:00 gs_script 40412 drwx 4096 Apr 6 2022 15:12:40 +00:00 tech_support 40438 drwx 4096 Apr 7 2022 08:46:50 +00:00 dc_profile_dir 40443 -rw- 132108 Apr 7 2022 08:47:07 +00:00 memleak.tcl 40444 -rw- 76 Apr 7 2022 08:46:52 +00:00 boothelper.log 40445 drwx 4096 Apr 6 2022 15:24:49 +00:00 .dbpersist 40446 -rw- 0 Apr 7 2022 08:47:49 +00:00 rdope_out.txt 40447 -rw- 545 Apr 7 2022 08:48:03 +00:00 rdope.log 40448 -rw- 2097152 Apr 7 2022 08:48:12 +00:00 nvram_config 40449 -rw- 2097152 Apr 7 2022 08:48:12 +00:00 nvram_config_bkup 40450 drwx 4096 Apr 6 2022 15:17:58 +00:00 onep 40453 -rw- 34 Apr 6 2022 15:23:01 +00:00 pnp-tech-time 40454 -rw- 119373 Apr 6 2022 15:23:03 +00:00 pnp-tech-discovery-summary 40459 -rw- 480018036 Apr 6 2022 15:25:43 +00:00 cat3k_caa-universalk9.16.12.05b.SPA.bin 40462 -rw- 76 Apr 6 2022 15:38:19 +00:00 boothelper.old 1562509312 bytes total (994258944 bytes free)
Many thanks
James
04-07-2022 03:09 AM
How was the BIN file transferred into this switch? Was it using a USB thumb drive? IF it is, read on:
04-07-2022 03:54 AM
Bingo!
Thanks very much!
James
04-06-2022 08:04 AM
I have run a factory-reset all, and the switch has rebooted. I don't get switch#, I get switch:
I have the latest image on a USB drive, but when trying to copy to flash, I get this:
flash:usbflash0:cat3k_caa-universalk9.16.12.05b.SPA.bin: read only file system
Is there a way I can make it writable, so I can copy the image over and run the image update?
Thanks
James
04-06-2022 07:58 AM
I would NOT delete existing image; especially do not delete emergency image or firmware. Use software upgrade feature.
just delete config file which is used for start up configuration. Alternatively tell switch to skip loading start-up config. Once you got that figured out, switch loads default settings; Then, set up for ftp or http file transfer Or just copy IOS from USB. then you can upgrade IOS with software upgrade command (or alike, forgot exactly). There is also clean-up feature which can be use to erase old files once new IOS is working fine.
Regards, ML
**Please Rate All Helpful Responses **
04-06-2022 08:05 AM
Sadly I have already proceeded with a factory-reset all.
I am just having an issue copying the image from USB to flash:
flash:usbflash0:cat3k_caa-universalk9.16.12.05b.SPA.bin: read only file system
Might you kindly have any thoughts on how to get around this?
Cheers
James
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