SRX Command Reference Guide

TABLE OF CONTENTS

1) PRE-UPGRADE PREPARATION

Essential steps to check current status and clear space before starting an upgrade.
Mode: Operational (>) show system firmware
show version
request system storage cleanup
request system reboot

2) USB PREPARATION & MOUNTING

Manual mounting via shell to access external storage devices.
Mode: Shell (%) mkdir /var/tmp/usb
mount -t msdosfs /dev/da1s1 /var/tmp/usb

3) INSTALL FIRMWARE FROM USB

Commands to initiate the Junos installation directly from a mounted USB drive.
Mode: Operational (>) request system software add /mnt/usb/junos.tgz no-validate reboot

4) COPY IMAGE TO INTERNAL STORAGE

Moving the firmware to the device's internal flash for a more stable installation.
Mode: Shell (%) cp /cf/var/tmp/usb/junos.img /var/tmp/

5) INSTALL FROM INTERNAL STORAGE

Finalizing the software installation using the file stored in /var/tmp/.
Mode: Operational (>) request system software add /var/tmp/junos.img no-validate reboot

6) POST-REBOOT VERIFICATION

Checking the system status and alarms after an upgrade to ensure stability.
Mode: Operational (>) show version
show system alarms

7) BOOTLOADER CLEAN INSTALL

Used when the OS is corrupted; installs Junos directly from the loader prompt.
Mode: Bootloader (loader>) install file:///junos-install-srxsme-mips-64-25.2R1.9.tgz

8) REPARTITION / CLEAN INSTALL

Wipes the disk partitions to ensure a fresh, clean software environment.
Mode: Operational (>) request system software add /var/tmp/usb/junos.tgz partition no-validate reboot

9) TFTP INSTALL FROM LOADER

Emergency recovery via network if local USB ports or files are unavailable.
Mode: Bootloader (loader>) set ipaddr=192.168.1.20
install tftp://192.168.1.10/junos.tgz

10) MIRROR IMAGE TO SECONDARY

Copies the current running OS to the backup partition for redundancy.
Mode: Operational (>) request system snapshot media internal slice alternate

11) U-BOOT / VELOADER UPGRADE

Upgrading the low-level firmware responsible for the initial boot process.
Mode: Shell (%) bootupgrade -u /boot/uboot

12) BACKUP CONFIG TO USB

Saves the current configuration as a rescue point and exports it to USB.
Mode: Operational (>) request system configuration rescue save

13) SRX345 INITIAL CONFIG

Standard baseline configuration for password, hostname, and SSH management.
Mode: Configuration (#) set system root-authentication plain-text-password
commit

14) SOFTWARE UPGRADE (TFTP)

Downloading and installing software via SCP/TFTP from a remote server.
Mode: Shell (%) scp user@host:/path/to/junos.tgz /var/tmp/

15) POST-UPGRADE VERIFICATION

Comprehensive health checks for hardware, environment, and licenses.
Mode: Operational (>) show chassis environment

16) COMMON ALARMS & FIXES

Resolving standard "Auto-recovery" or "Rescue config" system alarms.
Mode: Operational (>) request system auto recovery state save

17) VERIFICATION/TROUBLESHOOTING

Deep dive commands to check system processes and statistics.
Mode: Operational (>) show system processes

18) STORAGE & PARTITIONS

Checking disk space availability and file system health.
Mode: Operational (>) show system storage

19) BACKUP & RESTORE COMMANDS

Saving configuration to a local file and loading it back into the candidate config.
Mode: Operational (>) load override /var/tmp/backup.conf

20) DEBUG & LOGS

Viewing system messages and process logs to find errors.
Mode: Operational (>) show log messages | match ERROR

21) INTERFACE & ROUTING

Checking physical port status, routing tables, and security policies.
Mode: Operational (>) show route summary

A1) CONFIG BACKUP TO INTERNAL STORAGE (CLI)

Saves the active configuration to a specific file in the /var/tmp directory for local staging.
Mode: Operational (>) save /var/tmp/srx_backup.conf

A2) USB MOUNTING VIA CLI (NO SHELL)

Safely mounts an inserted USB drive without needing to enter the FreeBSD shell mode.
Mode: Operational (>) request system mount removable

A3) VERIFY USB CONTENTS (CLI)

Lists all files present on the mounted USB drive to ensure the correct files are present.
Mode: Operational (>) file list /mnt/usb

A4) COPY CONFIGURATION TO USB

Moves the saved configuration file from internal storage to the external USB drive.
Mode: Operational (>) file copy /var/tmp/srx_backup.conf /mnt/usb/

A5) COPY CONFIGURATION FROM USB

Retrieves a backup configuration from the USB drive and places it in the local staging area.
Mode: Operational (>) file copy /mnt/usb/srx_backup.conf /var/tmp/

A6) ENTER CONFIGURATION MODE (EXPLICIT)

Enters the mode where system settings and parameters can be modified.
Mode: Operational (>) configure

A7) REVIEW CONFIGURATION CHANGES BEFORE COMMIT

Shows the difference between the running configuration and your new changes to prevent errors.
Mode: Configuration (#) show | compare

A8) CLI-ONLY BACKUP & RESTORE WORKFLOW

A complete, safe sequence of commands to backup or restore settings without using shell access.
Action: Backup
request system configuration rescue save
save /var/tmp/srx_backup.conf
request system mount removable
file copy /var/tmp/srx_backup.conf /mnt/usb/
Action: Restore
request system mount removable
file copy /mnt/usb/srx_backup.conf /var/tmp/
configure
load override /var/tmp/srx_backup.conf
show | compare
commit and-quit

A9) ADMIN-PC OFFLINE BACKUP STEP

External process: Move the USB to a PC and archive the .conf file for disaster recovery.

(Manual Process: No SRX commands required)

A10) VERIFICATION ENHANCEMENTS ADDED

Displays granular details about storage usage and active system filesystems.
Mode: Operational (>) show system storage detail
show system filesystems

A11) POST-RESTORE PERSISTENCE CHECK

Ensures that the newly restored configuration is saved as the system's official rescue point.
Mode: Operational (>) request system configuration rescue save

22) END OF DOCUMENT