cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1347
Views
0
Helpful
1
Replies

How can I restore the C9200 to factory defaults?

risa
Level 1
Level 1

I want to factory reset my C9200L-24P-4G .
But, when I did show flash: on C9200, a lot of files were created.
How can I reset show flush: on C9200 to factory default?

Switch#show flash:
-#- --length-- ---------date/time--------- path
2 2149 Apr 20 2023 02:41:33.0000000000 +00:00 boothelper.log
3 2097152 Apr 20 2023 02:44:38.0000000000 +00:00 nvram_config
4 4096 Apr 20 2023 02:44:21.0000000000 +00:00 .installer
5 5 Feb 03 2023 01:45:37.0000000000 +00:00 .installer/install_global_trans_lock
6 58 Apr 20 2023 02:42:13.0000000000 +00:00 .installer/watchlist
7 10 Feb 03 2023 01:45:41.0000000000 +00:00 .installer/install_state
8 4096 Feb 03 2023 01:52:42.0000000000 +00:00 .installer/rollback
9 4096 Feb 03 2023 01:52:42.0000000000 +00:00 .installer/rollback/rb_points
10 4096 Feb 03 2023 01:46:07.0000000000 +00:00 .installer/rollback/rb_points/2
11 4915 Feb 03 2023 01:45:42.0000000000 +00:00 .installer/rollback/rb_points/2/packages.conf
12 6 Feb 03 2023 01:45:42.0000000000 +00:00 .installer/rollback/rb_points/2/bootdir
13 660 Feb 03 2023 01:46:07.0000000000 +00:00 .installer/rollback/rb_points/2/pkginfo
14 0 Feb 03 2023 01:46:07.0000000000 +00:00 .installer/rollback/rb_points/2/patch0.sta
15 10 Feb 03 2023 01:46:07.0000000000 +00:00 .installer/rollback/rb_points/2/patch.sta
16 56 Feb 03 2023 01:52:42.0000000000 +00:00 .installer/rollback/rollback_points.txt
17 891 Feb 03 2023 01:37:32.0000000000 +00:00 .installer/install_add_oper.log
18 0 Feb 03 2023 01:33:31.0000000000 +00:00 .installer/.install_add_pkg_list.prev.txt
19 4096 Feb 03 2023 01:45:41.0000000000 +00:00 .rollback_timer
20 4096 Feb 03 2023 01:48:10.0000000000 +00:00 core
21 4096 Feb 03 2023 01:48:10.0000000000 +00:00 core/modules
22 1 Apr 20 2023 02:03:23.0000000000 +00:00 core/.callhome
23 4096 Sep 18 2022 09:23:00.0000000000 +00:00 .USWAP
24 4096 Apr 20 2023 02:46:28.0000000000 +00:00 .USWAP/rp
25 4096 Apr 20 2023 02:45:35.0000000000 +00:00 .USWAP/rp/sif_mgr
26 7487488 Apr 20 2023 02:45:35.0000000000 +00:00 .USWAP/rp/sif_mgr/5123.uswap
27 4096 Apr 20 2023 02:45:35.0000000000 +00:00 .USWAP/rp/stack_mgr
28 704512 Apr 20 2023 02:45:35.0000000000 +00:00 .USWAP/rp/stack_mgr/5257.uswap
29 4096 Apr 20 2023 02:45:38.0000000000 +00:00 .USWAP/rp/keyman
30 241664 Apr 20 2023 02:45:38.0000000000 +00:00 .USWAP/rp/keyman/7427.uswap
31 4096 Apr 20 2023 02:45:39.0000000000 +00:00 .USWAP/rp/bt_logger
32 585728 Apr 20 2023 02:45:39.0000000000 +00:00 .USWAP/rp/bt_logger/7548.uswap
33 4096 Apr 20 2023 02:45:40.0000000000 +00:00 .USWAP/rp/lman
34 303104 Apr 20 2023 02:45:40.0000000000 +00:00 .USWAP/rp/lman/7708.uswap
35 4096 Apr 20 2023 02:45:43.0000000000 +00:00 .USWAP/rp/btman
36 249856 Apr 20 2023 02:45:43.0000000000 +00:00 .USWAP/rp/btman/7839.uswap
37 4096 Apr 20 2023 02:45:57.0000000000 +00:00 .USWAP/rp/cmand
38 7966720 Apr 20 2023 02:46:58.0000000000 +00:00 .USWAP/rp/cmand/5687.uswap
39 4096 Apr 20 2023 02:46:13.0000000000 +00:00 .USWAP/rp/install_mgr
40 258048 Apr 20 2023 02:46:13.0000000000 +00:00 .USWAP/rp/install_mgr/11018.uswap
41 4096 Apr 20 2023 02:46:13.0000000000 +00:00 .USWAP/rp/hman
42 294912 Apr 20 2023 02:47:12.0000000000 +00:00 .USWAP/rp/hman/7955.uswap
43 4096 Apr 20 2023 02:46:15.0000000000 +00:00 .USWAP/rp/service_mgr
44 258048 Apr 20 2023 02:46:15.0000000000 +00:00 .USWAP/rp/service_mgr/17401.uswap
45 4096 Apr 20 2023 02:46:16.0000000000 +00:00 .USWAP/rp/cmm
46 241664 Apr 20 2023 02:46:16.0000000000 +00:00 .USWAP/rp/cmm/18032.uswap
47 4096 Apr 20 2023 02:46:19.0000000000 +00:00 .USWAP/rp/dbm
48 1880064 Apr 20 2023 02:46:19.0000000000 +00:00 .USWAP/rp/dbm/18760.uswap
49 4096 Apr 20 2023 02:46:21.0000000000 +00:00 .USWAP/rp/cli_agent
50 1212416 Apr 20 2023 02:46:21.0000000000 +00:00 .USWAP/rp/cli_agent/19023.uswap
51 4096 Apr 20 2023 02:46:21.0000000000 +00:00 .USWAP/rp/repm
52 335872 Apr 20 2023 02:46:21.0000000000 +00:00 .USWAP/rp/repm/19700.uswap
53 4096 Apr 20 2023 02:46:22.0000000000 +00:00 .USWAP/rp/plogd
54 237568 Apr 20 2023 02:46:22.0000000000 +00:00 .USWAP/rp/plogd/20102.uswap
55 4096 Apr 20 2023 02:46:23.0000000000 +00:00 .USWAP/rp/psd
56 598016 Apr 20 2023 02:46:23.0000000000 +00:00 .USWAP/rp/psd/20232.uswap
57 4096 Apr 20 2023 02:46:23.0000000000 +00:00 .USWAP/rp/linux_iosd-image
58 17997824 Apr 20 2023 02:47:12.0000000000 +00:00 .USWAP/rp/linux_iosd-image/4980.uswap
59 4096 Apr 20 2023 02:46:24.0000000000 +00:00 .USWAP/rp/fman_rp
60 970752 Apr 20 2023 02:46:24.0000000000 +00:00 .USWAP/rp/fman_rp/19877.uswap
61 4096 Apr 20 2023 02:46:27.0000000000 +00:00 .USWAP/rp/tms
62 245760 Apr 20 2023 02:46:27.0000000000 +00:00 .USWAP/rp/tms/20622.uswap
63 4096 Apr 20 2023 02:46:28.0000000000 +00:00 .USWAP/rp/sessmgrd
64 1523712 Apr 20 2023 02:46:28.0000000000 +00:00 .USWAP/rp/sessmgrd/19484.uswap
65 4096 Apr 20 2023 02:46:18.0000000000 +00:00 .USWAP/fp
66 4096 Apr 20 2023 02:45:34.0000000000 +00:00 .USWAP/fp/btman
67 249856 Apr 20 2023 02:47:05.0000000000 +00:00 .USWAP/fp/btman/6425.uswap
68 4096 Apr 20 2023 02:45:39.0000000000 +00:00 .USWAP/fp/fed
69 9830400 Apr 20 2023 02:47:09.0000000000 +00:00 .USWAP/fp/fed/6174.uswap
70 4096 Apr 20 2023 02:46:14.0000000000 +00:00 .USWAP/fp/service_mgr
71 258048 Apr 20 2023 02:46:14.0000000000 +00:00 .USWAP/fp/service_mgr/16542.uswap
72 4096 Apr 20 2023 02:46:18.0000000000 +00:00 .USWAP/fp/fman_fp_image
73 872448 Apr 20 2023 02:46:18.0000000000 +00:00 .USWAP/fp/fman_fp_image/17372.uswap
74 4096 Apr 20 2023 02:46:15.0000000000 +00:00 .USWAP/cc
75 4096 Apr 20 2023 02:46:15.0000000000 +00:00 .USWAP/cc/iomd
76 274432 Apr 20 2023 02:46:15.0000000000 +00:00 .USWAP/cc/iomd/16541.uswap
77 4096 Sep 18 2022 09:22:49.0000000000 +00:00 .CRFT
78 814 Apr 20 2023 02:41:07.0000000000 +00:00 bootloader_evt_handle.log
79 4096 Apr 20 2023 02:42:27.0000000000 +00:00 .prst_sync
80 233 Apr 20 2023 02:41:30.0000000000 +00:00 .prst_sync/log
81 27 Apr 20 2023 02:42:41.0000000000 +00:00 .prst_sync/reload_history
82 5242880 Sep 18 2022 09:23:13.0000000000 +00:00 ssd
83 4096 Sep 18 2022 09:23:13.0000000000 +00:00 ss_disc
84 4096 Sep 18 2022 09:23:13.0000000000 +00:00 tech_support
85 15938 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/igmp-snooping.tcl
86 14178 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/mld-snooping.tcl
87 15828 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/multicast.tcl
88 1330 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/pkt-drop-stats-dump.tcl
89 14047 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/pkt-drop-stats.tcl
90 1365 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-iid-ethernet.tcl
91 2107 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-iid-ipv4.tcl
92 2109 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-iid-ipv6.tcl
93 2729 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv4.tcl
94 2757 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv6.tcl
95 53606 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric-vrf-source.tcl
96 21811 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform-fabric.tcl
97 1548 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/platform_evpn_vxlan.tcl
98 26175 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/port.tcl
99 3215 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/port_dump.tcl
100 9197 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/port_utils.tcl
101 16401 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/stack.tcl
102 4937 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/stackwise-virtual.tcl
103 1496 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/tech-support-confidential.tcl
104 685 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/tech-support-dump.tcl
105 38541 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/unicast.tcl
106 336 Apr 20 2023 02:41:30.0000000000 +00:00 tech_support/utils.tcl
107 4096 Apr 20 2023 02:41:30.0000000000 +00:00 dc_profile_dir
108 295225 Apr 20 2023 02:41:30.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt
109 295225 Apr 20 2023 02:31:58.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt.bkp
110 134899 Apr 20 2023 02:41:33.0000000000 +00:00 memleak.tcl
111 4096 Sep 18 2022 09:23:15.0000000000 +00:00 Tbot
112 117906 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/HealthCheckDebugInfra.py
113 265373 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/L3ParseOutputs.py
114 365279 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/L3DebugInfraAPIs.py
115 155706 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/L2DebugInfraAPIs.py
116 164575 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/L2ParseOutputs.py
117 155706 Apr 20 2023 02:41:33.0000000000 +00:00 Tbot/L2DebugInfraScript.py
118 4096 Sep 18 2022 09:23:15.0000000000 +00:00 sys_report
119 4096 Sep 18 2022 09:23:15.0000000000 +00:00 fp_cc_crash
120 4096 Sep 18 2022 09:23:16.0000000000 +00:00 .rommon_sync
121 838 Apr 20 2023 02:42:52.0000000000 +00:00 .rommon_sync/env_var
122 13 Sep 18 2022 09:23:17.0000000000 +00:00 NVRAM
123 1338 Sep 18 2022 09:23:19.0000000000 +00:00 DigiCertGlobalRootCA.ca
124 1606 Sep 18 2022 09:23:19.0000000000 +00:00 StarfieldServicesRootCA.ca
125 1261 Sep 18 2022 09:23:19.0000000000 +00:00 Baltimore.ca
126 4096 Apr 11 2023 04:11:10.0000000000 +00:00 .dbpersist
127 4096 Apr 11 2023 04:11:10.0000000000 +00:00 .dbpersist/history
128 4096 Apr 20 2023 02:44:39.0000000000 +00:00 .dbpersist/DMI_STATE_DB
129 15861 Apr 20 2023 02:44:39.0000000000 +00:00 .dbpersist/DMI_STATE_DB/DMI_STATE_DB
130 171 Apr 20 2023 02:44:39.0000000000 +00:00 .dbpersist/DMI_STATE_DB/DMI_STATE_DB.meta
131 5191 Apr 20 2023 02:44:39.0000000000 +00:00 .dbpersist/stats
132 15524 Apr 20 2023 02:42:49.0000000000 +00:00 rdope_out.txt
133 89 Apr 20 2023 02:42:47.0000000000 +00:00 rdope.log
134 4096 Sep 18 2022 09:24:24.0000000000 +00:00 onep
135 4096 Sep 18 2022 09:24:24.0000000000 +00:00 onep/apps-cli
136 4096 Sep 18 2022 09:24:25.0000000000 +00:00 pnp-info
137 4096 Apr 20 2023 02:42:37.0000000000 +00:00 license_evlog
138 2999 Sep 18 2022 09:27:31.0000000000 +00:00 license_evlog/SAEventRegular20220918_092446.log
139 2733 Sep 18 2022 09:45:14.0000000000 +00:00 license_evlog/SAEventRegular20220918_094428.log
140 4032 Sep 18 2022 09:51:27.0000000000 +00:00 license_evlog/SAEventRegular20220918_094823.log
141 3934 Feb 03 2023 01:32:26.0000000000 +00:00 license_evlog/SAEventRegular20230203_012158.log
142 3981 Feb 03 2023 02:14:07.0000000000 +00:00 license_evlog/SAEventRegular20230203_014920.log
143 3883 Feb 03 2023 02:20:52.0000000000 +00:00 license_evlog/SAEventRegular20230203_021755.log
144 4086 Apr 07 2023 06:42:41.0000000000 +00:00 license_evlog/SAEventRegular20230407_052516.log
145 3608 Apr 07 2023 07:46:20.0000000000 +00:00 license_evlog/SAEventRegular20230407_073849.log
146 3350 Apr 07 2023 07:50:17.0000000000 +00:00 license_evlog/SAEventRegular20230407_074957.log
147 4637 Apr 11 2023 04:11:10.0000000000 +00:00 license_evlog/SAEventRegular20230407_075515.log
148 3350 Apr 11 2023 04:15:15.0000000000 +00:00 license_evlog/SAEventRegular20230411_041456.log
149 3826 Apr 11 2023 05:59:44.0000000000 +00:00 license_evlog/SAEventRegular20230411_041904.log
150 3724 Apr 11 2023 06:19:24.0000000000 +00:00 license_evlog/SAEventRegular20230411_060457.log
151 3451 Apr 11 2023 06:36:16.0000000000 +00:00 license_evlog/SAEventRegular20230411_062302.log
152 3451 Apr 11 2023 06:58:28.0000000000 +00:00 license_evlog/SAEventRegular20230411_063940.log
153 3877 Apr 12 2023 10:14:40.0000000000 +00:00 license_evlog/SAEventRegular20230411_070150.log
154 3400 Apr 12 2023 10:34:29.0000000000 +00:00 license_evlog/SAEventRegular20230412_103303.log
155 3673 Apr 20 2023 02:15:20.0000000000 +00:00 license_evlog/SAEventRegular20230420_020719.log
156 3656 Apr 20 2023 02:29:35.0000000000 +00:00 license_evlog/SAEventRegular20230420_022111.log
157 3984 Apr 20 2023 02:37:07.0000000000 +00:00 license_evlog/SAEventRegular20230420_023305.log
158 3984 Apr 20 2023 02:44:49.0000000000 +00:00 license_evlog/SAEventRegular20230420_024237.log
159 0 Apr 20 2023 02:42:49.0000000000 +00:00 dope_hist
160 2097152 Apr 20 2023 02:44:38.0000000000 +00:00 nvram_config_bkup
161 4096 Apr 11 2023 04:21:23.0000000000 +00:00 pnp-tech
162 5942 Apr 11 2023 04:21:23.0000000000 +00:00 pnp-tech/pnp-tech-time
163 142108 Apr 11 2023 04:21:24.0000000000 +00:00 pnp-tech/pnp-tech-discovery-summary
164 4915 Feb 03 2023 01:44:28.0000000000 +00:00 packages.conf
165 2149 Apr 20 2023 02:32:01.0000000000 +00:00 boothelper.log.old
166 4096 Feb 03 2023 01:24:39.0000000000 +00:00 cat9k_lite_iosxe.17.06.04.SPA
167 526993055 Feb 03 2023 01:31:59.0000000000 +00:00 cat9k_lite_iosxe.17.06.04.SPA/cat9k_lite_iosxe.17.06.04.SPA.bin
168 463918104 Feb 03 2023 01:36:03.0000000000 +00:00 cat9k_lite-rpbase.17.06.04.SPA.pkg
169 44589635 Feb 03 2023 01:37:28.0000000000 +00:00 cat9k_lite-rpboot.17.06.04.SPA.pkg
170 5342232 Feb 03 2023 01:36:03.0000000000 +00:00 cat9k_lite-srdriver.17.06.04.SPA.pkg
171 13558804 Feb 03 2023 01:36:03.0000000000 +00:00 cat9k_lite-webui.17.06.04.SPA.pkg
731283456 bytes available (1126154240 bytes used)

Switch#

 

Also, the configuration register cannot be changed back from 0x102 to 0x2102, which is a problem.
I would appreciate it if you could also tell me.

Configuration register is 0x102

 

 

1 Reply 1

Leo Laohoo
Hall of Fame
Hall of Fame

The command "factory-reset all" is self explanatory.  The command will, in essence, format the flash and the switch will boot into ROMMON. 

The only way to get the firmware back in is to use the command "emergency-install usbflash0:firmware.bin".  

Review Cisco Networking for a $25 gift card