CLI Operational Mode
When you log in to the router and the command-line interface (CLI) starts, you are at the top level of operational mode. Operational mode is indicated by the presence of the > prompt, which is preceded by a string that defaults to the name of the user and the name of the router. For example:
user@host>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 Controlling 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 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 autonomous system (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 Protocols, Class of Service, and System Basics 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 Protocols, Class of Service, and System Basics Command Reference.- Commands for restarting software processes—The commands in the
restarthierarchy restart the various JUNOS software processes, including the routing protocol, interface, and Simple Network Management Protocol (SNMP). For information about these commands, see the JUNOS Protocols, Class of Service, and System Basics 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 Protocols, Class of Service, and System Basics Command Reference.- A command—
start—to exit the CLI and start a UNIX shell. For information about this command, see the JUNOS Protocols, Class of Service, and System Basics 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 Configuring the Router with the CLI.- A command—
quit—to exit the CLI. For information about this command, see the JUNOS Protocols, Class of Service, and System Basics Command Reference.- For more information about the CLI operational mode commands, see the JUNOS Network and Services Interfaces Command Reference and the JUNOS Protocols, Class of Service, and System Basics Command Reference.
This chapter discusses the following topics:
- Using the CLI
- Getting Help Based on a String in a Statement Name
- Setting the Current Date and Time
- Setting the Date and Time from NTP Servers
- Setting the Source Address to Contact the NTP Server
- Displaying CLI Command History
- Monitoring Who Uses the CLI
- Using the Comment Character #
- Routing Matrix CLI Enhancements