cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
20031
Views
30
Helpful
10
Replies

C9200L

Stephane0032
Level 1
Level 1

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 Replies 10

balaji.bandi
Hall of Fame
Hall of Fame

have you set the boot variable.

 

switch : boot ( type boot)

 

once it booted, can you post

show boot

dir bootflash:

 

BB

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

How to Ask The Cisco Community for Help

Hello BB

 

Please provide more info:

switch : boot ( type boot) what I need to put in type boot

I tried the following:

System Bootstrap, Version 16.10.1r [FC5], RELEASE SOFTWARE (P)
Compiled Mon 05/06/2019 12:06:14 by rel
Current ROMMON image : Primary
C9200L-48P-4G platform with 2097152 Kbytes of main memory
WARNING: Bootable URL's in BOOT variable not found or exhausted.
         Please check the ROMMON configuration or boot command usage.
switch:
switch: boot flash:packages.conf
boot: attempting to boot from [flash:packages.conf]
boot: reading file packages.conf
boot: failed to load flash:/user/packages.conf
ERROR: failed to boot from flash:packages.conf (Not Found)
switch: boot flash:cat9k_lite_iosxe.16.09.01.spa.bin
boot: attempting to boot from [flash:cat9k_lite_iosxe.16.09.01.spa.bin]
boot: reading file cat9k_lite_iosxe.16.09.01.spa.bin
boot: failed to load flash:/user/cat9k_lite_iosxe.16.09.01.spa.bin
ERROR: failed to boot from flash:cat9k_lite_iosxe.16.09.01.spa.bin (Not Found)
switch:

Do you want me to boot with usbflash0 before doing those commands

 

Please advise!

 

Regards,

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 :

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9400/software/release/16-9/configuration_guide/sys_mgmt/b_169_sys_mgmt_9400_cg/recover_from_corrupt_or_missing_file_image_or_in_rommon_mode.pdf

 

 

 

 

BB

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

How to Ask The Cisco Community for Help

Filip Knezevic
Level 1
Level 1

It's actually switch, not switche. 

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

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Leo Laohoo
Hall of Fame
Hall of Fame

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

Piotr Chojnacki
Level 1
Level 1

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

 

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

ErwinCanales
Level 1
Level 1
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: