12-28-2023 11:59 PM
Hi,
We recently upgraded a c9500-48Y4C to 17.9.4a. This upgraded ROMMON to 17.8.1r[FC1]. We are trying to do a factory reset by changing the configuration register value to 0x2142 in ROMMON mode. But we don't see any commands that support it:
rommon 14 > ?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
alias Set and display aliases command
boot Load and boot an executable image
cat Concatenate (type) file(s)
copy Copy a file
date Show or Set system date
delete delete file(s)
dir List files in directories
dns-lookup Send DNS standard query packets
help Present list of available commands
history Monitor command history
md5 Compute MD5 checksum of a file
mkdir create directory(ies)
meminfo Main memory information
net-show Display current network configuration
ping Send ICMP ECHO_REQUEST packets to a network host
rename Rename a file/directory
reset Reset the system
rmdir delete directory(ies)
set Set or display environment variables
unalias Unset an alias
unset Unset one or more environment variables
version Display boot loader version
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rommon 15 >
Did something change about the procedure of factory reset on these switches ?
Solved! Go to Solution.
12-29-2023 12:22 AM
In ROMMON, enter the following:
SWITCH_IGNORE_STARTUP_CFG=1
Reboot the switch.
Do not forget to normalize the config-registry:
conf t
no system ignore startupconfig switch all
end
wr
12-29-2023 12:10 AM
If the device booting normally and you have # prompt you can reset from that mode, you do not need to go in to ROMMON.
Note : all means it remove IOS image also.
12-29-2023 12:16 AM
Sorry I didn't make it clear. We are trying to factory reset the configuration not the device itself
12-29-2023 12:22 AM
In ROMMON, enter the following:
SWITCH_IGNORE_STARTUP_CFG=1
Reboot the switch.
Do not forget to normalize the config-registry:
conf t
no system ignore startupconfig switch all
end
wr
12-29-2023 05:21 AM
Worked perfectly. Thanks
12-29-2023 02:32 AM
yes that configuration document show you the information :
# factory-reset
config ( Resets the startup configurations. )
Or you like to ignore the startup config
At the bootloader (switch:
) prompt, run the SWITCH_IGNORE_STARTUP_CFG=1
command.
switch: SWITCH_IGNORE_STARTUP_CFG=1
Use boot to boot the switch via a method described in the section titled Options to Boot a Switch Out of the Bootloader.
After the switch has booted, you can use the unconfigured switch to recover your startup configuration from the flash file system, via the copy:startup-config <filepath://>
command. After you have the switch configured as desired, issue the no system ignore startupconfig switch all
command and the write memory
command from the exec
prompt to allow the switch to load the startup configuration on future bootup.
Caution: If you do not issue no system ignore startupconfig switch all
and write memory
, the switch boots with no configuration on future reloads.
should work as below guided :
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