Junos – Password Recovery, Zeroize, and Loading a Configuration, and other basics

Guess it is time to get the party started! Just a quick note, there is a vendor that I have used in the past to get hardware for labs, if you are interested in hardware, please let me know and I will put you in touch with them. You can deal with them directly so that you know you are getting their best price.

I am not going to cover how to recovery a lost root password, but if you need that information here is a link to the Juniper KB Article KB17565 below. This article is for Junos 10.x and higher.
http://kb.juniper.net/InfoCenter/index?page=content&id=KB17565
What I will cover though is getting your Junos device up and running after you recover the root password. First thing you will want to do is zeroize the device, this will erase all configuration information and reboot the device.
root@J1> request system zeroize
warning: System will be rebooted and may not boot without configuration
Erase all data, including configuration and log files? [yes,no] (no) yes
warning: zeroizing re0
root@J1> Waiting (max 60 seconds) for system process vnlru_mem’ to stop…done</span> <span style="color: #0000ff;">Waiting (max 60 seconds) for system process vnlru’ to stop…done
Waiting (max 60 seconds) for system process bufdaemon’ to stop…done</span> <span style="color: #0000ff;">Waiting (max 60 seconds) for system process syncer’ to stop…
Syncing disks, vnodes remaining…0 0 0 done
syncing disks… All buffers synced.
Uptime: 5m9s
Rebooting…
[— Removed the reboot cycle output for this document —-]
Once the device finishes rebooting, you will be at the Amnesiac prompt. This is the prompt the system give you when there is no configuration on the device. Almost like is it brand new, out of the box!
Amnesiac (ttyu0)
login: root
(Note: No prompt for a root password as the system is not yet configured)
Fryguy's Blog



