I am trying to do the equivilent of the Cisco Write Erase on an ASA. I do know about:
load factory-default
request system zeroize
request system zeroize media
I have tried all the commands. All return the device to basic default configuration on the device with items that will need to be deleted. Items like IP addresses on interfaces, DNS entries, and DHCP. I was looking to start with a clean slate.
I am working on a project that uses scripts that generate configurations for site to site tunnels. The script generates everything needed to setup tunnels using a template and variable file. The output includes a device configuration, client configurations (strongSwan and AnyConnect), CA cert, identity certificates and keys for both clients and network devices. The client devices run debian linux and configuration for the clients is pushed from a server. It works well.
I would like to adapt this to the SRX. If you know your variables a Cisco ASA or Aruba VPN device can be setup quickly with a simple cut and paste from the console. There are more automated ways of doing this, but I don't currently have the time to invest in a superior solution.
So if you can't remove the factory default settings, then I will have to remove them in a different manner. Thanks for reading this.