Summary of CLI Operational Commands
The following sections explain each of the top-level CLI commands. The commands are organized alphabetically.
clear
Syntax
clear (arp | bgp | chassis | firewall | igmp | ilmi | interfaces | isis | ldp | log | mpls | msdp | multicast | ospf | pim | rip | route | rsvp | snmp | system | vrrp)Description
Delete or zero information from various router and protocol databases.
Usage Guidelines
The various
clearcommands are discussed in other chapters. To locate these commands, refer to the table of contents or the index.Required Privilege Level
configure
Syntax
Description
Usage Guidelines
See the JUNOS Internet Software Configuration Guide: Getting Started.
Required Privilege Level
file
Syntax
file (copy | delete | list | rename | show)Description
Copy files to and from the router.
Usage Guidelines
See the JUNOS Internet Software Configuration Guide: Getting Started.
Required Privilege Level
help
Syntax
Description
Display help information about available operational commands and configuration statements.
Usage Guidelines
See the JUNOS Internet Software Configuration Guide: Getting Started.
Required Privilege Level
monitor
Syntax
monitor (start | stop | list) <interface > <traffic>Description
Monitor a log file or interface statistics or traffic in real time.
Usage Guidelines
See Monitor and Perform System Management Functions, and "Real-Time Router Interface Monitoring and Troubleshooting" and
monitor trafficin the JUNOS Internet Software Operational Mode Command Reference: Interfaces.Required Privilege Level
Depends on the specific command.
mtrace
Syntax
mtrace(from-source|to-gateway|monitor)Description
Display trace information about a multicast path from a source to a receiver.
Usage Guidelines
See IP Multicast Monitoring and Troubleshooting.
Required privilege level
ping
Syntax
Description
Check the reachability of network hosts.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
quit
Syntax
Description
Exit from the CLI to a UNIX shell.
Required Privilege Level
See Also
| (pipe)
Syntax
|
(compare | count | display <detail | inheritance | xml> | exceptpattern| findpattern| hold | matchpattern| no-more | resolve <full-names> | savefilename| trimcolumns)Description
Filter the output of an operational mode or a configuration mode command.
Options
compare (filename | rollback n )—(Configuration mode only, with theshowcommand only) Compare configuration changes with another configuration file.
count—Display the number of lines in the output.
display—Display additional information about the contents of the configuration.
detail—(Configuration mode only) Display configuration data detail.inheritance—(Configuration mode only) Display inherited configuration data and source group.xml—(Operational mode only) Display XML content of the command.
exceptpattern—Ignore text matching a regular expression when searching the output. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.
findpattern—Display the output starting at the first occurrence of text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.
hold—Hold text without exiting the--More--prompt.
matchpattern—Search for text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.
no-more—Display output all at once rather than one screen at a time.
resolve—Convert IP addresses into DNS names. Truncates to fit original size unlessfull-namesspecified. To prevent the names from being truncated, use thefull-nameoption.
savefilename—Save the output to a file or URL. For information about specifying the filename, see Search for a String in the Output.
trimcolumns—Trim specified number of columns from the start line.Usage Guidelines
request
Syntax
request system (reboot | halt | software | snapshot)Description
Stop or reboot the router, load software packages, and back up the router's file systems.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
restart
Syntax
restart (fpc | interface-control | mib-process | routing | sampling | sfm | snmp | soft)Description
Restart router software processes.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
set
Syntax
set (chassis | cli | date | date ntp)Description
Configure CLI properties and the router's date and time.
Usage Guidelines
See Control the CLI Environment, Set the Current Date and Time, and Set the Current Date and Time from NTP Servers.
Required Privilege Level
show
Syntax
show (aps | arp | as-path | bgp | chassis | cli | configuration | connections | dvmrp | firewall | host | igmp | interfaces | isis | ldp | log | mpls | msdp | multicast | ntp | ospf | pfe | pim | policy | rip | route | rsvp | sap | snmp | system | task | ted | version | vrrp)Description
Show information about all aspects of the software, including interfaces and the routing protocols.
Usage Guidelines
The various
showcommands are discussed on other chapters. To locate these commands, refer to the table of contents or the index.Required Privilege Level
Depends on the specific command.
ssh
Syntax
Description
Open a secure shell to another host.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
start
Syntax
Description
Start a UNIX shell on the router.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
telnet
Syntax
Description
Establish a telnet session to another host.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level
test
Syntax
test (configuration | interface | msdp | policy)Description
Run various diagnostic debugging commands.
Usage Guidelines
The various
testcommands are discussed in other chapters. To locate these commands, refer to the table of contents or the index.Required Privilege Level
Depends on the specific command.
traceroute
Syntax
Description
Trace the route to a remote host.
Usage Guidelines
See Monitor and Perform System Management Functions.
Required Privilege Level