JUNOS 9.1 CLI User Guide

Techpubs Home
Report an Error

Collapse TOC

List of Tables
List of Figures

Index
Index of Statements and Commands

Entire manual as PDF

 

About This Guide
Objectives
Audience
Supported Routing Platforms
Using the Indexes
Using the Examples in This Manual
Documentation Conventions
List of Technical Publications
Documentation Feedback
Requesting Technical Support
Introducing the CLI
Understanding CLI Command Modes
Understanding Command and Statement Hierarchies
CLI Command Hierarchy
Configuration Statement Hierarchy
Key Features of the CLI
Leveraging Industry-Standard Technologies
Other Tools to Configure and Monitor JUNOS Routers
Commands and Configuration Statements for JUNOS-FIPS
Getting Started: A Quick Tour of the CLI
Before You Start
Logging In
Displaying Commands
Checking Router Status
Configuring a User Account
Configuring a Routing Protocol
Shortcut
Longer Configuration Example
Making Changes to the Routing Protocol Configuration
Rolling Back Configuration Changes
CLI Basics
Elements of the Command-Line Interface
CLI Messages
Displaying Command Output
Types of Commands and Statements
Command Options
Configuration Statements and Identifiers
Privilege Levels for Using Commands and Statements
Switching Between Operational Mode and Configuration Mode
Moving Among Hierarchy Levels
Displaying CLI Command History
Displaying CLI Word History
Getting Online Help
Getting Help About Commands
Getting Help About a String in a Statement or Command
Example: Getting Help About a String in a Statement Name
Getting Help About Configuration Statements
Getting Help About System Log Messages
Help for Omitted Statements
Using CLI Command Completion
Examples: Using CLI Command Completion
Using Command Completion in Configuration Mode
Examples: Using Command Completion in Configuration Mode
Displaying Tips About CLI Commands
Using CLI Operational Commands to Monitor the Router
Overview of CLI Operational Mode Commands
CLI Command Categories
Commonly Used Operational Mode Commands
Using Operational Mode Commands
Commands with Brief, Detail, Extensive, or Terse Options
Commands That Combine Other Commands
Controlling the Scope of a Command
Operational Mode Commands on a TX Matrix Platform
Examples of Routing Matrix Command Options
Monitoring Who Uses the CLI
Interface Naming Conventions
Physical Part of an Interface Name
Logical Part of an Interface Name
Channel Identifier Part of an Interface Name
Viewing Files and Directories
Directories on the Router
Listing Files and Directories
Specifying Filenames and URLs
Managing Programs and Processes
Displaying JUNOS Software Information
Showing Software Processes
Restarting a JUNOS Software Process
Stopping the JUNOS Software
Rebooting the JUNOS Software
Using the Comment Character #
Example: Using Comments
Using Commands and Statements to Configure the Router
Understanding CLI Configuration Mode
Configuration Mode Commands
Configuration Statements and Identifiers
Configuration Statement Hierarchy
Entering and Exiting Configuration Mode
Modifying the Configuration
Displaying the Current Configuration
Examples: Displaying the Current Configuration
Adding Configuration Statements and Identifiers
Deleting a Statement from the Configuration
Examples: Deleting a Statement from the Configuration
Copying a Statement in the Configuration
Example: Copying a Statement in the Configuration
Issuing Relative Configuration Commands
Renaming an Identifier
Example: Renaming an Identifier
Inserting a New Identifier
Examples: Inserting a New Identifier
Deactivating and Reactivating Statements and Identifiers
Examples: Deactivating and Reactivating Statements and Identifiers
Adding Comments in a Configuration
Examples: Including Comments in Configurations
Verifying a Configuration
Committing a Configuration
Committing a Configuration and Exiting Configuration Mode
Activating a Configuration but Requiring Confirmation
Scheduling a Commit Operation
Monitoring the Commit Process
Adding a Comment to Describe the Committed Configuration
Updating the Alternate Boot Drive
When Multiple Users Configure the Software
Forms of the configure Command
Example: Using the configure Command
Displaying Users Currently Editing the Configuration
Using the configure exclusive Command
Using the configure private Command
Updating the Configure Private Configuration
Displaying set Commands from the Configuration
Example: Displaying set Commands from the Configuration
Example: Displaying Required set Commands at the Current Hierarchy Level
Example: Displaying set Commands with the Match Option
Displaying Additional Information About the Configuration
Managing Configurations
How the Configuration Is Stored
Returning to the Most Recently Committed Configuration
Returning to a Configuration Prior to the One Most Recently Committed
Displaying Previous Configurations
Comparing Configuration Changes with a Prior Version
Creating and Returning to a Rescue Configuration
Saving a Configuration to a File
Loading a Configuration from a File
Examples: Loading a Configuration from a File
Additional Details About Specifying Statements and Identifiers
Specifying Statements
Performing CLI Type-Checking
Synchronizing Routing Engines
Example: Using Apply Groups re0 and re1
Example: Setting Apply Groups re0 and re1
Filtering Command Output
Using Keyboard Sequences at the ---(more)--- Prompt
Using the Pipe ( | ) Symbol When Entering Commands
Using Regular Expressions with the Pipe Symbol
Pipe Filter Functions
Comparing Configurations
Counting the Number of Lines of Output
Displaying Output in XML Tag Format
Ignoring Output That Does Not Match a Regular Expression
Displaying Output from the First Match of a Regular Expression
Retaining Output After the Last Screen
Displaying Output Beginning with the Last Entries
Displaying Output That Matches a Regular Expression
Preventing Output from Being Paginated
Sending Command Output to Other Users
Resolving IP Addresses
Saving Output to a File
Trimming Output by Specifying the Starting Column
Controlling the CLI Environment
Setting the Terminal Type
Setting the Screen Length and Width
Setting the Screen Length
Setting the Screen Width
Understanding the Screen Length and Width Settings
Setting the CLI Prompt
Setting the CLI Directory
Setting the CLI Timestamp
Setting the Idle Timeout
Setting the CLI to Prompt After a Software Upgrade
Setting Command Completion
Displaying CLI Settings
Example: Controlling the CLI Environment
Using Shortcuts, Wildcards, and Regular Expressions
Moving Around and Editing the Command Line
Wildcard Characters in Interface Names
Using Global Replace in a Configuration
Example 1: Using Global Replace in a Configuration
Example 2: Using Global Replace in a Configuration
Example 3: Using Global Replace in a Configuration
Using Regular Expressions to Delete Related Configuration Items
Example: Deleting Interfaces from the Configuration
Example: Deleting Routes from the Configuration
Configuration Groups
Overview
Inheritance Model
Configuration Groups Configuration Statements
Configuration Groups Configuration Guidelines
Creating a Configuration Group
Applying a Configuration Group
Example: Configuring and Applying Configuration Groups
Example: Creating and Applying Configuration Groups on a TX Matrix Platform
Disabling Inheritance of a Configuration Group
Example: Disabling Inheritance on Interface so-1/1/0
Displaying Inherited Values
Using Wildcards with Configuration Groups
Example: Using Wildcards with Configuration Groups
Examples: Configuration Groups
Configuring Sets of Statements with Configuration Groups
Configuring Interfaces
Configuring a Consistent Management IP Address
Configuring Peer Entities
Establishing Regional Configurations
Selecting Wildcard Names
Using JUNOS Default Groups
Example: Referencing the Preset Statement
Example: Viewing Default Statements That Have Been Applied to the Configuration
Summary of Configuration Group Statements
apply-groups
apply-groups-except
groups
Summary of CLI Environment Commands
set cli complete-on-space
set cli directory
set cli idle-timeout
set cli prompt
set cli restart-on-upgrade
set cli screen-length
set cli screen-width
set cli terminal
set cli timestamp
set date
show cli
show cli authorization
show cli directory
show cli history
Summary of CLI Configuration Mode Commands
activate
annotate
commit
copy
deactivate
delete
edit
exit
help
insert
load
quit
rename
replace
rollback
run
save
set
show
show | display inheritance
show | display omit
show | display set
show | display set relative
show groups junos-defaults
status
top
up
update
wildcard
Summary of CLI Operational Mode Commands
configure
file
help
| (pipe)
quit
request
restart
set
show
Index
Index
Index of Statements and Commands