The CLI commands available in operational mode allow you to perform the same monitoring, troubleshooting, and management tasks you can perform with the J-Web interface. Instead of invoking the tools through a graphical interface, you use operational mode commands to perform the tasks.
Because the CLI is a superset of the J-Web interface, you can perform certain tasks only through the CLI. For example, you can use the mtrace command to display trace information about a multicast path from a source to a receiver, which is a feature available only through the CLI.
To view a list of top-level operational mode commands, type a question mark (?) at the command-line prompt. (See the J-series Services Router Getting Started Guide.)
At the top level of operational mode are the broad groups of CLI diagnostic commands listed in Table 46.
Table 46: CLI Diagnostic Command Summary
|
Command |
Function |
|---|---|
| Controlling the CLI Environment | |
|
set option |
Configures the CLI display. |
| Diagnosis and Troubleshooting | |
|
clear |
Clears statistics and protocol database information. |
|
mtrace |
Traces information about multicast paths from source to receiver. For details, see Using mtrace Commands. |
|
monitor |
Performs real-time debugging of various software components, including the routing protocols and interfaces. For details, see the following sections: |
|
ping |
Determines the reachability of a remote network host. For details, see Using the ping Command. |
|
ping mpls |
Determines the reachability of an MPLS endpoint using various options. For details, see the JUNOS Protocols, Class of Service, and System Basics Command Reference. |
|
test |
Tests the configuration and application of policy filters and AS path regular expressions. |
|
traceroute |
Traces the route to a remote network host. For details, see Using the traceroute Command. |
| Connecting to Other Network Systems | |
|
ssh |
Opens secure shell connections. For details, see Using the ssh Command. |
|
telnet |
Opens telnet sessions to other hosts on the network. For details, see Using the telnet Command. |
| Management | |
|
copy |
Copies files from one location on the Services Router to another, from the router to a remote system, or from a remote system to the router. |
|
restart option |
Restarts the various JUNOS software processes, including the routing protocol, interface, and SNMP processes. |
|
request |
Performs system-level operations, including stopping and rebooting the Services Router and loading JUNOS software images. |
|
start |
Exits the CLI and starts a UNIX shell. |
|
configuration |
Enters configuration mode. For details, see the J-series Services Router Getting Started Guide. |
|
quit |
Exits the CLI and returns to the UNIX shell. |