Juniper Commands v4 CLI
Juniper Commands v4 CLI
Juniper Commands v4 CLI
Furthermore, care must be taken at the time to use Shell commands!! (only under JTAC supervision)
COMMAND
Description
Example
Chassis Management
show chassis alarm
show chassis craft-interface
set chassis display message "M40e unit for swap"
show chassis environment
show chassis temperature-thresholds
show chassis routing-engine
show chassis hardware
show chassis fpc
show chassis fpc detail
show chassis fpc pic-satus
show chassis pic fpc-slot 0 pic-slot 1
show chassis mac-addresses
show chassis [feb | scb | ssb | sfm slot ]
detail/frus/ext
System management
show host
show version
show system software
show system uptime
show system processes
show system statistics
show system connections
show system users
show system storage
root% df -k
show system boot-messages
show system virtual-memory
request system reboot
request system halt
request system reboot
request system snapshot
request support information
request system software add <pkgname>
restart <process> [ gracefully, immediately, soft]
request chassis routing-engine diagnostics all
request system storage cleanup
ns lookup
displays software running on the box
displays installed packages
uptime of the router
extensive/summary Show the process table
ip, icmp,
Show protocol statistics
lists only active IP sockets on RE
Show users currently logged into the system
displays the amount of amount of free disk space on file system
show system storage from Shell
displays contents of boot log (boot-up messages)
displays current memory state
Restarts the system
Stops the router and prepares it to be shut down
Reboot the system
Save config in /altconfig and software in /altroot before upgrade
show tech
performs bsd pgkadd; always use jbundle (4->5 jinstall)
Restart process
(hidden)
runs a diagnostic script in compact-flash,hard-disk & memory
Free storage space on the router by rotating log files and proposing a list
of files for deletion. User input is required for file deletion.
detail
Configuration
configuration
show
edit
set
delete
exit
commit
commit check
commit confirmed x
commit and-quit
commit synchronize
commit full
root% mgd -l
commit at
clear system commit
rollback 0
rollback
rollback + commit
load merge </var/home/user/config>
load override </var/home/user/config>
load merge terminal
load factory-default
show | compare
show system rollback 40
show system rollback compare 0 32
save
save username@host:filename
show configuration groups junos-defaults
Managing files
start shell
/config
/var/db/config
/var/tmp
/var/log
/var/home
/altroot
/altconfig
file list
file list /config
file show <file>
file delete
file copy source destination
flashdisk
harddisk
harddisk
harddisk
harddisk
harddisk
harddisk
ftp
scp
ftp
Logs
show log messages
show log file-name
show log cli
show log chassisd
show log install
show log debug
show log messages?
show log inventory
monitor start file-name
monitor stop
help syslog
located in /var/log
shows all the logs, location is /var/log
shows logs about an specific log file
show logs about cli commands issued
show logs about chassis probs
show logs releveant to an install JUNOS version
show daemon logs
displays all the files with their dates of the collected logs
shows logs about inventory
monitors logs in real time
stops monitoring
explanation of log meaning
Show interfaces
show interfaces
detail
extensive
terse
description
media
statistics
routing
(hidden)
Shell command
Routing
show route
show route protocol [static, isis]
show route x.x.x.x extensive
show route advertising-protocol
show route receiving-protocol
show ip route
show ip route for an specific protocol
extensive view of a route
Forwarding
show route forwarding-table destination x.x.x.x
clear route forwarding-table x.x.x.x
SFM0 (vty)# show route ip prefix x.x.x.x
Shell command
Firewall
show firewall
show firewall log
clear firewall [all|filter-name|counter-name]
show interfaces filters
show interfaces policers
show policer
detail
Loopback test
set t3-options loopback local
set t3-options loopback remote
BERT test
set t3-options bert-period 120
set t3-options bert-algorithm all-ones-repeating
set t3-options bert-error-rate 0
test interface t3-1/2/0 t3-bert-start
test interface t3-1/2/0 t3-bert-stop
show interfaces t3-1/2/0 extensive | find bert
icmp echo-request/echo-response
ping remote atm interface using oam cells
send udp 33434/ttl=1- receive icmp time-exceeded
send udp 33435/ttl=2 - receive icmp time-exceeded
Policy
test policy <policy-name> 0/0