cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6442
Views
0
Helpful
8
Replies

Removing configuration and resetting password on A9K-RSP-4G

nesttech1
Level 1
Level 1

We have completed the TURBOBOOT and updated the image version, but we need to remove all prior configuration and password.

What is the procedure for this?

2 Accepted Solutions

Accepted Solutions

smilstea
Cisco Employee
Cisco Employee

Hi,

 

Xander and I have put together this document outlining the various methods of password recovery.

https://supportforums.cisco.com/docs/DOC-15870

 

Let me know if that covers what you need.

 

Thanks,

Sam

View solution in original post

Hi Michael,

 

For that the following variables should be set:

TURBOBOOT=on,disk0:

MEDIA_FORMAT=disk0:,QNX4

 

Note: Do not use the format or clean option with turboboot or confreg 0x2142. If you do you will be unable to write the new username/password to disk and the router will have to be reloaded to recover the issue. This has to do with both turboboot and media format trying to format the disk / filesystem

 

I will edit the document to include these steps as it may prove useful for other people.

 

Thanks,

Sam

View solution in original post

8 Replies 8

smilstea
Cisco Employee
Cisco Employee

Hi,

 

Xander and I have put together this document outlining the various methods of password recovery.

https://supportforums.cisco.com/docs/DOC-15870

 

Let me know if that covers what you need.

 

Thanks,

Sam

Hi Sam,

Yes, I found this document and was able to create a generic ADMIN password.

However, the A9K-RSP-4G still has old configuration from the previous user.

Is there a way to do a TURBOBOOT with the new image that completely wipes out all previous settings and configuration files? 

Thank you,

Michael

Hi Michael,

 

Yes, you can.

We also wrote this document:

https://supportforums.cisco.com/document/123576/asr9000xr-understanding-turboboot-and-initial-system-bring#rsp

 

Were you possibly using the 'clean' option before?

 

Thanks,

Sam

Hi Sam,

Yes, I have read this document.

I did not use the "clean" or "format" option yet.  But the document states that in both cases the configuration files are saved:

format tells us to replace the OS completely except for the admin configuration

clean tells us to replace the OS completely, but other files such as the admin or exec configuration are saved

Does the "clean" option remove all previous configuration?

Thank you,

Michael.

Hi Michael,

 

For that the following variables should be set:

TURBOBOOT=on,disk0:

MEDIA_FORMAT=disk0:,QNX4

 

Note: Do not use the format or clean option with turboboot or confreg 0x2142. If you do you will be unable to write the new username/password to disk and the router will have to be reloaded to recover the issue. This has to do with both turboboot and media format trying to format the disk / filesystem

 

I will edit the document to include these steps as it may prove useful for other people.

 

Thanks,

Sam

Hi Sam,

Thank you for your reply and the MEDIA_FORMAT command.

I understand your note about not using the "clean" or "format" option with TURBOBOOT.

I don't understand the "confreg 0x2142" command.  At this time, the configuration register of the router is 0x102.  This is the output of the "sh ver" command.  What should be the default configuration register? 

Thank you,

Michael.

Oops I mistyped, I meant confreg 0x142 which is used for password recovery.

 

During the turboboot the config-register is set to 0x102.

Table 1 on this page has the details of the other common ones used:

http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-2/system_management/command_reference/b_sysman_cr42asr9k/b_sysman_cr42asr9k_chapter_01.html

 

Thanks,

Sam

Hi Sam,

I have followed your procedure and everything worked perfectly.

Thank you again for your help.

Michael.