cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
545
Views
1
Helpful
5
Replies

No confreg command in ROMMON

RahmaSallm
Level 1
Level 1

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 ?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

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.

balajibandi_0-1703837370736.png

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9500/software/release/16-12/configuration_guide/sys_mgmt/b_1612_sys_mgmt_9500_cg/simplified_factory_reset.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

RahmaSallm
Level 1
Level 1

Sorry I didn't make it clear. We are trying to factory reset the configuration not the device itself

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

Worked perfectly. Thanks

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 :

https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9300-series-switches/216944-troubleshoot-bootloader-rommon-and-pas.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card