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.
At the top level of operational mode are the broad groups of CLI diagnostic commands listed in Table 191.
Table 191: 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 Tracing Multicast Routes from the CLI. |
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 Pinging Hosts from the CLI. |
ping mpls |
Determines the reachability of an MPLS endpoint using various options. For details, see MPLS Connection Checking. |
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 Tracing Unicast Routes from the CLI. |
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 device to another, from the device to a remote system, or from a remote system to the device. |
restart option |
Restarts the various system processes, including the routing protocol, interface, and SNMP processes. |
request |
Performs system-level operations, including stopping and rebooting the device and loading software images. |
start |
Exits the CLI and starts a UNIX shell. |
configuration |
Enters configuration mode. For details, see the JUNOS Software Administration Guide. |
quit |
Exits the CLI and returns to the UNIX shell. |