cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13167
Views
50
Helpful
24
Replies

Catalyst 3850 12S full reset

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

1 Accepted Solution

Accepted Solutions

How was the BIN file transferred into this switch?  Was it using a USB thumb drive?  IF it is, read on: 

  1. In enable mode, use the command "factory-reset all". 
  2. Enter the "y" key twice when prompted.  
  3. The switch will boot into ROMMON. 
  4. Use the command "emergency-install flash:cat3k_caa-universalk9.16.12.05b.SPA.bin". 

View solution in original post

24 Replies 24

Leo Laohoo
Hall of Fame
Hall of Fame

@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.  

balaji.bandi
Hall of Fame
Hall of Fame
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.

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

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

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.

BB

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

How to Ask The Cisco Community for Help

Got it via USB now, thanks!

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

Have a look at the attached file. 

Post the complete output to the command "dir".  

If the switch has boot into ROMMON, post the complete output to the commands "dir flash:" and "set". 

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

 

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

 

How was the BIN file transferred into this switch?  Was it using a USB thumb drive?  IF it is, read on: 

  1. In enable mode, use the command "factory-reset all". 
  2. Enter the "y" key twice when prompted.  
  3. The switch will boot into ROMMON. 
  4. Use the command "emergency-install flash:cat3k_caa-universalk9.16.12.05b.SPA.bin". 

Bingo!

 

Thanks very much!

James

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

Martin L
VIP
VIP

 

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 **

 

 

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

Review Cisco Networking for a $25 gift card