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 System Basics Configuration Guide and the JUNOS System Basics and Services
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 206
CLI Configuration Mode on page 211
JUNOS MPLS Fast Reroute Solutions Network 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 13).
Table 13: 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