05-13-2021 01:01 AM
I have Cisco ASA 5506 up & running.
I have SSH access & I want to remotely erase all the configurations & set it to Factory default.
What commands I need to use to do remote factory reset of the Cisco ASA from SSH ?
Please let me know
05-13-2021 01:11 AM
You will lose remote connectivity though!!!
You can use the "write erase" command or "configure factory-default".
More information here - https://networklessons.com/cisco/asa-firewall/cisco-asa-erase-configuration
I suggest being on site to erase the configuration and re-configuring.
05-13-2021 01:16 AM
Thanks.
I cant bring it on site.
After write erase command, for rebooting the device should I use reload command or any other command to reboot the device so that the device becomes factory rest.
05-13-2021 01:18 AM
I am ok to loose the remote connectivity.
05-13-2021 01:20 AM
Yes you'd need to use the "reload" command after "write erase"....but then how do plan to configure remotely if you cannot connect to it?
What exactly is the issue with the ASA that requires resetting, why not remove the configuration that you no longer need?
05-13-2021 01:22 AM
I am going to decomission the device. So I want to do factory reset.
05-13-2021 01:24 AM
@RS19 Ah ok, that makes sense. I just didn't want you to reset the configuration and lose connectivity.
Perhaps also delete the contents of the flash, which may have old configuration backups.
05-13-2021 01:26 AM
Thanks
Could you please let me know how to check the flash & remove the configurations stored in flash ?
05-13-2021 01:33 AM
Use the command "dir" show the contents of flash
Then use "delete flash:/filename" where filename is the name of the file you wish to delete.
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