cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
718
Views
0
Helpful
23
Replies

Restoring iso to a 9200L

MBCChris
Beginner
Beginner

Hello, I need some help.

One of our 9200L has been reset with a factory-reset all command. It will now only boot into rommon.

I have tried various ways to restore the ISO. I have downloaded the latest cat9k….bin file from the website and copied it to a usb stick.

I have booted in to rommon and tried to copy the bin file from the usb drive to the flash, but I get the error a message of “Unsupported destination device/filesystem”. I believe this is because the flash is read only.

I have also tried the emergency-install command, but I get an error of “Error: command 'emergency-install' not found. Use 'help' to list commands.”.

I also tried the load the bin fire from a tftp server but when I try and set the ip address I get the error “Can't set variable "IP_ADDRESS" to”. I checked the set command list and I do not see a variable in it called IP_ADDRESS.

I can boot off the usb drive and it loads up but when I do a dir I only see flash: and not any of the usb drives. So, I expect that flash is actually the usb drive not the flash on the switch.

 

Is there something I have missed or am doing wrong?

 

Chris

1 Accepted Solution

Accepted Solutions

It sounds like the OS does not like the type of the USB flash drive used. 

Transfer the firmware to the switch using TFTP.  

View solution in original post

23 Replies 23

Leo Laohoo
Hall of Fame
Hall of Fame

@MBCChris wrote:

 

tried to copy the bin file from the usb drive to the flash, but I get the error a message of “Unsupported destination device/filesystem”. 

Copying of file(s) into the flash, while in ROMMON, is disabled for security purposes. 

If the firmware is in a USB flash drive, use the command "emergency-install usbflash0:filename.bin".  

WARNING:  The command "emergency-install" will completely wipe the flash of the target switch.

Thank you for the reply but I have tried the emergency-install but I get back the error “Error: command 'emergency-install' not found. Use 'help' to list commands.”.

If the switch is in ROMMON, post the complete output to the following commands: 

set
dir flash:

Here is the info you have requested.

switch: set
ABNORMAL_RESET_COUNT=0
AUTO_SWITCH_CONSOLE_DISABLE=0
BAUD=9600
BOOT_DEVICE_MODE=catalyst
BSI=0
CONSOLE_MIRRORING_DISABLE=0
MAC_ADDR=C4:7E:E0:34:F8:00
MODEL_NUM=C9200L-48P-4X
MOTHERBOARD_SERIAL_NUM=FOC27213JPG
NO_CONSOLE=0
RANDOM_NUM=79555540
RET_2_RCALTS=1695118275
ROMMON_BOARDID=0x4313
SWITCH_IGNORE_STARTUP_CFG=1
SWITCH_NUMBER=1
SYSTEM_SERIAL_NUM=FOC27213JPG
TEMPLATE=advanced
USB_DISABLE=0


switch: dir
usage: dir <path-to-directory>
supported filesystem(s):
flash: ro flash
usbflash0: rw front-panel USB 0
usbflash1: rw front-panel USB 1


switch: dir flash:
Attributes Size Name
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
drwxrwxrwx 4096 SHARED-IOX
drwxrwxrwx 4096 .prst_sync
-rwxr-xr-x 0 mode_event_log
drwxr-xr-x 4096 pcap
drwxr-xr-x 4096 .installer
drwxr-xr-x 4096 .rollback_timer
drwxr-xr-x 4096 core
drwxr-xr-x 4096 .USWAP
drwxr-xr-x 4096 .CRFT
-rw-r--r-- 296 bootloader_evt_handle.log
drwxrwxrwx 4096 gs_script
drwxr-xr-x 4096 tech_support
drwxr-xr-x 4096 dc_profile_dir
drwxr-xr-x 4096 EDScisco
-rw-r--r-- 2299 boothelper.log
drwxr-xr-x 4096 sys_report
drwxr-xr-x 4096 fp_cc_crash
-rw-r--r-- 137995 memleak.tcl
drwxr-xr-x 4096 Tbot
drwxr-xr-x 4096 .rommon_sync
lrwxrwxrwx 13 NVRAM -> /flash1/NVRAM
-rw-r--r-- 1338 DigiCertGlobalRootCA.ca
-rw-r--r-- 1924 ISRGRootX1CrossSignDST.ca
-rw-r--r-- 1606 StarfieldServicesRootCA.ca
-rw-r--r-- 1261 Baltimore.ca
-rw-r--r-- 17 rmon_var_template
drwxr-xr-x 4096 .dbpersist
-rw-r--r-- 15528 rdope_out.txt
-rw-r--r-- 89 rdope.log
drwxr-xr-x 4096 pnp-info
drwxr-xr-x 4096 onep
-rw-r--r-- 265 lateshutdown.log
-rw-r--r-- 2299 boothelper.log.old
drwxr-xr-x 4096 license_evlog
-rw------- 0 dope_hist
-rw-r--r-- 2097152 nvram_config
-rw-r--r-- 2097152 nvram_config_bkup
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

switch: dir usbflash1:
Attributes Size Name
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D-HS- 0 System Volume Information
----A 466125995 cat9k_lite_iosxe.17.12.01.SPA.bin
----A 461570503 cat9k_lite_iosxe_npe.17.12.01.SPA.bin

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


@MBCChris wrote:
SWITCH_IGNORE_STARTUP_CFG=1

Uhhhh ...

 

Try this in ROMMON:  boot usbflash1:cat9k_lite_iosxe.17.12.01.SPA.bin

Thanks for the suggestion. I have tried that and it does load but once it has loaded and I do a dir I just see flash:. I can't see either of the usb files. I believe that the switch is using the usb drive as flash: because if i remove the flash drive the switch will not work. 

Let the switch boot the firmware from the USB.  

Once the switch boots into IOS, copy the file from the USB into the flash.  

Do not forget to change the config-registry back.

This is where I am running into problems, once the switch boots I am no longer able to see the usb drives 

Switch#dir
Directory of flash:/

48668 -rw- 2097152 Sep 19 2023 11:15:35 +00:00 nvram_config_bkup
48667 -rw- 2097152 Sep 19 2023 11:15:35 +00:00 nvram_config
48663 drwx 4096 Sep 19 2023 11:15:30 +00:00 license_evlog
48664 -rw- 0 Sep 19 2023 11:15:29 +00:00 dope_hist
48658 -rw- 15528 Sep 19 2023 11:15:29 +00:00 rdope_out.txt
48659 -rw- 89 Sep 19 2023 11:15:26 +00:00 rdope.log
48579 drwx 4096 Sep 19 2023 11:15:16 +00:00 .prst_sync
48641 -rw- 17 Sep 19 2023 11:14:21 +00:00 rmon_var_template
48626 -rw- 137995 Sep 19 2023 11:14:13 +00:00 memleak.tcl
48642 -rw- 2299 Sep 19 2023 11:14:13 +00:00 boothelper.log
48620 drwx 4096 Sep 19 2023 11:14:08 +00:00 dc_profile_dir
48590 -rw- 370 Sep 19 2023 11:13:48 +00:00 bootloader_evt_handle.log
48582 drwx 4096 Sep 19 2023 11:13:45 +00:00 .installer
48645 -rw- 265 Sep 19 2023 10:57:09 +00:00 lateshutdown.log
48623 -rw- 2299 Sep 19 2023 10:33:08 +00:00 boothelper.log.old
48656 drwx 4096 Sep 18 2023 13:44:58 +00:00 .dbpersist
48586 drwx 4096 Sep 18 2023 13:42:18 +00:00 core
48661 drwx 4096 Sep 18 2023 13:41:56 +00:00 onep
48660 drwx 4096 Sep 18 2023 13:41:56 +00:00 pnp-info
48640 -rw- 1261 Sep 18 2023 13:18:59 +00:00 Baltimore.ca
48639 -rw- 1606 Sep 18 2023 13:18:59 +00:00 StarfieldServicesRootCA.ca
48638 -rw- 1924 Sep 18 2023 13:18:59 +00:00 ISRGRootX1CrossSignDST.ca
48637 -rw- 1338 Sep 18 2023 13:18:59 +00:00 DigiCertGlobalRootCA.ca
48634 drwx 4096 Sep 18 2023 13:18:54 +00:00 .rommon_sync
48627 drwx 4096 Sep 18 2023 13:18:53 +00:00 Tbot
48625 drwx 4096 Sep 18 2023 13:18:53 +00:00 fp_cc_crash
48624 drwx 4096 Sep 18 2023 13:18:53 +00:00 sys_report
48622 drwx 4096 Sep 18 2023 13:18:50 +00:00 EDScisco
48596 drwx 4096 Sep 18 2023 13:18:50 +00:00 tech_support
48583 drwx 4096 Sep 18 2023 13:18:24 +00:00 .rollback_timer
48581 drwx 4096 Dec 16 2020 17:25:20 +00:00 pcap
48580 -rwx 0 Dec 16 2020 17:25:20 +00:00 mode_event_log
48578 drwx 4096 Dec 16 2020 17:25:20 +00:00 SHARED-IOX

1956839424 bytes total (1773281280 bytes free)

as you can see a dir just brings up the flash: unlike before where it showed the two usb drives and the flash. I believe that this is the usb drive and not the switch. I do not know how to get to the flash on the switch.


@MBCChris wrote:
Directory of flash:/

No, the "dir" command looks at the flash.  

What is the result to the command "dir usbflash1:"?

This is what i get with the Dir comand

Switch#Dir usbflash1:
                 ^
% Invalid input detected at '^' marker.