cautious-broccoli
Miscellanious notes and how-to documentation to share with friends.
Juniper SRX340 notes
Recover root password
When the following prompt appears, press the Spacebar to access the router’s bootstrap loader command prompt.
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [kernel] in 9 seconds...
At the following prompt, type boot -s to start the system in single-user mode.
boot -s
At the following prompt, type recovery to start the root password recovery procedure.
“Enter full pathname of shell or ‘recovery’ for root password recovery or RETURN for /bin/sh: recovery”
recovery
Enter configuration mode in the CLI.
cli
Set the root password.
edit
set system root-authentication plain-text-password
At the following prompt, enter the new root password.
your new password
commit password to disk
commit
Exit configuration mode in the CLI.
exit
Exit operational mode in the CLI.
exit
At the prompt, type y to reboot the router.
Disable “Auto Image Upgrade” feature.
Console in and switch to cli
enter delete chassis auto-image-upgrade
and commit
Factory Reset Procedure
Either press and hold the Rest Config
button on the front of the chassis for 15 seconds.
Or console in to the firewall and run the following command from the cli
mode and then enter configure
load factory-default
Next step, set new root password.
set system root-authentication plain-text-password
Type the new password and then commit changes and quit.
commit and-quit
This will factory reset the device, the reason you have to set a new root password is commit
won’t let you commit any changes unless a password is set for root
Juniper SRX340 JunOS Installation Steps
Install new JunOS image via bootloader and USB.
Copy the tgz file to a usb drive.
Reboot the box and stop it at the bootloader, not during u-boot.
The following command will perform a clean install of the JunOS version on the device.
install file:///<image-path-on-usb>
eg
install file:///junos-srxsme-20.2R3-S2.5.tgz
The bootloader verifies, formats and copies the JunOS image to the device in a dual-root partition
configuration.
Disable SRX HA Cluster
To disable chassis cluster, enter the following command:
set chassis cluster disable reboot
To restore the chassis cluster, set the cluster-id by entering the following command:
set chassis cluster cluster-id node node-number reboot
You can also use the below CLI commands to disable chassis cluster:
set chassis cluster cluster-id 0 node 0 reboot
set chassis cluster cluster-id 0 node 1 reboot