Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Operational-Mode Commands

CLI Operational Mode Command Overview

You (the network administrator) can control all network operations using the Junos OS CLI operational mode commands described in this topic.

CLI Operational Mode Command Categories

CLI operational mode commands fall into the following broad categories:

  • Operational mode commands for monitoring and troubleshooting—The following commands perform functions related to information and statistics about the software and to test network connectivity.

    • clear—Clear statistics and protocol database information.

    • file—Perform file operations.

    • mtrace—Trace a multicast path 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, system alarms, 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 restarting software processes—The commands in the restart hierarchy restart the various system processes, including the routing protocol, interface, and SNMP.

  • A command—request—Perform system-level operations, including stopping and rebooting the router or switch and loading operating system images.

  • A command—start—Exit the CLI and start a UNIX shell.

  • A command—configure—Enter configuration mode, which provides a series of commands that configure the system, including the routing protocols, interfaces, network management, and user access.

For more information about the CLI operational mode commands, see the CLI Explorer. Alternatively, you can enter ? at the operational mode command prompt to view a list of available commands.

Commonly Used Operational Mode Commands

The following table lists some operational commands you may find useful for monitoring router or switch operation.

Table 1: Commonly Used Operational Mode Commands

Items to Check



Software version

Versions of software running on the router or switch

show version

Log files

Contents of the log files


Log files and their contents and recent user logins

show log

Remote systems

Host reachability and network connectivity


The route to a network system



Current system configuration

show configuration

File manipulation

List of files and directories on the router or switch

file list

Contents of a file

file show

Interface information

Detailed information about interfaces

show interfaces


Chassis alarm status

show chassis alarms

Information currently on craft display

show chassis craft-interface

Router or switch environment information

show chassis environment

Hardware inventory

show chassis hardware

Routing table information

Information about entries in the routing tables

show route

Forwarding table information

Information about data in the kernel’s forwarding table

show route forwarding-table