Technical Documentation

Overview of Junos OS CLI Operational Mode Commands

This topic provides an overview of Junos operational mode commands and contains the following sections:

CLI Command Categories

When you log in to a device running Junos OS and the CLI starts, there are a number of broad groups of CLI commands:

  • Commands for controlling the CLI environment—The commands in the set hierarchy configure the CLI display screen. For information about these commands, see Understanding the Junos OS CLI Modes, Commands, and Statement Hierarchies.
  • Commands for monitoring and troubleshooting—The following commands display information and statistics about the software and test network connectivity. Detailed command descriptions are provided in the Junos 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, 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 connecting to other network systems—The ssh command opens secure shell connections, and the telnet command opens telnet sessions to other hosts on the network. For information about these commands, see the Junos System Basics and Services Command Reference.
  • Commands for copying files—The copy command 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 System Basics and Services Command Reference.
  • Commands for restarting software processes—The commands in the restart hierarchy restart the various Junos OS processes, including the routing protocol, interface, and SNMP. For information about these commands, see the Junos System Basics and Services Command Reference.
  • A command—request—for performing system-level operations, including stopping and rebooting the router and loading Junos OS images. For information about this command, see the Junos System Basics and Services Command Reference.
  • A command—start—to exit the CLI and start a UNIX shell. For information about this command, see the Junos System Basics and Services Command Reference.
  • 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 information about the CLI configuration commands, see Understanding Junos OS CLI Configuration Mode.
  • A command—quit—to exit the CLI. For information about this command, see the Junos System Basics and Services Command Reference.
  • For more information about the CLI operational mode commands, see the Junos Interfaces Command Reference and the Junos System Basics and Services Command Reference.

Commonly Used Operational Mode Commands

Table 1 lists some operational commands you may find useful for monitoring router operation. For a complete description of operational commands, see the Junos command references.

Table 1: Commonly Used Operational Mode Commands

Items to Check

Description

Command

Software version

Versions of software running on the router

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

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 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

IS-IS

Adjacent routers

show isis adjacency

OSPF

Display standard information about OSPF neighbors

show ospf neighbor

BGP

Display information about BGP neighbors

show bgp neighbor

MPLS

Status of interfaces on which MPLS is running

show mpls interface

Configured LSPs on the router, as well as all ingress, transit, and egress LSPs

show mpls lsp

Routes that form a label-switched path

show route label-switched-path

RSVP

Status of interfaces on which RSVP is running

show rsvp interface

Currently active RSVP sessions

show rsvp session

RSVP packet and error counters

show rsvp statistics


Published: 2010-07-09

Help
|
My Account
|
Log Out