Juniper SRX Commands

Below shows some of the main Juniper SRX commands available. All commands are provided with the necessary mode in which they should be run from.

Configuration Commands

replace pattern expr1 with expr # configuration mode find and replace string within configuration
show | compare rollback {1..5} # configuration mode compare the current configuration against roll back configuration file
commit check # configuration mode verify the uncommitted changes
commit comment "{TEXT}" # configuration mode commit changes and add a comment
commit confirmed 10 # configuration mode changes are committed. If additional commit is not issued the changes are reverted
commit full # configuration mode commit entire configuration
rollback rescue # configuration mode rollback the configuration to rescue point
clear system commit > operational mode discard uncommitted changes
configure private > operational mode config mode is launched, any changes are not made global and keep only to your session
load merge terminal # configuration mode merge configuration with current configuration
load merge relative terminal # configuration mode merge configuration relative to the current edit point (stanza)
load override baseline-config.cfg # configuration mode overide current running config with saved config
save baseline-config.cfg # configuration mode save current configuration to a file

Show Commands

show chassis routing-engine > operational mode show CPU, Mem and Temperature
show security flow session summary # configuration mode show total session total, limit
show security policies > operational mode show security policies
show security zones # configuration mode show security zones
show groups junos-defaults # configuration mode show junos default groups
show system queues > operation mode show interface statistics
show security flow status > operation mode show mode (packet/flow-based)
monitor  interface [traffic|interface] > operation mode show interface stats in real-time

Process Management

show system processes extensive # configuration mode show processes
restart {process} gracefully > operational mode restart the process one all the present tasks have been completed

System Commands

request system reboot > operational mode reboot system
request system storage cleanup > operational mode remove unwanted files

Misc Commands

set security forwarding-options family mpls mode [packet-based|flow-based] # configuration mode configure the mode (packet/flow-based



About the Author


R Donato

Rick Donato is the Founder and Chief Editor of He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001