0% found this document useful (0 votes)
523 views

Juniper Commands

ji

Uploaded by

saudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
523 views

Juniper Commands

ji

Uploaded by

saudi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

7/16/2019 Juniper Commands

Network Commands (/)

Welcome to this compilation of the most common Juniper / Junos Operational Commands. Based on the documentation and the experience
we have achieved along years working as a network engineer, we want to condense the hughest ammount of knowledge and experience in
the minimum space, in order to become an useful "cheat sheet" able to help the network engineer on a daily basis.

We are not showing configuration commands. Juniper has tons of documentation in order to configure services. What we want to show is
just the operational side, but focussing there, we want to create the best spreadsheet in the web. Please be welcome to help us with any
additional commands or suggestions you may have. This site will always be under construction.

We are commited to avoid any copyright infringement, so if someone feels we do, please let us know. Our e-mail address is
[email protected] (mailto:[email protected])

Adittionally, feel free to check our other useful sites: www.bgplookingglass.com (http://www.bgplookingglass.com) and www.routeservers.org
(http://www.routeservers.org)

IOS vs JUNOS vs IOS-XR (Basic Commands)

IOS JUNOS IOS-XR

show version show version show version

show logging show log messages show logging

show interface transceiver show interface diagnosis optics sh controllers <interface-id> phy

Links of Interest

http://www.juniper.net/support/requesting-support.html (http://www.juniper.net/support/requesting-
JTAC Contact Numbers
support.html#emea)

Juniper Case Manager https://casemanager.juniper.net/casemanager/ (https://casemanager.juniper.net/casemanager/)

http://forums.juniper.net/t5/Discussion-Forums/ct-p/Forums (http://forums.juniper.net/t5/Discussion-
Juniper Discussion Forum
Forums/ct-p/Forums)

Junos Software Download Page https://www.juniper.net/support/downloads/ (https://www.juniper.net/support/downloads/)

https://prsearch.juniper.net/InfoCenter/index?page=prsearch (https://prsearch.juniper.net/InfoCenter/index?
Juniper Problem Report Search
page=prsearch)

Juniper CLI Explorer https://apps.juniper.net/cli-explorer/ (https://apps.juniper.net/cli-explorer/)

Unofficial Forum about Juniper https://lists.gt.net/nsp/juniper/ (https://lists.gt.net/nsp/juniper/)

Unofficial IRC channel Server: chat.freenode.net / Channel: #Juniper

Juniper Configuration Operational Commands

edit / configure enter configuration mode

exit configuration-mode exit from configuration mode to operational mode without committing config changes

top moves to the top level of the configuration hierarchy

top edit <path> moves directly a specific path in the configuration hierarchy

up moves up one level of configuration

copy <statement 1> to


duplicates statement 1 and the entire hierarchy of statements configured under that statement
<statemement 2>

annotate add comments to a configuration at the current hierarchy level.

activate / deactivate activate / deactivate a configuration statement. if deactivated, config won't take effect when commited.
In order to provide you with the best online experience this website uses cookies.
rename <id1> to <id2> rename identifier id1 to id2
By using our website, you agree to our use of cookies.
insert term <stat1> before/after
moves relative position between terms
I agree
<stat2>
www.networkcommands.net 1/6
7/16/2019
replace pattern <pattern1> with Juniper Commands
replace a pattern with a different one
<pattern2>

protect <path> protect the device configuration from being modified or deleted by other users

show configuration | display set displays original commands used to enter configuration

show configuration | display set


displays original commands used to enter configuration just related to the current hierarchy level
relative

show configuration | display


displays config including inherited terms from specific groups
inheritance

show configuration | no-more displays config without pagination

show configuration | match


displays config lines matching an expression
<exp>

show configuration | find <exp> displays config lines starting in the first match of one specific expression

run ...... from configuration mode, execute commands in operational mode

enter configuration mode to edit privately from other users. commit only apply current user changes, not to
configure private / update
others. to synchronize with other users, enter update command

configure exclusive bans any other users of comitting changes

Juniper CLI & Date Operational Commands

show cli history show current session executed commands

show cli authorization show my user authorization level

set cli directory <path> changes current directory to the selected path

set cli timestamp makes cli outputs with timestamp

set date
set time & date
<YYYYMMDDhhmm.ss>

Juniper Commit Operational Commands

commit save, validate and activate a complete config

commit check check for syntax errors in the candidate configuration

commit confirmed <minutes> commit configuration and roll it back after a number of minutes (10 minutes default)

commit-and-quit commit configuration and exit configuration mode

commit synchronize commit changes in all routing engines

commit at <yyyy-mm-dd
commit config at a certain time/date
hh:mm[:ss]>

commit at reboot commit config at next reboot

commit comment commit config adding changes description

commit full commit config restarting all deamons (be very careful when applying this command)

commit | display detail monitor the Junos commit process

clear system commit from operational mode, clear all pending commit requests (similar to rollback)

show system commit show list of commited config files

show system rollback compare


display differences between config files 4 and 8
48

show system rollback 32 displays rollback config file 32

request system commit commit changes from operational mode

show | compare show candidate configuration

show configuration | compare from operational mode, show candidate configuration


In order to provide you with the best online experience this website uses cookies.
returns to the most recently committed configuration and loads it without activating it, you need to commit it
rollback By using our website, you agree to our use of cookies.
later
I agree
www.networkcommands.net 2/6
7/16/2019
rollback 0 Juniper Commands
discard uncommited changes

rollback 22 loads config file 22 without activating it, you need to commit it later

Juniper VRRP Operational Commands

show vrrp detail/extensive show information about vrrp groups

clear vrrp clear vrrp stats

Juniper LACP & MC-LAG Operational Commands

show iccp

show interfaces mc-ae

show lacp interfaces

show interfaces ae0 extensive

Juniper Chassis Operational Commands

displays a list of all Flexible PIC Concentrators (FPCs) and PICs installed in the router or switch chassis,
show chassis hardware
including the hardware version level and serial number

displays info like memory load, CPU load, temperature and other parameters related to each Routing
show chassis routing-engine
Engine

show chassis alarms displays information about the the conditions that have been configured to trigger alarms

show chassis environment displays environmental/temperature information related to the device

show chassis fpc detail

show chassis mac-addresses displays the media access control (MAC) addresses for the router or switch

show system core-dumps shows system crash dumps

show system alarms displays active system alarms

Juniper Beacon & Display Commands

set chassis display fpc-slot 3


shows message "hola" in VC member 3 lcd display
message Hola

request chassis beacon fpc 2


turns on beacon on fpc number 2
on

Juniper Switching & ARP Operational Commands

show ethernet-switching table show MAC table

clear ethernet-switching table clears MAC table

show ethernet-switching
redundancy-groups arp- displays MC-LAG ARP statistics
statistics

show services statistics arp displays ARP statistics

show arp show ARPtable

Juniper Spanning Tree Operational Commands

show spanning-tree bridge show STP bridge parameters

show spanning-tree interface show STP interface parameters

show spanning-tree mstp show Multiple Spanning Tree Protocol information

show spanning-tree statistics show STP statistics

clear spanning-tree statistics clear STP statistics

Juniper Fusion Commands

request chassis satellite shell-


commandIn order101to provide
fpc-slot yousend
with the
shell besttoonline
comand experience
a Junos Fusion Satellite (inthis website
this case uses cookies.
send "shutdown -h now" to FPC 101)
"shutdown -h now"
By using our website, you agree to our use of cookies.
show chassis satellite verifies that a device
I agreeis recognized as a satellite device by the aggregator device
www.networkcommands.net 3/6
7/16/2019
show chassis satellite interface Juniper
verifies Commands
cascade ports and uplink ports state

show chassis satellite neighbor verifies that a cascade port recognizes a satellite device

show chassis satellite terse verifies the hardware model of each satellite device

Juniper Packet Forwarding Engine Operational Commands

show pfe terse show list of Packet Forwarding Engine components

show pfe route show Packet Forwarding Engine routing table

show pfe statistics show Packet Forwarding Engine statistics

Juniper Virtual Chassis Operational Commands

shows virtual chassis members, their serial number, status, role (master, backup, linecard, VC interface
show virtual-chassis
involved)

show virtual-chassis vc-port show inter-chassis interfaces anc vc-ports associated

request session member X login a particular member (X) of the virtual chassis

request chassis routing-engine


force routing-engine mastership switchover
master switch

show version invoke-on all- show Junos version installed in each Virtual Chassis member. It also applies to Standalone chassis with dual
routing-engine routing engines

Junos BFD Operational Commands

show bfd session display BFD session statistics

clear bfd session clear bfd sessions

clear bfd adaptation clear bfd parameters

Juniper RSVP Commands

clear rsvp session clear RSVP sessions and trigger fast reroute optimization

show rsvp interface display the status of interfaces on which RSVP is running

show rsvp neighbor display RSVP neighbors

show rsvp session display currently active RSVP sessions

show rsvp statistics display RSVP packet and error counters

show rsvp version display RSVP version and configuration information

Juniper PPP Operational Commands

show ppp summary show PPP summary information

show ppp statistics show PPP statistics

show ppp interface show PPP interface information

show ppp address-pool show PPP address pool information

clear ppp statistics clear PPP statistics

Juniper Help Operational Commands

help apropos <topic> shows all commands related to the topic

help topic <topic> help for high level topics

help reference <topic> help information about a topic

help tip cli displays a random tip

help syslog info about specific error messages

Juniper RSI & Logs

request support information |


gets RSI info and stores it in rsi.txt file
In order to provide
save /var/tmp/rsi.txt you with the best online experience this website uses cookies.
By using our website, you agree to our use of cookies.
I agree
www.networkcommands.net 4/6
7/16/2019
file archive compress source Juniper Commands
/var/log/ destination compresses /log directory into one file
/var/tmp/logfile.tgz

Juniper User Management Commands

show system users show connected users to the device

request system logout user xxx force logout to user xxx

request message all message


send message "hola" to all logged users in the device
"hola"

show arp | request message


sends arp table output to will.jack terminal
user will.jack

show log user all-members displays all users last logins

status display the users currently editing the configuration

Load Commands

load merge terminal loads and merge config directly from router terminal

load merge terminal relative loads and merge config relative to current edit point

load merge /var/tmp/ddd.txt loads and merge directly from file

load replace terminal loads and replace config directly from router terminal

load replace terminal relative loads and merge config relative to current edit point

load replace /var/tmp/ddd.txt loads and merge directly from file

Juniper Request Commands

request system reboot reboot device

request system halt gracefully terminates software processes, but not the chassis

request system zeroize erase all data (config + logs)

request system power-off power-off all the chassis (but the fun)

request session member 4 log in virtual-chassis member number 4

Juniper Monitoring Commands

monitor start messages displays "messages" log file in real time

monitor stop messages stops displaying "messages" log file in real time

monitor interface ge-x/y/z real-time statistics monitor of one interface

monitor traffic interface ge-x/y/z


displays real-time control traffic
no-resolve detail

Juniper DHCP Operational Commands

show dhcp relay binding


shows current dhcp leases
<routing-instance name>

Juniper SNMP Commands

show snmp mib get <oid> show value for a specific OID

show snmp mib walk <oid> show snmpwalk for that specific OID

Juniper Shell Commands

start shell enter shell mode

cli enter cli mode

start shell user root enter shell with root user

top lists running processes

df -k
In order to provide you with the best online experience this website uses cookies.
lists disk partition
By using our website, you agree to our use of cookies.
Juniper FPC Commands
I agree
www.networkcommands.net 5/6
7/16/2019
start shell pfe network fpc0 Juniper Commands

or enter fpc0 cli


start shell + vty fpc0

test xfp 1 laser off disable XFP optic 1

© 2019 Network Commands Volver arriba

In order to provide you with the best online experience this website uses cookies.
By using our website, you agree to our use of cookies.
I agree
www.networkcommands.net 6/6

You might also like