cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4893
Views
5
Helpful
4
Replies

problem about C3850 ios upgrade

tianwen.zhao
Level 1
Level 1

Hello everyone,

I try to upgrade the IOS from 16.03.06 to 16.03.07

I was successful upgrade to 16.03.07,but in bundle mode 

 

Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 16 WS-C3850-12XS 16.3.7 CAT3K_CAA-UNIVERSALK9 BUNDLE

 

So , I wanted to move to install mode 

 

!

request platform software package expand file flash:cat3k_caa-universalk9.16.03.07.SPA.bin

boot system switch all flash:packages.conf

!

C3850#dir
Directory of flash:/

96194 -rw- 2097152 Jan 31 2019 07:38:27 +00:00 nvram_config
104213 -rw- 15938176 Jan 31 2019 07:43:11 +00:00 cat3k_caa-guestshell.16.03.07.SPA.pkg
104218 -rw- 22304945 Jan 31 2019 07:43:31 +00:00 cat3k_caa-rpbase.16.03.07.SPA.pkg
104214 -rw- 264458872 Jan 31 2019 07:43:18 +00:00 cat3k_caa-rpcore.16.03.07.SPA.pkg
104216 -rw- 9669248 Jan 31 2019 07:43:19 +00:00 cat3k_caa-srdriver.16.03.07.SPA.pkg
96201 -rw- 4737 Aug 9 2018 22:24:09 +00:00 packages.conf
96202 -rw- 444 Jan 31 2019 07:36:19 +00:00 bootloader_evt_handle.log
96203 drwx 4096 Aug 9 2018 22:41:50 +00:00 core
136273 drwx 4096 Aug 9 2018 22:25:42 +00:00 .prst_sync
152305 drwx 4096 Aug 9 2018 22:25:43 +00:00 .rollback_timer
160321 drwx 4096 Jan 31 2019 07:36:29 +00:00 dc_profile_dir
160323 drwx 4096 Aug 9 2018 22:25:48 +00:00 gs_script
96204 -rw- 65568 Jan 31 2019 07:36:42 +00:00 memleak.tcl
96205 drwx 4096 Aug 9 2018 22:26:06 +00:00 .installer
96207 -rw- 2097152 Jan 31 2019 07:38:27 +00:00 nvram_config_bkup
96208 -rw- 34 Jan 7 2019 07:07:30 +00:00 pnp-tech-time
96209 -rw- 47625 Jan 7 2019 07:07:33 +00:00 pnp-tech-discovery-summary
96210 -rw- 556 Jan 31 2019 06:38:20 +00:00 vlan.dat
104212 -rw- 4737 Jan 31 2019 07:43:48 +00:00 cat3k_caa-universalk9.16.03.07.SPA.conf
104217 -rw- 211694196 Jan 31 2019 07:43:29 +00:00 cat3k_caa-wcm.16.03.07.SPA.pkg
104215 -rw- 13419132 Jan 31 2019 07:43:19 +00:00 cat3k_caa-webui.16.03.07.SPA.pkg

 

then I reloaded...

 

switch: boot flash:/packages.conf

Getting rest of image
Reading full image into memory...flash:/cat3k_caa-rpbase.16.03.06.SPA.pkg: no such file or directory
loading flash:/packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-rpbase.16.03.06.SPA.pkg' into the buffer
Failed to open file: no such file or directory

Getting rest of image
Reading full image into memory...flash:/cat3k_caa-rpbase.16.03.06.SPA.pkg: no such file or directory
loading flash:/packages.conf
Reading full image into memory....done
Copying 'cat3k_caa-rpbase.16.03.06.SPA.pkg' into the buffer
Failed to open file: no such file or directory

 

 

But the switch still boot 16.03.06 ....

 

how can I fix it............................

 

switch: ?
? -- Present list of available commands
arp -- Show arp table or arp-resolve an address
boot -- Load and boot an executable image
cat -- Concatenate (type) file(s)
copy -- Copy a file
delete -- Delete file(s)
dir -- List files in directories
emergency-install -- Initiate Disaster Recovery
flash_init -- Initialize filesystem(s)
format -- Format a filesystem
fsck -- Check filesystem consistency
help -- Present list of available commands
mgmt_init -- initialize management port
mkdir -- Create dir(s)
more -- Concatenate (display) file(s)
ping -- Send ICMP ECHO_REQUEST packets to a network host
readrtc -- Read RTC
rename -- Rename a file
reset -- Reset the system
rmdir -- Delete empty dir(s)
set -- Set or display environment variables
set_bs -- Set attributes on a boot sector filesystem
set_param -- Set system parameters in flash
type -- Concatenate (type) file(s)
unset -- Unset one or more environment variables
version -- Display boot loader version
writertc -- Write RTC

 

Thanks,

1 Accepted Solution

Accepted Solutions

vb10
Level 1
Level 1

Hello,

It looks like  16.03.07 was expanded not to flash:packages.conf,  but to flash:cat3k_caa-universalk9.16.03.07.SPA.conf

If switch still in rommon, you can try to boot from this file:

switch: boot flash:cat3k_caa-universalk9.16.03.07.SPA.conf

 

 

If switch is up and running IOS, you can check content by commands:

more flash:packages.com

more flash:cat3k_caa-universalk9.16.03.07.SPA.conf

 

If flash:cat3k_caa-universalk9.16.03.07.SPA.conf contains .pkg files from 16.03.07 image, you can change boot variable and try to reload:

 

conf t

no boot system switch all flash:packages.conf

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

end

wr

reload

 

View solution in original post

4 Replies 4

vb10
Level 1
Level 1

Hello,

It looks like  16.03.07 was expanded not to flash:packages.conf,  but to flash:cat3k_caa-universalk9.16.03.07.SPA.conf

If switch still in rommon, you can try to boot from this file:

switch: boot flash:cat3k_caa-universalk9.16.03.07.SPA.conf

 

 

If switch is up and running IOS, you can check content by commands:

more flash:packages.com

more flash:cat3k_caa-universalk9.16.03.07.SPA.conf

 

If flash:cat3k_caa-universalk9.16.03.07.SPA.conf contains .pkg files from 16.03.07 image, you can change boot variable and try to reload:

 

conf t

no boot system switch all flash:packages.conf

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

end

wr

reload

 

Thank you for your reply,
The switch is normal now ,thank you
So ,how can I change the content of flash:packages.conf ?
what different between boot flash:packages.conf and boot flash:cat3k_caa-universalk9.16.03.07.SPA.conf

Thanks,

Great, I'm glad that it works.

Actually, there is no difference between packages.conf and cat3k_caa-universalk9.16.03.07.SPA.conf, except the file name itself. From operational point of view they are equal. So, you can leave it as it is, just make sure, that boot variable is set to

flash:cat3k_caa-universalk9.16.03.07.SPA.conf

 

But if you want to have boot file as packages.conf, you can simply delete existing packages.conf and rename cat3k_caa-universalk9.16.03.07.SPA.conf to packages.conf.

 

delete flash:packages.conf

rename flash:cat3k_caa-universalk9.16.03.07.SPA.conf flash:packages.conf

 

After that you can have boot variable set to flash:packages.conf

Mark Malone
VIP Alumni
VIP Alumni
boot the switch back up out of rommon then use the software install command for install mode

The software install command expands the package files from the specified source bundle file and copies them to the local flash: storage device. When the source bundle is specified as a tftp: or ftp: URL, the bundle file is first downloaded into the switch's memory (RAM); the bundle file is not copied to local storage media.

After the package files are expanded and copied to flash: the running provisioning file (flash:packages.conf) is updated to reflect the newly installed packages, and the switch displays a reload prompt.
Note The software install command is not supported when the switch is running in bundle mode. Use the software expand privileged EXEC command to convert the switch from bundle mode to installed mode.

Upgrading Cisco IOS XE Software Install Mode Example

Upgrading Cisco IOS XE Software Install Mode Example

This example shows the software install file command being used to expand and copy the packages from a Cisco IOS XE bundle located on a TFTP server in order to upgrade to a new image:

SwitchControllerDevice#
software install file


https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/system_management/configuration_guide/b_sm_3se_3850_cg/b_sm_3se_3850_cg_chapter_010100.html#concept_995F29BBCF024184BEB15BB9731F45D0