iT邦幫忙

0

關於cisco C9300恢復原廠設定之後,重開機進不了 Switch> 模式

  • 分享至 

  • twitterImage

各位前輩好,

小弟有一台C9300,在重新恢復原廠設定之後,重開機進不了 Switch> 模式,詳細資訊如下 :

請問大家,小弟該如何做,才能重新 進去 Switch> 模式呢 ?

Switch#factory-reset all
The factory reset operation is irreversible for all operations. Are you sure? [confirm]y
The following will be deleted as a part of factory reset:
1: Crash info and logs
2: User data, startup and running configuration
3: All IOS images, including the current boot image
4: OBFL logs
5: User added rommon variables
6: Data on Field Replaceable Units(USB/SSD/SATA)
The system will reload to perform factory reset.
It will take some time to complete and bring it to rommon.
You will need to load IOS image using USB/TFTP from rommon after
this operation is completed.
DO NOT UNPLUG THE POWER OR INTERRUPT THE OPERATION
Are you sure you want to continue? [confirm]y
Successfully removed non factory default boot variables in rommon
Protection key not found
Switch#
Chassis 1 reloading, reason - System requested reload
reload fp action requested
rp processes exit with reload switch code

Enabling factory reset for this reload cycle
Switch booted with flash:packages.conf
Switch booted via packages.conf
% FACTORYRESET - Started Cleaning Up...

% FACTORYRESET - Unmounting sd1
% FACTORYRESET - Cleaning Up sd1 [0]
% FACTORYRESET - In progress.. please wait for completion...

Discarding device blocks: done
Creating filesystem with 409600 4k blocks and 102544 inodes
Filesystem UUID: 4b27e735-55c5-40c1-94cb-59f18cd0e4d3
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

% FACTORYRESET - Mounting Back sd1 [0]
% FACTORYRESET - Handling Mounted sd1
% FACTORYRESET - Factory Reset Done for sd1

% FACTORYRESET - Unmounting sd3
% FACTORYRESET - Cleaning Up sd3 [0]
% FACTORYRESET - In progress.. please wait for completion...

Discarding device blocks: done
Creating filesystem with 2816000 4k blocks and 704512 inodes
Filesystem UUID: 5ff88437-0942-4f7e-8bd1-160b67be5544
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

% FACTORYRESET - Mounting Back sd3 [0]
% FACTORYRESET - Handling Mounted sd3
% FACTORYRESET - Factory Reset Done for sd3

% FACTORYRESET - Unmounting sd6
% FACTORYRESET - Cleaning Up sd6 [0]
% FACTORYRESET - In progress.. please wait for completion...

Discarding device blocks: done
Creating filesystem with 131072 1k blocks and 32768 inodes
Filesystem UUID: f9140be3-42a0-4846-b725-b974f2d2f399
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729

Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done

% FACTORYRESET - Mounting Back sd6 [0]
% FACTORYRESET - Handling Mounted sd6
% FACTORYRESET - Factory Reset Done for sd6
% FACTORYRESET - Lic Clean UP
% FACTORYRESET - Lic Clean Successful...
% FACTORYRESET - Clean Up Successful...
% FACTORYRESET - Check if usbflash0 is mounted...
% FACTORYRESET - Check if usbflash1 is mounted...

Initializing Hardware...

SNP: failed to initialize MAC address (not found/zero)
Please set a value for MAC_ADDR and restart the device before proceeding

System Bootstrap, Version 16.12.2r, RELEASE SOFTWARE (P)
Compiled Fri 10/25/2019 11:48:55.48 by rel

Current ROMMON image : Primary
Last reset cause : SoftwareReload
C9300L-48T-4X platform with 8388608 Kbytes of main memory

Setting MODEL_NUM [C9300L-48T-4X]
Setting SYSTEM_SERIAL_NUM [FOC2429L6XM]
Setting MOTHERBOARD_SERIAL_NUM [FOC24285H8D]
Setting VERSION_ID [V01]
Setting MOTHERBOARD_REVISION_NUM [C0]
Setting MOTHERBOARD_ASSEMBLY_NUM [73-19103-05]
Setting MODEL_REVISION_NUM [F0]
WARNING: Bootable URL's in BOOT variable not found or exhausted.
Please check the ROMMON configuration or boot command usage.
switch:

請問大家,小弟該如何做,才能重新 進去 Switch> 模式呢 ?

小弟在switch: 模式之下,supported filesystem資訊如下 :

switch: dir flash:
switch: dir
usage:
dir
supported filesystem(s):
flash: ro flash
bootflash: ro system partition
usbflash0: rw front-panel USB

看更多先前的討論...收起先前的討論...
ZongXianLi iT邦研究生 5 級 ‧ 2021-03-17 20:54:39 檢舉
設備在操作確認前就有說
You will need to load IOS image using USB/TFTP from rommon after
this operation is completed.
ZongXianLi iT邦研究生 5 級 ‧ 2021-03-17 21:01:46 檢舉
做之前請先詳閱說明書
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/16-9/configuration_guide/sys_mgmt/b_169_sys_mgmt_9300_cg/simplified_factory_reset.pdf
抱歉,小弟愚笨,還是不太了解如何做,可以麻煩說明清楚一點嗎? 感恩
您好,小弟之前備份的show version資訊如下 :

可以麻煩如何進行安裝OS嗎? 謝謝您 ! ^^

C9300-switch# show version
Cisco IOS XE Software, Version 16.12.03a
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.3a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Tue 28-Apr-20 09:37 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 16.12.2r, RELEASE SOFTWARE (P)

HOLLY-S0409-C9300 uptime is 27 weeks, 1 day, 5 hours, 34 minutes
Uptime for this control processor is 27 weeks, 1 day, 5 hours, 35 minutes
System returned to ROM by PowerOn
System image file is "flash:packages.conf"
Last reload reason: PowerOn



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
--More--  agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.


Technology Package License Information:

------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-essentials Smart License network-essentials
dna-essentials Subscription Smart License dna-essentials
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage


Smart Licensing Status: UNREGISTERED/EVAL EXPIRED

cisco C9300L-48T-4X (X86) processor with 1343703K/6147K bytes of memory.
Processor board ID FOC2429L6ZL
2 Virtual Ethernet interfaces
48 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
11264000K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.

--More--  Base Ethernet MAC Address : 3c:13:cc:15:98:00
Motherboard Assembly Number : 73-19103-05
Motherboard Serial Number : FOC242873GU
Model Revision Number : F0
Motherboard Revision Number : C0
Model Number : C9300L-48T-4X
System Serial Number : FOC2429L6ZL


Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 53 C9300L-48T-4X 16.12.3a CAT9K_IOSXE INSTALL


Configuration register is 0x102
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
1
Wayne
iT邦新手 2 級 ‧ 2021-03-18 02:14:07
最佳解答

注意你在factory reset的時候的提示訊息

Switch#factory-reset all
The factory reset operation is irreversible for all operations. Are you sure? [confirm]y

The following will be deleted as a part of factory reset:

1: Crash info and logs
2: User data, startup and running configuration

3: All IOS images, including the current boot image

4: OBFL logs
5: User added rommon variables
6: Data on Field Replaceable Units(USB/SSD/SATA)
The system will reload to perform factory reset.
It will take some time to complete and bring it to rommon.

You will need to load IOS image using USB/TFTP from rommon after
this operation is completed.

DO NOT UNPLUG THE POWER OR INTERRUPT THE OPERATION
Are you sure you want to continue? [confirm]y

--------------你需要做emergency-install-----------------

  1. 去拿一顆USB,把 你要的版本 .bin file下載下來USB
  2. 接上Switch,然後下指令 emergency-install usbflash0:/cat9k......bin
  3. 他就會安裝了

或是你用tftp,一樣的方式 emergency-install tftp:

手冊: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/16-12/command_reference/b_1612_9300_cr/system_management_commands.html#wp1226684560

討論串: https://community.cisco.com/t5/data-center-switches/warning-bootable-url-s-in-boot-variable-not-found-or-exhausted/m-p/3934322/highlight/true#M4846

emergency-install 不能用的話,改用boot
請參考: https://community.cisco.com/t5/data-center-switches/warning-bootable-url-s-in-boot-variable-not-found-or-exhausted/m-p/4063499/highlight/true#M5507

謝謝Wayne大大,小弟已經成功將設備回復初始狀態了,感恩歐!!! ^^

1
補覺鳴詩
iT邦高手 1 級 ‧ 2021-03-17 22:58:37

您好,小弟之前備份的show version資訊如下 :

可以麻煩如何進行安裝OS嗎? 謝謝您 ! ^^

C9300-switch# show version
Cisco IOS XE Software, Version 16.12.03a
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.3a, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Tue 28-Apr-20 09:37 by mcpre

Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.

ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 16.12.2r, RELEASE SOFTWARE (P)

HOLLY-S0409-C9300 uptime is 27 weeks, 1 day, 5 hours, 34 minutes
Uptime for this control processor is 27 weeks, 1 day, 5 hours, 35 minutes
System returned to ROM by PowerOn
System image file is "flash:packages.conf"
Last reload reason: PowerOn

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
--More--  agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Technology Package License Information:


Technology-package Technology-package
Current Type Next reboot

network-essentials Smart License network-essentials
dna-essentials Subscription Smart License dna-essentials
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage

Smart Licensing Status: UNREGISTERED/EVAL EXPIRED

cisco C9300L-48T-4X (X86) processor with 1343703K/6147K bytes of memory.
Processor board ID FOC2429L6ZL
2 Virtual Ethernet interfaces
48 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
11264000K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.

--More--  Base Ethernet MAC Address : 3c:13:cc:15:98:00
Motherboard Assembly Number : 73-19103-05
Motherboard Serial Number : FOC242873GU
Model Revision Number : F0
Motherboard Revision Number : C0
Model Number : C9300L-48T-4X
System Serial Number : FOC2429L6ZL

Switch Ports Model SW Version SW Image Mode


  • 1 53 C9300L-48T-4X 16.12.3a CAT9K_IOSXE INSTALL

Configuration register is 0x102

1
yesongow
iT邦大師 1 級 ‧ 2021-03-18 09:07:19

write erase這指令不能用了嗎?

是補習班教你用factory-reset all嗎?

我要發表回答

立即登入回答