15

I want to factory reset IOS-XR. The router used is ASR9000

I'm used to do that easily in IOS doing config-register 0x2102, write erase followed by a reload.

I search on documentation, but found no explicit information. What is the correct method for doing a factory reset on the ASR9k running IOS-XR?

13

commit replace does the trick of nuking the config.

I found the commit history still shows the previous commits in a list, but you cant see the contents of them.

9

You must commit replace with an empty config file. This will wipe the config out completely. Also keep in mind the admin context. You'll need to go into the admin context and commit replace that config as well if you want to reset the settings inside the admin context.

7

To factory reset the ASR, I found the way here
We only need to apply this command

commit replace best-effort

As we don't have any configuration file target, actual configuration will be substitute with an empty file

Documentation

3

To wipe existing config, and start from default configuration where you will be asked to set initial username and password for console connection you need just few commands:

ASR9010#admin
ASR9010(admin)#configure
ASR9010(admin-config)#commit replace

After this command just reload the device. This works very well for me on ASR9010

1

Sorry, that last post included a question because I saw an issue with all of the above techniques. The method given above does not take into account config rollbacks and log files. All places where identifiable data may be present. I was looking for a way I could blank the system for resale. A complete factory reset. These things use hard disks where information can be squirrelled away.

The only way I have found to completely clear the system information on an ASR9k RSP is to do a turbo boot. The process is documented on the TAC website, and involves loading a VM by TFTP or USB into ram from the rommon prompt. You need to be sure to tell it to format and clear the admin data. When it comes back, you will need to load the system modules you need, but it comes up like factory with setting the root user and password.

If you are looking for a clean RSP, that's the only way to do it. Otherwise, there is config all over the place in there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.