Juniper Cheat Sheet
Juniper Cheat Sheet
NetFixPro.com
PIPE Command
> show interface terse
Equivalent to show run interface | include 0/1 command from the Cisco
Equivalent to show run interface | exclude 0/1 command from the Cisco
Equivalent to show run interface | begin 0/1 command from the Cisco
DELETE command
SET Command
Use the set command to add or change configuration statements;
RUN Command
mode
> show interfaces Shows the state of the interfaces on the router
UP Command
TOP Command
Like a Unix cd ..
# top
# up
COPY, RENAME and REPLACE Command
Creates new interface fe-0/0/2 with similar properties to fe-
parameters
SAVE Command
# save <filename>
By Ashutosh Patel
netfixpro.com
NetFixPro.com
COMMIT Commands
# commit check
Checks uncommitted changes against the parser errors and returns failure or success; Highly
recommended before activating changes using the commit command
# commit
# commit and-quit
# commit at
schedules a commit for a later time and date e.g. commit at 23:00
# commit confirmed
Commits changes but automatically rolls them back if another commit is not used; By default,
the configuration runs for 10 minutes before the rollback. Requires another commit to save the
changes permanently
Watch each step of the commit operation; useful to debug failed commit
ROLLBACK Commands
# rollback ?
# rollback or rollback 0
Resets the candidate configuration to the currently running configuration, which is the last
version committed.
# rollback 2
FILE Commands
> file list /var/tmp
Compares two local files and describe the differences between them
/config/rescue.conf.gz
> file copy server1:/tmp//router-base-conf
Copies files from one location to another location on the local device
/var/tmp/juniper.conf.gz
LOAD Commands
> load override router-base-configuration
The override option with the load command replaces the entire candidate
configuration with the contents of the file you are loading
By Ashutosh Patel
netfixpro.com
NetFixPro.com
HELP Command
> help apropos route
Displays some background info on ospf area (similar to man command in Linux)
Shows the CPU utilization on the device and lists the processes in order of CPU
utilization
Display system-wide memory distribution and usage including the Junos OS
Displays statistics about the amount of free disk space in the devices file
systems.
Displays the current time and information about how long the device or software
Lists information about the users who are currently logged in to the device
Shuts down the software and gracefully terminates process; NOTE: Device
wont go down but software does
By Ashutosh Patel
netfixpro.com