cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4117
Views
0
Helpful
12
Replies

Update Cisco switch 3850

Hallo,

i have 2 Switch WS-C3850-12XS-S and wanna update them remotly in  install mode. But every time i do that, the booting breaks up during updates and i should go to the location to reboot the switch. After reboot the switch, i see the switch take the new version.

But i need to do that remotly, so anyone has this problem?!

 

The Output is like this :

Switch:

Switch :  flash_init
Switch : boot flash:packages.conf

 

after i do these commands, then the switch take the new version.

 

my plan to do the update :

1- upload the .bin file to the switch

2- switch# request platform software package install switch 1 file flash:cat3k_caa-universalk9.16.06.07.SPA.bin

3- boot system switch all flash:cat3k_caa-universalk9.16.06.07.SPA.bin

    hier should i point to .bin file or to .conf file?!

    cat3k_caa-universalk9.16.06.07.SPA.conf

    cat3k_caa-universalk9.16.06.07.SPA.bin

4- show boot

Current Boot Variables:
BOOT variable = flash:cat3k_caa-universalk9.16.06.07.SPA.conf;

Boot Variables on next reload:
BOOT variable = flash:cat3k_caa-universalk9.16.06.07.SPA.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
A1-SW-L-20-1#wr

5- sh running  | in boot

boot system switch all flash:cat3k_caa-universalk9.16.06.07.SPA.conf

 

 

please any recommendations

 

 

Thanks in advanced

 

 

 

 

 

1 Accepted Solution
12 Replies 12

i did, but i still have the same problem

Leo Laohoo
Hall of Fame
Hall of Fame

@JaloudAljaloud1575 wrote:

2 Switch WS-C3850-12XS-S


Make sure to have a look at CSCvq53573.

Leo Laohoo
Hall of Fame
Hall of Fame

@JaloudAljaloud1575 wrote:

2- switch# request platform software package install switch 1 file flash:cat3k_caa-universalk9.16.06.07.SPA.bin


What firmware is the switch currently running on? 

If the switch is running on 3.X.X, then the command to unpack the package file is:  

software install file flash:cat3k_caa-universalk9.16.06.07.SPA.bin new force verb on-reboot

IF the switch is running 16.X.X then the command should be 

request platform software package install switch all file flash:cat3k_caa-universalk9.16.06.07.SPA.bin on-reboot new auto-copy verb

NOTE

  • See the option (at the end of both commands) of "on-reboot"?  This is a bug (CSCve94966) and is actually "no-reboot".  When this option is used in the command the stack DO NOT REBOOT when the unpacking completes.  
  • Do not forget to read the Release Notes.  
  • After the stack has completed the update, do not forget to clean up the flash:  request platform software package switch all

- > i hav this version : 16.6.6

 

-> So the new Command should be like this : 

request platform software package install switch all file flash:cat3k_caa-universalk9.16.06.07.SPA.bin no-reboot new auto-copy verb

-> After this command which boot variable should i point  to it? 

because after last command i have 5 new pkg of 16.x.x file  and one new conf file of 16.x.x. 

no boot system flash all
 boot system switch flash:conf   -> conf is the new file.

 

What version are you planning to go to? 

Post the complete output to the following commands: 

dir
sh boot
more flash:packages.conf | b for NOVA

*** dir ***

irectory of flash:/

71583 -rw- 2097152 Jun 24 2020 13:14:34 +02:00 nvram_config
71571 -rw- 15954560 Aug 2 2017 14:06:49 +02:00 cat3k_caa-guestshell.16.03.03.SPA.pkg
71572 -rw- 22173639 Aug 2 2017 14:06:47 +02:00 cat3k_caa-rpbase.16.03.03.SPA.pkg
71573 -rw- 264899192 Aug 2 2017 14:06:49 +02:00 cat3k_caa-rpcore.16.03.03.SPA.pkg
71574 -rw- 9091712 Aug 2 2017 14:06:48 +02:00 cat3k_caa-srdriver.16.03.03.SPA.pkg
71575 -rw- 191324788 Aug 2 2017 14:06:48 +02:00 cat3k_caa-wcm.16.03.03.SPA.pkg
71576 -rw- 13404796 Aug 2 2017 14:06:48 +02:00 cat3k_caa-webui.16.03.03.SPA.pkg
71586 -rw- 4753 Aug 25 2017 17:16:12 +02:00 packages.conf
71578 -rw- 407 Jan 23 2020 23:55:59 +01:00 bootloader_evt_handle.log
103377 drwx 4096 Nov 15 2018 20:17:51 +01:00 core
111329 drwx 4096 Nov 15 2018 20:26:25 +01:00 .prst_sync
127233 drwx 4096 Aug 2 2017 14:09:58 +02:00 .rollback_timer
135185 drwx 4096 Jan 23 2020 23:56:10 +01:00 dc_profile_dir
135187 drwx 4096 Aug 2 2017 14:10:04 +02:00 gs_script
71579 -rw- 128103 Jan 23 2020 23:56:27 +01:00 memleak.tcl
143137 drwx 4096 Jan 23 2020 23:55:59 +01:00 .installer
71580 -rw- 35 Aug 22 2017 14:50:37 +02:00 pnp-tech-time
71581 -rw- 30584 Aug 22 2017 14:50:41 +02:00 pnp-tech-discovery-summary
71582 -rw- 10348 Jan 23 2020 23:58:16 +01:00 vlan.dat
71577 -rw- 2097152 Jun 24 2020 13:14:34 +02:00 nvram_config_bkup
103379 drwx 4096 Nov 15 2018 20:26:25 +01:00 onep
127237 -rw- 19167872 Aug 25 2017 17:15:28 +02:00 cat3k_caa-guestshell.16.06.01.SPA.pkg
127241 -rw- 27722412 Aug 25 2017 17:15:30 +02:00 cat3k_caa-rpbase.16.06.01.SPA.pkg
127238 -rw- 331174520 Aug 25 2017 17:15:30 +02:00 cat3k_caa-rpcore.16.06.01.SPA.pkg
127240 -rw- 14783104 Aug 25 2017 17:15:30 +02:00 cat3k_caa-srdriver.16.06.01.SPA.pkg
127236 -rw- 4753 Aug 25 2017 17:15:58 +02:00 cat3k_caa-universalk9.16.06.01.SPA.conf
127239 -rw- 16126588 Aug 25 2017 17:15:30 +02:00 cat3k_caa-webui.16.06.01.SPA.pkg
71585 -rw- 4737 Aug 25 2017 17:16:12 +02:00 packages.conf.00-
71570 -rw- 404622964 Apr 25 2019 20:50:36 +02:00 cat3k_caa-universalk9.16.06.05.SPA.bin
71584 -rw- 404851998 Jan 22 2020 10:29:22 +01:00 cat3k_caa-universalk9.16.06.06.SPA.bin
71587 -rw- 480018036 Jun 21 2021 14:50:52 +02:00 cat3k_caa-universalk9.16.12.05b.SPA.bin

 

*** show boot ***

A1-SW-S-22-1#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:/cat3k_caa-universalk9.16.06.06.SPA.bin;flash:/cat3k_caa-universalk9.16.06.05.SPA.bin;

Boot Variables on next reload:
BOOT variable = flash:/cat3k_caa-universalk9.16.06.06.SPA.bin;flash:/cat3k_caa-universalk9.16.06.05.SPA.bin;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0

 

more flash:packages.conf | b for NOVA   -> no output

FYI.... the Switche are now in  bundle mode and i wanna upgrade them to install mode and then go to Gibraltar-16.12.5b  Version

Beautiful (sarcasm).  
Contents of the directory contains five different firmware and I think the main problem is the inability to perform Install Mode because:

a.  No one bothered to either read the error message (that there is not enough flash to unpack the package files); &/or

b.  No one bothered to read the Release Notes which specifically states to clean up the flash BEFORE initiating the Install Mode command.

 

I hope someone actually takes the time to read the Release Notes.  

Here is the procedure: 

1.  Clean up the flash

 

request platform software package switch all

 

2.  Copy the firmware file into the switch. 

3.  Initiate the unpacking of the file:  

request platform software package install switch all file flash:IOS_filename.bin on-reboot new auto-copy verb

4.  Make sure the boot variable string is pointing to the "packages.conf" file: 

 

conf t
 no boot system flash all
 boot system flash bootflash:packages.conf
end
wr

 

5.  Make sure the "packages.conf" contains the new version: 

 

more flash-1:packages.conf
more flash-2:packages.conf

 

6.  Reboot the stack. 

7. Clean up the flash again.

request platform software package switch all

 

i did this already with this command fot Test Switche, and about last output i am planning to this ( Clean ) before i do the upgrade.

Switch# request platform software package clean switch all file flash:

 

i read in Cisco that i should enable auto boot before :

 

If your switches are configured with auto boot, then the stack will automatically boot up with the new image. If not, you can manually boot flash:packages.conf

switch: boot flash:packages.conf

maybe here is the problem?!

Leo Laohoo
Hall of Fame
Hall of Fame

@JaloudAljaloud1575 wrote:

3- boot system switch all flash:cat3k_caa-universalk9.16.06.07.SPA.bin


1.  Double check the "packages.conf" file has been amended with the correct version:  more flash-1:packages.conf | b for NOVA

2.  Point the boot variable string to the "packages.conf" file.  

conf t
 no boot system flash all
 boot system flash bootflash:packages.conf
end
wr

Cisco siad that i should enable auto boot :

 
Step 8

If your switches are configured with auto boot, then the stack will automatically boot up with the new image. If not, you can manually boot flash:packages.conf

switch: boot flash:packages.conf

maybe here is the problem?!


@JaloudAljaloud1575 wrote:
switch: boot flash:packages.conf

maybe here is the problem?!


No, you are in ROMMON. 

What happens if you do this:  boot flash:cat3k_caa-universalk9.16.06.06.SPA.bin