Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Operational-Mode Commands

 

Overview of Junos OS CLI Operational Mode Commands

This topic provides an overview of Junos OS CLI operational mode commands.

CLI Command Categories

There are several broad categories of CLI commands, including:

  • 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 Junos OS processes, including the routing protocol, interface, and SNMP.

  • A command—request—for performing system-level operations, including stopping and rebooting the router or switch and loading Junos OS images.

  • A command—start—to exit the CLI and start a UNIX shell. For information about this command, see the CLI Explorer.

  • A command—configure—for entering configuration mode, which provides a series of commands that configure Junos OS, 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 also 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. For a complete description of operational commands, see the Junos OS command references.

Table 1: Commonly Used Operational Mode Commands

Items to Check

Description

Command

Software version

Versions of software running on the router or switch

show version

Log files

Contents of the log files

monitor

Log files and their contents and recent user logins

show log

Remote systems

Host reachability and network connectivity

ping

Route to a network system

traceroute

Configuration

Current system configuration

show configuration

Manipulate files

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

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