Summary of CLI Operational Mode Commands
The following sections explain each of the top-level CLI commands. The commands are organized alphabetically.
clear
Syntax
clear <arp | bfd | bgp | firewall | helper | igmp | ike | ilmi | interfaces | ipv6 | isis | ldp | log | mld | mpls | msdp | multicast | ospf | pim | rip | ripng | route | rsvp | services | snmp | system | vrrp>Description
Delete or set information from various router and protocol databases to zero.
Usage Guidelines
The various
clearcommands are discussed in other chapters in this manual and in the JUNOS Network and Services Interfaces Command Reference. To locate these commands, refer to the table of contents or the index of each manual.Required Privilege Level
configure
Syntax
configure <exclusive | private>Description
Usage Guidelines
See
configure exclusiveand the JUNOS System Basics Configuration Guide.Required Privilege Level
file
Syntax
file <archivesource destination| compare | compresssource destination| copy | delete | list | rename | show>Description
Perform file manipulation operations such as compare, copy, delete, list, rename and show.
Usage Guidelines
See System Management Operational Mode Commands and the JUNOS System Basics Configuration Guide.
Required Privilege Level
help
Syntax
help <reference | syslog | topic>Description
Display help information about available operational commands and configuration statements.
Usage Guidelines
See the JUNOS System Basics Configuration Guide.
Required Privilege Level
monitor
Syntax
monitor <interface> <start | stop | list> <traffic>Description
Monitor a log file or interface statistics or traffic in real time.
Usage Guidelines
See
monitorand information about the real-time operational mode commandsmonitor interfaceandmonitor trafficin the JUNOS Network and Services Interfaces Command Reference.Required Privilege Level
Depends on the specific command.
mtrace
Syntax
mtrace <source-name> <from-source | monitor | to-gateway>Description
Display trace information about a multicast path from a source to a receiver.
Usage Guidelines
See IP Multicast Operational Mode Commands.
Required Privilege Level
ping
Syntax
pingDescription
Check the reachability of network hosts.
Usage Guidelines
See System Management Operational Mode Commands.
Required Privilege Level
quit
Syntax
quitDescription
Exit from the CLI to a UNIX shell.
Required Privilege Level
Users with any privilege can issue this command.
See Also
| (pipe)
Syntax
<compare <filename| rollbackn> | count | display <detail | inheritance | xml> | exceptpattern| findpattern| hold | last | matchpattern| no-more | resolve <full-names> | savefilename| trimcolumns>Description
Filter the output of an operational mode or a configuration mode command.
Options
compare <filename| rollbackn>—(Configuration mode only, with theshowcommand only) Compare configuration changes with another configuration file that you specify either by filename or by an index number from 0 through 49.
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.
last—Display the end of the output only.
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 Searching for a String in the Output.
trimcolumns—Trim specified number of columns from the start line.Usage Guidelines
request
Syntax
request <chassis | ipsec switch | message | routing-engine | security | services flow-collector | support information>Description
Stop or reboot router components, switch between primary and backup components, display messages, and display system information.
Usage Guidelines
See Chassis Operational Mode Commands, System Management Operational Mode Commands, and the JUNOS Network and Services Interfaces Command Reference.
Required Privilege Level
request system
Syntax
request system <configuration rescue | halt | logout | partition | reboot | software | snapshot>Description
Stop or reboot the router, load software packages, and back up the router's file systems.
Usage Guidelines
See System Management Operational Mode Commands.
Required Privilege Level
restart
Syntax
restart <class-of-service | disk-monitoring | ecc-error-logging | firewall | interface-control | kernel-replication | l2tpd | mib-process | network-access-service | pgm | pic-services-logging | remote-operations | routing | sampling | snmp> <gracefully | immediately | soft>Description
Restart router software processes.
Usage Guidelines
See
restart.Required Privilege Level
restart fpc
Syntax
restart fpcslot-number;Description
Restart the Flexible PIC Concentrator (FPC).
Usage Guidelines
See
restart fpc.Required Privilege Level
restart sfm
Syntax
restart sfmslot-number;Description
Restart the Switching and Forwarding Modules (SFM)
Usage Guidelines
See
restart sfm.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 Controlling the CLI Environment, Setting the Current Date and Time, and Setting the Current Date and Time from NTP Servers.
Required Privilege Level
show
Syntax
show <accounting | aps | arp | as-path | bgp | chassis | class-of-service | cli | configuration | connections | dvmrp | firewall | helper | host | igmp | ike | ilmi | interfaces | ipsec | ipv6 | isis | l2circuit | l2vpn | ldp | link-management | log | mpls | msdp | multicast | ntp | ospf | ospf3 | passive monitoring | pfe | pim | policer | policy | rip | ripng | route | rsvp | sap | services | 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 in other chapters in this manual and in the JUNOS Network and Services Interfaces Command Reference. To locate these commands, refer to the table of contents or the index of each manual.Required Privilege Level
Depends on the specific command.
ssh
Syntax
ssh <host-name> <bypass-routing> <interfaceinterface-name> <inet | inet6> <routing instancerouting-instance-name> <sourcesource-name> <v1 | v2> <vpn-interfacevpn-interface-name>Description
Open a secure shell to another host.
Usage Guidelines
See
ssh.Required Privilege Level
start
Syntax
start shellDescription
Start a UNIX shell on the router.
Usage Guidelines
See
start.Required Privilege Level
telnet
Syntax
telnetDescription
Establish a telnet session to another host.
Usage Guidelines
See
telnet.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
tracerouteDescription
Trace the route to a remote host.
Usage Guidelines
See
traceroute.Required Privilege Level