10-24-2019 06:17 AM
Hello all,
For some reason we had to factory-reset all our new switch C9200L
Now after reload the switche : prompt is there
We download an image.bin from Cisco and copy on a usb stick
At the prompt switche: boot usbflash0:image.bin
Everything is good switche is booting and I can access it form a web page and so on...
The question I have is how to copy the image.bin into the switch itself, because everytime that I restart the switch it goes back to the switche: prompt
I try copy usbflash0:image.bin flash the error message that we got is No enough space on device
I try copy usbflash0:image.bin run and after copy running-config to startup-config but it does give us the same result by restarting the switche we are going back to the switche: prompt...
Any idea how we can achieve this?
Best regards
10-24-2019 06:30 AM - edited 10-24-2019 06:32 AM
have you set the boot variable.
switch : boot ( type boot)
once it booted, can you post
show boot
dir bootflash:
10-24-2019 06:55 AM
Hello BB
Please provide more info:
switch : boot ( type boot) what I need to put in type boot
I tried the following:
Do you want me to boot with usbflash0 before doing those commands
Please advise!
Regards,
10-24-2019 07:20 AM
You always make note what you doing -
factory-reset all - Erases all the content from the NVRAM, all the Cisco IOS images, including the current boot image, boot variables, startup and running configuration data, and user data.
After the Factory Reset process is successfully completed, the device reboots and stops at ROMMON mode.
Since you have IOS on USB
1. boot from USB Flash
2. Copy the bin file to bootflash:
3. set boot variable
here is the detailed guide :
10-24-2019 06:36 AM
It's actually switch, not switche.
10-24-2019 07:33 AM
Hello
As you have booted from the bin file I would assume it now in bundle mode
sh version
what you you need to do is the following
download the .BIN file to switch flash again
1) rename any exiting package.conf file in flash of new switch - rename flash:packages.conf packagesOLD.conf
2) Expand .BIN file in flash request platform software package expand switch x file flash:new.bin auto-copy
3) change boot variable to boot to the newly install packages.conf file
no boot system
boot system flash:packages.conf
write mem
4) reload new switch
5) check to see new version -- show version
6) if all is good perfrom a clean up on new switch - request platform software package clean switch x
if it is in install mode then do the same as above but at step 2 run
platform software package install switch x file flash:new.bin auto-copy
10-24-2019 07:41 AM - edited 10-24-2019 07:43 AM
Forgot to mention you may have to do a software clean Before installing the new .bin file because you say you have no space on the flash:
Also the only other time to perform a clean is after you’ve successfully installed the iOS and the switch has rebooted okay as a clean removes unnecessary pkgs file and the bin file
10-24-2019 02:25 PM - edited 10-24-2019 02:26 PM
@Stephane0032 wrote:
For some reason we had to factory-reset all our new switch C9200L
If someone has performed a factory-reset then did someone DISABLE the factory-reset option?
If the option is still enabled then every time the switch reboots ...
@Stephane0032 wrote:
No enough space on device
In ROMMON, post the complete output to the command "dir".
11-26-2020 02:02 AM
For next generation facing this issue:
get some usb sticks and format usb to fat32 and upload your bin file.
if you can't recognize the usb stick using dir flash0: or dir flash1: use another usb stick
Example of non compatible usb stick:
switch: dir usbflash0:
Error[10]: Failed to open directory!
switch: boot usbflash0:cat9k_lite_iosxe.16.12.03a.SPA.bin
confirm and wait till iOS booted
once IOS is up and running:
switch>enable
switch#copy usbflash0:cat9k_lite_iosxe.16.12.03a.SPA.bin flash:
confirm
switch#conf t
switch(config)#boot system flash:packages.conf
switch(config)#exit
switch(config)#wr mem
switch(config)#show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
If there anything more than "flash:packages.conf" remove it by using: no "flash:xyz"
Install your bin file using:
Switch(config)#system install add file flash:cat9k_lite_iosxe.16.12.04.SPA.bin activate commit
Switch# install add file flash:cat9k_lite_iosxe.16.12.03a.SPA.bin ac
Switch#$d file flash:cat9k_lite_iosxe.16.12.03a.SPA.bin activate com
Switch#$d file flash:cat9k_lite_iosxe.16.12.03a.SPA.bin activate commit
install_add_activate_commit: START Thu Nov 26 08:08:37 UTC 2020
Nov 26 08:08:40.643: %INSTALL-5-INSTALL_START_INFO: R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.16.12.03a.SPA.bin
Nov 26 08:08:40.643 %INSTALL-5-INSTALL_START_INFO: R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.16.12.03a.SPA.bin
*Nov 26 08:08:40.590: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.16.12.03a.SPA.bininstall_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....
This operation requires a reload of the system. Do you want to proceed?
Please confirm you have changed boot config to flash:packages.conf [y/n]y
--- Starting initial file syncing ---
Info: Finished copying flash:cat9k_lite_iosxe.16.12.03a.SPA.bin to the selected switch(es)
Finished initial file syncing
--- Starting Add ---
Performing Add on all members
[1] Add package(s) on switch 1
[1] Finished Add on switch 1
Checking status of Add on [1]
Add: Passed on [1]
Finished Add
Image added. Version: 16.12.3a.0.4
install_add_activate_commit: Activating PACKAGE
gzip: initramfs.cpio.gz: decompression OK, trailing garbage ignored
Following packages shall be activated:
/flash/cat9k_lite-webui.16.12.03a.SPA.pkg
/flash/cat9k_lite-srdriver.16.12.03a.SPA.pkg
/flash/cat9k_lite-rpboot.16.12.03a.SPA.pkg
/flash/cat9k_lite-rpbase.16.12.03a.SPA.pkg
This operation may require a reload of the system. Do you want to proceed? [y/n]y
--- Starting Activate ---
Performing Activate on all members
Nov 26 08:20:37.434: %INSTALL-5-INSTALL_AUTO_ABORT_TIMER_PROGRESS: R0/0: rollback_timer: Install auto abort timer will expire in 7200 seconds
[1] Activate package(s) on switch 1
[1] Finished Activate on switch 1
Checking status of Activate on [1]
Activate: Passed on [1]
Finished Activate
*Nov 26 08:20:37.395: %INSTALL-5-INSTALL_AUTO_ABORT_TIMER_PROGRESS: Switch 1 R0/0: rollback_timer: Install auto abort timer will expire in 7200 seconds--- Starting Commit ---
Performing Commit on all members
[1] Commit package(s) on switch 1
[1] Finished Commit on switch 1
Checking status of Commit on [1]
Commit: Passed on [1]
Finished Commit
Install will reload the system now!
SUCCESS: install_add_activate_commit Thu Nov 26 08:21:33 UTC 2020
Nov 26 08:21:34.127: %INSTALL-5-INSTALL_COMPLETED_INFO: R0/0: install_engine: Completed install one-shot PACKAGE flash:cat9k_lite_iosxe.16.12.03a.SPA.bin
Nov 26 08:21:34.127 %INSTALL-5-INSTALL_COMPLETED_INFO: R0/0: install_engine: Completed install one-shot PACKAGE flash:cat9k_lite_iosxe.16.12.03a.SPA.bin
Switch#
Chassis 1 reloading, reason - Reload command
*Nov 26 08:21:34.087: %INSTALL-5-INSTALL_COMPLETED_INFO: Switch 1 R0/0: install_engine: Completed install one-shot PACKAGE flash:cat9k_lite_iosxe.16.12.03a.SPA.binreload fp action requested
rp processes exit with reload switch code
watchdog watchdog0: watchdog did not stop!
reboot: Restarting system
Initializing Hardware...
System Bootstrap, Version 16.12.1r [FC6], RELEASE SOFTWARE (P)
Compiled Thu 02/13/2020 12:36:08 by rel
Current ROMMON image : Primary
C9200L-48P-4X platform with 2097152 Kbytes of main memory
boot: attempting to boot from [flash:packages.conf]
boot: reading file packages.conf
#############
Press RETURN to get started!
switch>
Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future
12-02-2022 01:32 PM
the install command you've bolded doesn't need "system" in front of it. it actually won't work with system there. correct syntax matters. but maybe it works on a different system other than mine. otherwise everything else is on point! Thanks
10-02-2022 04:14 PM
This link is also useful
https://travelingpacket.com/2022/02/11/recover-cisco-9200-from-firmware-loss/
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