Command-Line Interface Overview
This chapter provides an overview of the JUNOS software command-line interface
(CLI). For more detailed information about using the JUNOS software CLI, see the
JUNOS Sy stem Basics Configur ation Guide and the JUNOS Protocols, Class of
Service and Sy stem Basics Command R eference .
The CLI is the interface to the software that you use whenever you access the
router—whether from the console or through a remote network connection. The
CLI, which automatically starts after the router finishes booting, provides
commands that you use to perform various tasks, including configuring the JUNOS
software, and monitoring and troubleshooting the software, network connectivity,
and the router hardware.
The CLI has two modes:
CLI Operational Mode on page 328
CLI Configuration Mode on page 333
JUNOS Interfaces Operations Guide
CLI Operational Mode
In operational mode you enter commands to monitor and troubleshoot the
software, network connectivity, and the router by entering commands. When you
log in to the router and the CLI starts, you are at the top level of the CLI operational
mode. At this level, there are several broad groups of CLI commands (see Table 61).
Table 61: CLI Operational Mode Top-Level Commands
Clear statistics and protocol database information.
Syntax: clear (arp | bgp | chassis | firewall | igmp | interfaces | isis | ldp | log | mpls | msdp | multicast | ospf | pim |
rip | route | rsvp | snmp | system | vrrp)
Enter CLI configuration mode. Alternative commands: configure exclusive | configure private
Perform file manipulation operations, such as copy, delete, list, rename, and show.
Syntax: file (compare | copy | delete | list | rename | show)
Provide help information.
Syntax: help (reference | topic)
Monitor a log file or interface traffic in real time.
Syntax: monitor (start | stop | interface | list | traffic)
Display trace information about a multicast path from a source to a receiver.
Syntax: mtrace (f