Command-Line Interface
Operational ModeWhen you log in to the router and the command-line interface (CLI) starts, you are at the top level of operational mode. At this level, there are a number of broad groups of CLI commands:
- Commands for controlling the CLI environment—The commands in the
sethierarchy configure the CLI display screen. For information about these commands, see Control the CLI Environment.- Commands for monitoring and troubleshooting—The following commands let you display information and statistics about the software and test network connectivity. Using these commands is discussed in the JUNOS Internet Software Network and Services Interfaces Command Reference.
clear—Clear statistics and protocol database information.mtrace—Trace mtrace packets from source to receiver.monitor—Perform real-time debugging of various software components, including the routing protocols and interfaces.ping—Determine the reachability of a remote network host.show—Display the current configuration and information about interfaces, routing protocols, routing tables, routing policy filters, and the chassis.test—Test the configuration and application of policy filters and AS path regular expressions.traceroute—Trace the route to a remote network host.
- Commands for connecting to other network systems—The
sshcommand opens secure shell connections, and thetelnetcommand opens telnet sessions to other hosts on the network. For information about these commands, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.- Commands for copying files—The
copycommand copies files from one location on the router to another, from the router to a remote system, or from a remote system to the router. For information about these commands, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.- Commands for restarting software processes—The commands in the
restarthierarchy restart the various JUNOS software processes, including the routing protocol, interface, and SNMP. For information about these commands, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.- A command—
request—for performing system-level operations, including stopping and rebooting the router and loading JUNOS software images. For information about this command, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.- A command—
start—to exit the CLI and start a UNIX shell. For information about this command, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.- A command—
configure—for entering configuration mode, which provides a series of commands that configure the JUNOS software, including the routing protocols, interfaces, network management, and user access. For information about the CLI configuration commands, see Configure the Router with the CLI.- A command—
quit—to exit the CLI. For information about this command, see the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.For more information about the CLI operational mode commands, see the JUNOS Internet Software Network and Services Interfaces Command Reference and the JUNOS Internet Software Protocols, Class of Service, Chassis, and Management Command Reference.