08-17-2021 11:34 PM
Hi,
I tried to upgrade my cisco switch IOS version from 3.06.06 to 16.03.06 while doing so, i am facing issues in installing the IOS. Even switch is not booting now. Below are the commands available and attempts i made to install the IOS. Please help me the steps to properly install the IOS
switch: help
? -- 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
switch: version
CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 3.58, RELEASE SOFTWARE (P)
Compiled Thu Mar 10 16:18:45 PST 2016 by rel
switch: set_param
Burning parameters into flash parameter block:
MAC address: 00:C1:B1:B7:74:00
Motherboard assembly number: 73-14445-07
Motherboard serial number: FOC21084ANU
Model revision number: L0
Motherboard revision number: B0
Model number: WS-C3850-24S
System serial number: FCW2110F0P0
Cfg model number: WS-C3850-24S-S
Writing parameter block...pb:: read only file system
switch: emergency-install
usage: emergency-install url://<url>
switch: emergency-install usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin
The bootflash will be erased during install operation, continue (y/n)?y
Starting emergency recovery (usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin)...
call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0
usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
Reading full image into memory.......................done
Bundle Image
--------------------------------------
Kernel Address : 0x5342d5d4
Kernel Size : 0x41852f/4293935
Initramfs Address : 0x53845b04
Initramfs Size : 0xe77ac6/15170246
Compression Format: .mzip
Bootable image at @ ram:0x5342d5d4
Bootable image segment 0 address range [0x81100000, 0x82140000] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "sda9:cat3k_caa-recovery.bin" uncompressed and installed, entry point: 0x8166a600
Loading Linux kernel with entry point 0x8166a600 ...
Bootloader: Done loading app on core_mask: 0x3f
### Launching Linux Kernel (flags = 0x5)
FAT: bogus number of reserved sectors
Initiating Emergency Installation of bundle usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin
Emergency Install failed - bundle usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin does not exist
Restarting system.
Booting...(use DDR clock 667 MHz)call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0
usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
Interface GE 0 link down***ERROR: PHY link is down
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
The system is unable to boot automatically. The
BOOT environment variable needs to be set to a
bootable image.
switch: emergency-install usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin
Unknown cmd:
switch: emergency-install usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin
The bootflash will be erased during install operation, continue (y/n)?y
Starting emergency recovery (usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin)...
call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0
usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
Reading full image into memory.......................done
Bundle Image
--------------------------------------
Kernel Address : 0x5342e5d4
Kernel Size : 0x41852f/4293935
Initramfs Address : 0x53846b04
Initramfs Size : 0xe77ac6/15170246
Compression Format: .mzip
Bootable image at @ ram:0x5342e5d4
Bootable image segment 0 address range [0x81100000, 0x82140000] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "sda9:cat3k_caa-recovery.bin" uncompressed and installed, entry point: 0x8166a600
Loading Linux kernel with entry point 0x8166a600 ...
Bootloader: Done loading app on core_mask: 0x3f
### Launching Linux Kernel (flags = 0x5)
FAT: bogus number of reserved sectors
Initiating Emergency Installation of bundle usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin
Emergency Install failed - bundle usbflash0:/cat3k_caa-universalk9.16.03.06.SPA.bin does not exist
Restarting system.
Booting...(use DDR clock 667 MHz)call dfs_loadpartitions, retry = 1
call dfs_loadpartitions, retry = 0
usbflash0: contains unexpected values in partition table or boot sector.
Device needs formatting before use!
Interface GE 0 link down***ERROR: PHY link is down
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
The system is unable to boot automatically. The
BOOT environment variable needs to be set to a
bootable image.
switch: dir
List of filesystems currently registered:
xmodem[0]: (read-only)
null[1]: (read-write)
bs[3]: (read-only)
usbflash0[10]: (read-write)
flash[19]: (read-only)
tftp[20]: (read-write)
sage: boot [<filename>] [<cmdline>]
switch: dir flash:
switch: y of flash:/
switch: drwx 4096 .
2 drwx 4096 ..
77442 -rw- 2097152 nvram_config
77443 -rw- 537577577 y
77445 -rw- 537577577 cat3k_caa-universalk9.16.03.06.SPA.bin
77447 drwx 4096 core
85185 drwx 4096 .prst_sync
15496 -rw- 83298720 cat3k_caa-base.SPA.03.06.08E.pkg
15497 -rw- 3949504 cat3k_caa-drivers.SPA.03.06.08E.pkg
15498 -rw- 33811696 cat3k_caa-infra.SPA.03.06.08E.pkg
15500 -rw- 28447888 cat3k_caa-platform.SPA.03.06.08E.pkg
11 drwx 4096 .rollback_timer
77450 drwx 4096 dc_profile_dir
15491 drwx 4096 virtual-instance
77444 -rw- 796 vlan.dat
77449 drwx 4096 gs_script
23233 drwx 4096 vman_fdb
77446 -rw- 185 bootloader_evt_handle.log
77451 -rw- 65301 memleak.tcl
77452 drwx 4096 .installer
77454 -rw- 2097152 nvram_config_bkup
77456 -rw- 4737 packages.conf
77457 -rw- 4737 packages.conf.badop
30977 drwx 4096 wnweb_store
15492 drwx 4096 onep
15499 -rw- 43109956 cat3k_caa-iosd-universalk9.SPA.152-2.E8.pkg
15501 -rw- 112669764 cat3k_caa-wcm.SPA.10.2.180.0.pkg
232882176 bytes available (1415012352 bytes used)
switch: boot flash:cat3k_caa-universalk9.16.03.06.SPA.conf
flash:cat3k_caa-universalk9.16.03.0o such file or directory
Cannot open file flash:cat3k_caa-universalk9.16.03.07.SPA.conf
Unknown cmd:
switch: boot flash:cat3k_caa-universalk9.16.03.06.SPA.conf
flash:cat3k_caa-universalk9.16.03.06.SPA.conf: no such file or directory
Cannot open file flash:cat3k_caa-universalk9.16.03.06.SPA.conf
usage: boot [<filename>] [<cmdline>]
switch:
08-18-2021 01:24 AM
Hi there,
Looks like you have tried a lot of different boot options! Have you tried booting the bin file from flash:
boot flash:cat3k_caa-universalk9.16.03.06.SPA.bin
cheers,
Seb.
08-18-2021 02:00 AM
08-18-2021 02:29 AM
As others noted, what are you trying ? Upgrade ?
this is wrong syntax if you like to boot:
switch: boot flash:cat3k_caa-universalk9.16.03.06.SPA.conf
instead try just issue boot
or try bundle mode
switch: boot flash:cat3k_caa-universalk9.16.03.06.SPA.bin
08-18-2021 10:08 PM
Hi,
Thank you for your reply. I tried with the command and was able to boot the switch. But it is now in bundle mode. I tried to convert it to install mode by using software expand command. but this command is not recognized. Can you please help me if there is any way to convert to install mode.
Thanks in advance for your time.
08-19-2021 12:34 AM
@Mahiv wrote:
I tried to convert it to install mode by using software expand command. but this command is not recognized.
If someone (bothered to) read the Release Notes, Cisco has changed the command to upgrade the IOS from 16.X. Instead of the "software install" command it is now "request platform" command.
08-18-2021 10:59 PM
Yes, i am trying to upgrade ios. in one of the steps i by mistake deleted packages.conf file and copied it back from its redundant switch. (not sure if this is correct procedure) and trying to boot it. When i boot, by default it is entering into ROMMON mode. and not booting at all. Manually i am booting with the command boot flash:XXX.bin file. It is then able to boot and showing my existing configuration. but as said, it is in Bundle mode. I am unable to convert to Install mode.
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