Juniper SRX240
Start the console session.
Plug in either a serial cable or an ethernet cable with RS-232 adapters at both ends to console port of device from PC COM1 port
Open PuTTY and select "Serial" connection type, leave baud rate (Speed) and other settings as default.
Plug power into device and if a power button exists, turn it on.
Boot into single-user mode
When prompted the SECOND time press the space bar for commandline access ensuring you are at the loader> prompt:
Hit [Enter] to boot immediately, or space bar for command prompt.
Type '?' for a list of commands, 'help' for more detailed help.
loader>
Type the watchdog disable then boot -s commands:
loader> watchdog disable
loader> boot -s
Further output will be followed by a prompt where you type recovery:
System watchdog timer disabled
Enter full pathname of shell or 'recovery' for root password recovery or RETURN
for /bin/sh: recovery
Further output will take you to the root@xxxxx> prompt, the xxxxx being whatever name the machine was given.
Erase all data and reboot to check for licenses.
Type edit to enter configuration mode and then type the load factory-default and delete system commit factory-settings commands:
Starting CLI ...
root@xxxxx> edit
Entering configuration mode
[edit]
root@xxxxx# load factory-default
warning: activating factory configuration
root@xxxxx# delete system commit factory-settings
As a precaution set the password for username root to juniper1 before returning from configuration mode:
[edit]
root@xxxxx# set system root-authentication plain-text-password
New password: juniper1
Retype new password: juniper1
[edit]
root@xxxxx# commit and-quit
commit complete
Exiting configuration mode
root@xxxxx>
Type request system zeroize media and confirm with yes to erase all data including the password you just set. If this process is interrupted by a system freeze or power being cut in some way, log back in as root with the juniper1 password to get back to this step upon powering back up.
root@xxxxx> request system zeroize media
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@xxxxx> Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `vnlru_mem' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...1 1 1 1 0 0 0 0 done
syncing disks... All buffers synced.
Uptime: 6m25s
Rebooting...
cpu_reset: Stopping other CPUs
Allow the system to boot up to the login: prompt and type root which without needing a password will bring you to the root@% prompt:
Amnesiac (ttyu0)
login: root
--- JUNOS 12.1X44-D30.4 built 2014-01-11 03:56:31 UTC
root@%
Type cli to enter the command line interface then type the show system license command:
root@% cli
root> show system license
License usage:
Licenses Licenses Licenses Expiry
Feature name used installed needed
dynamic-vpn 0 2 0 permanent
ax411-wlan-ap 0 2 0 permanent
Licenses installed: none
Copy all the output from the session into your records.
Right-click PuTTY's titlebar, from that dropdown menu click on "Copy All to Clipboard"
Open the file of record certifying the deconfiguration of this device and use CTRL V to paste all the output from PuTTY into that file. Formatting the text with a fixed-width font helps it look more readable.
End the session.
Close PuTTy.