시스코 c9200L 스위치 공장초기화 및 OS설치.

시스코 c9200l 스위치 공장초기화 및 복구(OS설치).

설정만 지우려고 했지만, 실수로 공장 초기화를 진행해 버렸다!!!

참고로, factory-reset all 명령은 모든 로그, 사용자정보, 설정, 부팅 이미지를 포함한 모든 IOS 이미지등 모두 지워버려서, 스위치가 부팅되지 않는다.

중간에 취소할 기회가 있었는데, 아래 경고문을 읽어보지 않고 진행을 해 버렸다! ;^^

Switch_5F#factory-reset all 
The factory reset operation is irreversible for all operations. Are you sure? [confirm]
 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: User added rommon variables
 5: OBFL logs
 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]
Chassis 1 reloading, reason - Factory Reset

 Protection key not found
Switch_5F#Platform Info Send - Switch Config Message LIPC Message Send failed: Broken pipe 
Feb 20 08:57:43.920: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting: reload fp action requested
Feb 20 08:57:44.366: %PMAN-5-EXITACTION: C0/0: pvp: Process manager is exiting: reload cc action requested
Feb 20 08:57:48.568: %PMAN-5-EXITACTION: R0/0: pvp: Process manager is exiting: 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 - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd1 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   4096/204800             done                            
Creating filesystem with 204800 4k blocks and 51296 inodes
Filesystem UUID: 97abf68b-5e65-4b4d-bcad-4397e3367531
Superblock backups stored on blocks: 
32768, 98304, 163840

Allocating group tables: 0/7   done                            
Writing inode tables: 0/7   done                            
Writing superblocks and filesystem accounting information: 0/7   done
% FACTORYRESET - Mounting Back sd1 [0]
% FACTORYRESET - Factory Reset Done for sd1
 
% FACTORYRESET - Unmounting sd3
% FACTORYRESET - Cleaning Up sd3 [0]
% FACTORYRESET - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd3 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   4096/485376             done                            
Creating filesystem with 485376 4k blocks and 121440 inodes
Filesystem UUID: 132f9efb-4852-46af-86bd-9ee7c420f8e5
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912

Allocating group tables:  0/15     done                            
Writing inode tables:  0/15     done                            
Writing superblocks and filesystem accounting information:  0/15     done
% FACTORYRESET - Mounting Back sd3 [0]
% FACTORYRESET - Factory Reset Done for sd3
 
% FACTORYRESET - Unmounting sd6
% FACTORYRESET - Cleaning Up sd6 [0]
% FACTORYRESET - erase In progress.. please wait for completion...
% FACTORYRESET - write zero...
% FACTORYRESET - finish erase
 
% FACTORYRESET - Making File System sd6 [0]
mke2fs 1.43-WIP (18-May-2015)
Discarding device blocks:   1024/131072             done                            
Creating filesystem with 131072 1k blocks and 32768 inodes
Filesystem UUID: b378204e-35c9-45e9-8fd1-cb36874f91bf
Superblock backups stored on blocks: 
8193, 24577, 40961, 57345, 73729

Allocating group tables:  0/16     done                            
Writing inode tables:  0/16     done                            
Writing superblocks and filesystem accounting information:  0/16     done
% FACTORYRESET - Mounting Back sd6 [0]
% FACTORYRESET - Factory Reset Done for sd6
% FACTORYRESET - Lic Clean UP
% FACTORYRESET - Lic Clean Successful...
% FACTORYRESET - Clean Up Successful...
% FACTORYRESET - Check for usbflash/sdflash devices...
ReloadReason=Factory Reset
Factory reset successful. Rebooting...

Initializing Hardware...
NOTICE: Please reset the device for the new MAC_ADDR value to take effect.


System Bootstrap, Version 17.9.1r [FC13], RELEASE SOFTWARE (P) 
Compiled Thu 06/08/2023 20:36:25 by rel

Current ROMMON image : Primary
C9200L-48P-4X 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:

스위치를 공장 초기화 했으니, 이제 다시 사용하기위해서는 OS를 설치해야 한다.

부팅을 시도하면 아래처럼 switch: 프롬프트가 보이며 더 이상 진행되지 않는다.

switch: 

스위치 기종에 맞는 IOS-XE 이미지 파일(여기서는 cat9k_lite_iosxe.17.09.04a.SPA.bin 파일)을 준비해야 한다. 시스코 다운로드센터에서 다운로드 받을 수 있다.
그리고, 이 파일을 usb 드라이브에 복사해 놓는다. usb는 FAT로 포맷해야만 스위치에서 파일시스템을 인식한다.
이 드라이브를 스위치의 usb에 연결하고, 파일시스템을 인식하는지 확인한다.

switch: dir usbflash0:

Attributes        Size         Name
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
D-HS-              0   System Volume Information
----A      470682931   cat9k_lite_iosxe.17.09.04a.SPA.bin

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

OS 이미지를 스위치 flash에 복사하려고 했으나, 복사가 되지 않는다.

switch: copy usbflash0:cat9k_lite_iosxe.17.09.04a.SPA.bin flash:
Unsupported destination device/filesystem.

일단, usb 드라이브의 os 이미지로 부팅을 진행한다.

switch: boot usbflash0:cat9k_lite_iosxe.17.09.04a.SPA.bin

boot: attempting to boot from [usbflash0:cat9k_lite_iosxe.17.09.04a.SPA.bin]
boot: reading file cat9k_lite_iosxe.17.09.04a.SPA.bin
#############################################################################################################################################

Both links down, not waiting for other switches
Switch number is 1

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           Cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.9.4a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2023 by Cisco Systems, Inc.
Compiled Fri 20-Oct-23 10:33 by mcpre


This software version supports only Smart Licensing as the software licensing mechanism.


PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR
LICENSE KEY PROVIDED FOR ANY CISCO SOFTWARE PRODUCT, PRODUCT FEATURE,
AND/OR SUBSEQUENTLY PROVIDED SOFTWARE FEATURES (COLLECTIVELY, THE
"SOFTWARE"), AND/OR USING SUCH SOFTWARE CONSTITUTES YOUR FULL
ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU
ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN.

Your use of the Software is subject to the Cisco End User License Agreement
(EULA) and any relevant supplemental terms (SEULA) found at
http://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html.

You hereby acknowledge and agree that certain Software and/or features are
licensed for a particular term, that the license to such Software and/or
features is valid only for the applicable term and that such Software and/or
features may be shut down or otherwise terminated by Cisco after expiration
of the applicable license term (e.g., 90-day trial period). Cisco reserves
the right to terminate any such Software feature electronically or by any
other means available. While Cisco may provide alerts, it is your sole
responsibility to monitor your usage of any such term Software feature to
ensure that your systems and networks are prepared for a shutdown of the
Software feature.



FIPS: Flash Key Check : Key Not Found, FIPS Mode Not Enabled
cisco C9200L-48P-4X (ARM64) processor with 519520K/3071K bytes of memory.
Processor board ID FOC27501FJ1
2048K bytes of non-volatile configuration memory.
1973316K bytes of physical memory.
819200K bytes of Crash Files at crashinfo:.
1941504K bytes of Flash at flash:.
1980416K bytes of USB Flash at usbflash0:.

Base Ethernet MAC Address          : 24:d5:e4:98:da:00
Motherboard Assembly Number        : 73-102108-04
Motherboard Serial Number          : FOC27501FJ1
Model Revision Number              : H0
Motherboard Revision Number        : B0
Model Number                       : C9200L-48P-4X
System Serial Number               : FOC27501FJ1
CLEI Code Number                   : INM5310ARB


Press RETURN to get started!

부팅후에 아래처럼 파일시프템과 파일들이 만들어 진 것을 볼 수 있다. 하지만, 부팅에 필요한 파일들은 없는 상태다.

Switch#dir flash:
Directory of flash:/

64856   -rw-          2097152  Mar 21 2024 04:15:58 +00:00  nvram_config_bkup
64854   -rw-          2097152  Mar 21 2024 04:15:58 +00:00  nvram_config
64862   -rw-                0  Mar 21 2024 04:15:53 +00:00  dope_hist
64851   drwx             4096  Mar 21 2024 04:15:53 +00:00  license_evlog
64847   -rw-            15528  Mar 21 2024 04:15:53 +00:00  rdope_out.txt
64771   -rw-               89  Mar 21 2024 04:15:50 +00:00  rdope.log
64770   drwx             4096  Mar 21 2024 04:15:40 +00:00  .prst_sync
64817   -rw-           137940  Mar 21 2024 04:14:32 +00:00  memleak.tcl
64861   -rw-             2157  Mar 21 2024 04:14:32 +00:00  boothelper.log
64813   drwx             4096  Mar 21 2024 04:14:28 +00:00  dc_profile_dir
64783   -rw-               74  Mar 21 2024 04:14:07 +00:00  bootloader_evt_handle.log
64775   drwx             4096  Mar 21 2024 04:14:05 +00:00  .installer
64772   -rw-              304  Mar 21 2024 02:44:32 +00:00  lateshutdown.log
64845   drwx             4096  Mar 21 2024 02:43:22 +00:00  .dbpersist
64857   drwx             4096  Mar 21 2024 02:31:57 +00:00  pnp-tech
64779   drwx             4096  Mar 21 2024 02:31:17 +00:00  core
64850   drwx             4096  Mar 21 2024 02:30:54 +00:00  pnp-info
64848   drwx             4096  Mar 21 2024 02:30:54 +00:00  onep
64833   -rw-             1261  Mar 21 2024 02:29:39 +00:00  Baltimore.ca
64832   -rw-             1606  Mar 21 2024 02:29:39 +00:00  StarfieldServicesRootCA.ca
64831   -rw-             1924  Mar 21 2024 02:29:39 +00:00  ISRGRootX1CrossSignDST.ca
64830   -rw-             1338  Mar 21 2024 02:29:39 +00:00  DigiCertGlobalRootCA.ca
64816   -rw-             2157  Mar 21 2024 02:29:35 +00:00  boothelper.log.old
64827   drwx             4096  Mar 21 2024 02:29:35 +00:00  .rommon_sync
64820   drwx             4096  Mar 21 2024 02:29:35 +00:00  Tbot
64819   drwx             4096  Mar 21 2024 02:29:34 +00:00  fp_cc_crash
64818   drwx             4096  Mar 21 2024 02:29:34 +00:00  sys_report
64815   drwx             4096  Mar 21 2024 02:29:31 +00:00  EDScisco
64789   drwx             4096  Mar 21 2024 02:29:31 +00:00  tech_support
64776   drwx             4096  Mar 21 2024 02:29:07 +00:00  .rollback_timer
64774   -rwx                0  Dec 16 2020 17:25:20 +00:00  mode_event_log
64773   drwx             4096  Dec 16 2020 17:25:20 +00:00  SHARED-IOX

1956839424 bytes total (1847521280 bytes free)

부팅 관련 변수도 존재하지 않는다.

Switch#show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable does not exist
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0

usb에 있는 os 이미지 파일을 flash: 에 복사하면 아래 처럼 복사가 진행된다.

Switch#copy usbflash0:cat9k_lite_iosxe.17.09.04a.SPA.bin flash:
Destination filename [cat9k_lite_iosxe.17.09.04a.SPA.bin]? 
Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
...
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
470682931 bytes copied in 57.004 secs (8257016 bytes/sec)

복사가 완료되면 OS 설치를 진행한다.

Switch#install add file flash:cat9k_lite_iosxe.17.09.04a.SPA.bin activate commit

install_add_activate_commit: START Thu Mar 21 05:35:17 UTC 2024

*Mar 21 05:35:19.293: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_engine: Started install one-shot flash:cat9k_lite_iosxe.17.09.04a.SPA.bin
*Mar 21 05:35:24.612: %SMART_LIC-3-COMM_FAILED: Communications failure with the Cisco Smart License Utility (CSLU) : Unable to resolve server hostname/domain name install_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....

--- Starting initial file syncing ---
Info: Finished copying flash:cat9k_lite_iosxe.17.09.04a.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: 17.09.04a.0.6
install_add_activate_commit: Activating PACKAGE


 [y/n]y
--- Starting Activate ---
Performing Activate on all members

*Mar 21 05:53:43.781: %INSTALL-5-INSTALL_AUTO_ABORT_TIMER_PROGRESS: Switch 1 R0/0: install_mgr: 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



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

Send model notification for install_add_activate_commit before reload
Install will reload the system now!
SUCCESS: install_add_activate_commit  Thu Mar 21 05:55:23 UTC 2024

Switch#
Chassis 1 reloading, reason - Reload command

*Mar 21 05:55:24.350: %INSTALL-5-INSTALL_COMPLETED_INFO: Switch 1 R0/0: install_engine: Completed install one-shot PACKAGE flash:cat9k_lite_iosxe.17.09.04a.SPA.binMar 21 05:55:28.200: %PMAN-5-EXITACTION: C0/0: pvp: Process manager is exiting: reload cc action requested
Mar 21 05:55:28.699: %PMAN-5-EXITACTION: F0/0: pvp: Process manager is exiting: reload fp action requested
Mar 21 05:55:30.886: %PMAN-5-EXITACTION: R0/0: pvp: Process manager is exiting: rp processes exit with reload switch code



Initializing Hardware...


System Bootstrap, Version 17.9.1r [FC13], RELEASE SOFTWARE (P) 
Compiled Thu 06/08/2023 20:36:25 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

##############

Both links down, not waiting for other switches
Switch number is 1

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           Cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.9.4a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2023 by Cisco Systems, Inc.
Compiled Fri 20-Oct-23 10:33 by mcpre


This software version supports only Smart Licensing as the software licensing mechanism.


PLEASE READ THE FOLLOWING TERMS CAREFULLY. INSTALLING THE LICENSE OR
LICENSE KEY PROVIDED FOR ANY CISCO SOFTWARE PRODUCT, PRODUCT FEATURE,
AND/OR SUBSEQUENTLY PROVIDED SOFTWARE FEATURES (COLLECTIVELY, THE
"SOFTWARE"), AND/OR USING SUCH SOFTWARE CONSTITUTES YOUR FULL
ACCEPTANCE OF THE FOLLOWING TERMS. YOU MUST NOT PROCEED FURTHER IF YOU
ARE NOT WILLING TO BE BOUND BY ALL THE TERMS SET FORTH HEREIN.

Your use of the Software is subject to the Cisco End User License Agreement
(EULA) and any relevant supplemental terms (SEULA) found at
http://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html.

You hereby acknowledge and agree that certain Software and/or features are
licensed for a particular term, that the license to such Software and/or
features is valid only for the applicable term and that such Software and/or
features may be shut down or otherwise terminated by Cisco after expiration
of the applicable license term (e.g., 90-day trial period). Cisco reserves
the right to terminate any such Software feature electronically or by any
other means available. While Cisco may provide alerts, it is your sole
responsibility to monitor your usage of any such term Software feature to
ensure that your systems and networks are prepared for a shutdown of the
Software feature.



FIPS: Flash Key Check : Key Not Found, FIPS Mode Not Enabled
cisco C9200L-48P-4X (ARM64) processor with 519464K/3071K bytes of memory.
Processor board ID FOC27501FJ1
2048K bytes of non-volatile configuration memory.
1973316K bytes of physical memory.
819200K bytes of Crash Files at crashinfo:.
1941504K bytes of Flash at flash:.

Base Ethernet MAC Address          : 24:d5:e4:98:da:00
Motherboard Assembly Number        : 73-102108-04
Motherboard Serial Number          : FOC27501FJ1
Model Revision Number              : H0
Motherboard Revision Number        : B0
Model Number                       : C9200L-48P-4X
System Serial Number               : FOC27501FJ1
CLEI Code Number                   : INM5310ARB



Press RETURN to get started!

설치가 완료되면 자동으로 재부팅이 된다.

아래 명령어로 확인 해 본다.

Switch>en
Switch#show install summary
[ Switch 1 ] Installed Package(s) Information:
State (St): I - Inactive, U - Activated & Uncommitted,
            C - Activated & Committed, D - Deactivated & Uncommitted
--------------------------------------------------------------------------------
Type  St   Filename/Version
--------------------------------------------------------------------------------
IMG   C    17.09.04a.0.6

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------


Switch#sh install log
[0|install_op_boot]: START Thu Mar 21 05:56:59 Universal 2024
[0|install_op_boot(INFO, )]: Mount IMG INI state base image
[0|install_op_boot]: END SUCCESS  Thu Mar 21 05:57:00 Universal 2024

Switch#

버전을 확인해 보면, Mode가 INSTALL로 보여야 한다.

Switch#show version
Cisco IOS XE Software, Version 17.09.04a
Cisco IOS Software [Cupertino], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.9.4a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2023 by Cisco Systems, Inc.
Compiled Fri 20-Oct-23 10:33 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2023 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 17.9.1r [FC13], RELEASE SOFTWARE (P) 

Switch uptime is 1 minute
Uptime for this control processor is 3 minutes
System returned to ROM by Image Install
System image file is "flash:packages.conf"
Last reload reason: Image Install



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


Smart Licensing Status: Smart Licensing Using Policy

cisco C9200L-48P-4X (ARM64) processor with 519464K/3071K bytes of memory.
Processor board ID FOC27501FJ1
1 Virtual Ethernet interface
48 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
1973316K bytes of physical memory.
819200K bytes of Crash Files at crashinfo:.
1941504K bytes of Flash at flash:.

Base Ethernet MAC Address          : 24:d5:e4:98:da:00
Motherboard Assembly Number        : 73-102108-04
Motherboard Serial Number          : FOC27501FJ1
Model Revision Number              : H0
Motherboard Revision Number        : B0
Model Number                       : C9200L-48P-4X
System Serial Number               : FOC27501FJ1
CLEI Code Number                   : INM5310ARB


Switch Ports Model              SW Version        SW Image              Mode   
------ ----- -----              ----------        ----------            ----   
*    1 52    C9200L-48P-4X      17.09.04a         CAT9K_LITE_IOSXE      INSTALL


Configuration register is 0x102

Switch#
*Mar 21 06:00:09.745: %SMART_LIC-3-COMM_FAILED: Communications 

기타사항.
dir flash: 명령을 실행해 보면, pkg 파일들과, 부팅에 필요한 packages.conf 파일이 보인다.
이미지 파일은 더이상 필요 없으므로 삭제해도 된다.

Switch#dir flash:
Directory of flash:/

64775   drwx             4096  Mar 21 2024 06:00:25 +00:00  .installer
64856   -rw-          2097152  Mar 21 2024 05:58:47 +00:00  nvram_config_bkup
64854   -rw-          2097152  Mar 21 2024 05:58:47 +00:00  nvram_config
64852   -rw-                0  Mar 21 2024 05:58:47 +00:00  dope_hist
64847   -rw-            15528  Mar 21 2024 05:58:47 +00:00  rdope_out.txt
64771   -rw-               89  Mar 21 2024 05:58:44 +00:00  rdope.log
64851   drwx             4096  Mar 21 2024 05:58:42 +00:00  license_evlog
64770   drwx             4096  Mar 21 2024 05:58:31 +00:00  .prst_sync
64817   -rw-           137940  Mar 21 2024 05:57:28 +00:00  memleak.tcl
64814   -rw-             2157  Mar 21 2024 05:57:28 +00:00  boothelper.log
64813   drwx             4096  Mar 21 2024 05:57:24 +00:00  dc_profile_dir
64783   -rw-              185  Mar 21 2024 05:57:04 +00:00  bootloader_evt_handle.log
64772   -rw-              304  Mar 21 2024 05:55:36 +00:00  lateshutdown.log
64776   drwx             4096  Mar 21 2024 05:54:49 +00:00  .rollback_timer
64929   -rw-         44255443  Mar 21 2024 05:41:48 +00:00  cat9k_lite-rpboot.17.09.04a.SPA.pkg
64925   -rw-             4917  Mar 21 2024 05:41:48 +00:00  packages.conf
64928   -rw-         14860288  Mar 21 2024 05:40:06 +00:00  cat9k_lite-webui.17.09.04a.SPA.pkg
64927   -rw-          5636096  Mar 21 2024 05:40:05 +00:00  cat9k_lite-srdriver.17.09.04a.SPA.pkg
64926   -rw-        406425600  Mar 21 2024 05:40:05 +00:00  cat9k_lite-rpbase.17.09.04a.SPA.pkg
64861   -rw-             2157  Mar 21 2024 05:32:36 +00:00  boothelper.log.old
64903   -rw-        470682931  Mar 21 2024 04:25:29 +00:00  cat9k_lite_iosxe.17.09.04a.SPA.bin
64845   drwx             4096  Mar 21 2024 02:43:22 +00:00  .dbpersist
64857   drwx             4096  Mar 21 2024 02:31:57 +00:00  pnp-tech
64779   drwx             4096  Mar 21 2024 02:31:17 +00:00  core
64850   drwx             4096  Mar 21 2024 02:30:54 +00:00  pnp-info
64848   drwx             4096  Mar 21 2024 02:30:54 +00:00  onep
64833   -rw-             1261  Mar 21 2024 02:29:39 +00:00  Baltimore.ca
64832   -rw-             1606  Mar 21 2024 02:29:39 +00:00  StarfieldServicesRootCA.ca
64831   -rw-             1924  Mar 21 2024 02:29:39 +00:00  ISRGRootX1CrossSignDST.ca
64830   -rw-             1338  Mar 21 2024 02:29:39 +00:00  DigiCertGlobalRootCA.ca
64827   drwx             4096  Mar 21 2024 02:29:35 +00:00  .rommon_sync
64820   drwx             4096  Mar 21 2024 02:29:35 +00:00  Tbot
64819   drwx             4096  Mar 21 2024 02:29:34 +00:00  fp_cc_crash
64818   drwx             4096  Mar 21 2024 02:29:34 +00:00  sys_report
64815   drwx             4096  Mar 21 2024 02:29:31 +00:00  EDScisco
64789   drwx             4096  Mar 21 2024 02:29:31 +00:00  tech_support
64774   -rwx                0  Dec 16 2020 17:25:20 +00:00  mode_event_log
64773   drwx             4096  Dec 16 2020 17:25:20 +00:00  SHARED-IOX

1956839424 bytes total (904654848 bytes free)

Switch#delete flash:cat9k_lite_iosxe.17.09.04a.SPA.bin
Delete filename [cat9k_lite_iosxe.17.09.04a.SPA.bin]? 
Delete flash:/cat9k_lite_iosxe.17.09.04a.SPA.bin? [confirm]

잘 된다!!!

참고문서: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/17-7/configuration_guide/sys_mgmt/b_177_sys_mgmt_9200_cg/performing_device_setup_configuration.html#concept_r5q_wfq_n1b

답글 남기기

Your email address will not be published.