시스코 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: