09-19-2023 02:43 AM
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
Solved! Go to Solution.
09-21-2023 12:58 AM
It sounds like the OS does not like the type of the USB flash drive used.
Transfer the firmware to the switch using TFTP.
09-19-2023 02:54 AM
@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.
09-19-2023 03:00 AM
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.”.
09-19-2023 03:22 AM
If the switch is in ROMMON, post the complete output to the following commands:
set
dir flash:
09-19-2023 03:29 AM
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
09-19-2023 04:00 AM
09-19-2023 04:00 AM
Try this in ROMMON: boot usbflash1:cat9k_lite_iosxe.17.12.01.SPA.bin
09-19-2023 04:10 AM
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.
09-19-2023 04:35 AM
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.
09-19-2023 05:28 AM
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.
09-19-2023 07:09 PM
@MBCChris wrote:
Directory of flash:/
No, the "dir" command looks at the flash.
What is the result to the command "dir usbflash1:"?
09-20-2023 02:17 AM
This is what i get with the Dir comand
Switch#Dir usbflash1:
^
% Invalid input detected at '^' marker.
09-20-2023 04:00 AM
Remove the USB flash.
Wait for about 10 seconds and re-insert.
Wait for another 10 seconds.
Post the complete output to the command "sh log" and "dir usbflash0:".
09-20-2023 11:50 PM
Again thank you for your help on this. here is the log you request
Switch#sh log
Syslog logging: enabled (0 messages dropped, 2 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)
No Active Message Discriminator.
No Inactive Message Discriminator.
Console logging: level debugging, 54 messages logged, xml disabled,
filtering disabled
Monitor logging: level debugging, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 54 messages logged, xml disabled,
filtering disabled
Exception Logging: size (4096 bytes)
Count and timestamp logging messages: disabled
File logging: disabled
Persistent logging: disabled
No active filter modules.
Trap logging: level informational, 62 message lines logged
Logging Source-Interface: VRF Name:
TLS Profiles:
Log Buffer (4096 bytes):
_mgr: Switch 1 has been elected ACTIVE.
*Sep 20 07:57:54.594: %HMANRP-6-EMP_NO_ELECTION_INFO: Could not elect active EMP switch, setting emp active switch to 0: EMP_RELAY: Could not elect switch with mgmt port UP
*Sep 20 07:57:55.024: %LINK-3-UPDOWN: Interface LIIN10/2, changed state to up
*Sep 20 07:57:55.024: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to down
*Sep 20 07:57:55.024: %LINK-5-CHANGED: Interface Bluetooth0/4, changed state to administratively down
*Sep 20 07:57:55.025: %LINEPROTO-5-UPDOWN: Line protocol on Interface Lsmpi10/3, changed state to up
*Sep 20 07:57:55.512: %LINEPROTO-5-UPDOWN: Line protocol on Interface EOBC10/1, changed state to up
*Sep 20 07:57:56.098: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down
*Sep 20 07:57:56.098: %LINEPROTO-5-UPDOWN: Line protocol on Interface Bluetooth0/4, changed state to down
*Sep 20 07:57:56.840: %SYS-5-CONFIG_P: Configured programmatically by process MGMT VRF Process from console as vty0
*Sep 20 07:57:57.227: %IOSXE_MGMTVRF-6-CREATE_SUCCESS_INFO: Management vrf Mgmt-vrf created with ID 1, ipv4 table-id 0x1, ipv6 table-id 0x1E000001
*Sep 20 07:57:57.369: %SYS-5-CONFIG_P: Configured programmatically by process MGMT VRF Process from console as vty0
*Sep 20 07:57:57.391: %IOSXE_MGMTVRF-6-CREATE_SUCCESS_INFO: Management vrf Mgmt-vrf created with ID 1, ipv4 table-id 0x1, ipv6 table-id 0x1E000001
*Sep 20 07:57:57.392: %SYS-5-CONFIG_P: Configured programmatically by process MGMT VRF Process from console as vty0
*Sep 20 07:57:57.776: %ONEP_BASE-6-SS_ENABLED: ONEP: Service set Base was enabled by Default
*Sep 20 07:57:58.555: %SYS-6-STARTUP_CONFIG_IGNORED: System startup configuration is ignored based on the configuration register setting.
*Sep 20 07:57:59.119: %SYS-5-CONFIG_P: Configured programmatically by process CPP MQC QoS Policy manager from console as vty1
*Sep 20 07:57:59.161: %CRYPTO-5-SELF_TEST_START: Crypto algorithms release (Rel5a), Entropy release (3.4.1)
begin self-test
*Sep 20 07:57:59.201: %CRYPTO-5-SELF_TEST_END: Crypto algorithms self-test completed successfully
All tests passed.
*Sep 20 07:57:59.203: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Sep 20 07:58:01.643: %SYS-5-RESTART: System restarted --
Cisco IOS Software [Dublin], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.12.1, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2023 by Cisco Systems, Inc.
Compiled Thu 27-Jul-23 22:39 by mcpre
*Sep 20 07:58:02.950: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
*Sep 20 07:58:06.537: %PNP-6-PNP_BEST_UDI_UPDATE: Best UDI [PID:C9200L-48P-4X,VID:G0,SN:FOC27213JPG] identified via (master-registry)
*Sep 20 07:58:06.537: %PNP-6-PNP_CDP_UPDATE: Device UDI [PID:C9200L-48P-4X,VID:G0,SN:FOC27213JPG] identified for CDP
*Sep 20 07:58:06.539: %PNP-6-PNP_DISCOVERY_STOPPED: PnP Discovery stopped (Startup Config Present)
*Sep 20 07:58:07.156: %HMANRP-6-EMP_NO_ELECTION_INFO: Could not elect active EMP switch, setting emp active switch to 0: EMP_RELAY: Could not elect switch with mgmt port UP
*Sep 20 07:58:12.881: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF
*Sep 20 07:58:13.294: %PKI-6-TRUSTPOINT_CREATE: Trustpoint: CISCO_IDEVID_SUDI created succesfully
*Sep 20 07:58:13.312: %CRYPTO_ENGINE-5-KEY_ADDITION: A key named CISCO_IDEVID_SUDI has been generated or imported by pki-sudi
*Sep 20 07:58:13.382: %PKI-6-TRUSTPOINT_CREATE: Trustpoint: CISCO_IDEVID_SUDI0 created succesfully
*Sep 20 07:58:13.389: %PKI-2-NON_AUTHORITATIVE_CLOCK: PKI functions can not be initialized until an authoritative time source, like NTP, can be obtained.
*Sep 20 07:58:58.413: %WSMAN-3-INVALID_TRUSTPOINT: Trustpoint associated with HTTP is either invalid or does not exist
*Sep 20 08:15:14.847: %SYS-6-TTY_EXPIRE_TIMER: (exec timer expired, tty 0 (0.0.0.0)), user
*Sep 20 08:36:41.872: %SYS-6-TTY_EXPIRE_TIMER: (exec timer expired, tty 0 (0.0.0.0)), user
*Sep 20 09:21:22.904: %SYS-6-TTY_EXPIRE_TIMER: (exec timer expired, tty 0 (0.0.0.0)), user
Switch#
Still no luck on the dir usbflash0 I also tried usbflash1 as well but got the same invalid input error.
09-21-2023 12:15 AM
Can I see the output to the command "sh post" and "sh switch detail"?
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