JUNOS 9.4 CLI User Guide

DVD Home
Techpubs Home
Report an Error

Collapse TOC

List of Figures
List of Tables

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
Introducing the JUNOS Command-Line Interface
Key Features of the CLI
Understanding the JUNOS CLI Modes and Command and Statement Hierarchies
JUNOS CLI Command Modes
CLI Command Hierarchy
Configuration Statement Hierarchy
Moving Among Hierarchy Levels
Other Tools to Configure and Monitor Devices Running JUNOS Software
Commands and Configuration Statements for JUNOS-FIPS
Getting Started: A Quick Tour of the CLI
Getting Started with the JUNOS Command-Line Interface
Switching Between JUNOS CLI Operational and Configuration Modes
Configuring a User Account on a Device Running JUNOS Software
Checking the Status of a Device Running JUNOS Software
Configuring a Routing Protocol
Shortcut
Longer Configuration
Making Changes to a Routing Protocol Configuration
Rolling Back JUNOS Configuration Changes
Getting Online Help
Getting Online Help from the JUNOS Command-Line Interface
Getting Help About Commands
Getting Help About a String in a Statement or Command
Getting Help About Configuration Statements
Getting Help About System Log Messages
JUNOS Command-Line Interface Online Help Features
Help for Omitted Statements
Using CLI Command Completion
Using Command Completion in Configuration Mode
Displaying Tips About CLI Commands
Examples: Using CLI Command Completion
Examples: Using Command Completion in Configuration Mode
Displaying the JUNOS CLI Command and Word History
Using CLI Operational Commands to Monitor the Router
Overview of JUNOS CLI Operational Mode Commands
CLI Command Categories
Commonly Used Operational Mode Commands
JUNOS Operational Mode Commands That Combine Other Commands
Understanding brief, detail, extensive, and terse Options of JUNOS Operational 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 Used in JUNOS Operational Commands
Physical Part of an Interface Name
Logical Part of an Interface Name
Channel Identifier Part of an Interface Name
Viewing Files and Directories on a Device Running JUNOS Software
Directories on the Router
Listing Files and Directories
Specifying Filenames and URLs
Displaying JUNOS Software Information
Managing Programs and Processes
Showing Software Processes
Restarting a JUNOS Software Process
Stopping the JUNOS Software
Rebooting the JUNOS Software
Using the JUNOS Comment Character #
Example: Using Comments in JUNOS Commands
Using Commands and Statements to Configure a Device Running JUNOS Software
Understanding JUNOS CLI Configuration Mode
Configuration Mode Commands
Configuration Statements and Identifiers
Configuration Statement Hierarchy
Entering and Exiting Configuration Mode
Modifying the JUNOS Configuration
Displaying the Current Configuration
Example: Displaying the Current Configuration
Adding JUNOS Configuration Statements and Identifiers
Deleting a Statement from a JUNOS Configuration
Example: Deleting a Statement from the JUNOS Configuration
Copying a JUNOS Statement in the Configuration
Example: Copying a Statement in the JUNOS Configuration
Issuing Relative Configuration Commands
Renaming an Identifier
Example: Renaming an Identifier
Inserting a New Identifier
Example: Inserting a New Identifier
Deactivating and Reactivating Statements and Identifiers
Examples: Deactivating and Reactivating Statements and Identifiers
Adding Comments in a JUNOS Configuration
Example: Including Comments in a JUNOS Configurations
Verifying a JUNOS Configuration
Committing a JUNOS Configuration
Committing a JUNOS Configuration and Exiting Configuration Mode
Activating a JUNOS Configuration but Requiring Confirmation
Scheduling a JUNOS Commit Operation
Monitoring the JUNOS 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
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
Understanding How the JUNOS Configuration is Stored
Returning to the Most Recently Committed Configuration
Returning to a Previously Committed JUNOS 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 JUNOS Statements and Identifiers
Specifying Statements
Performing CLI Type-Checking
Synchronizing Routing Engines
Filtering Command Output
Using the Pipe ( | ) Symbol to Filter JUNOS Command Output
Using Regular Expressions with the Pipe ( | ) Symbol to Filter JUNOS Command Output
Pipe ( | ) Filter Functions in the JUNOS Command-Line Interface
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
Controlling the JUNOS CLI Environment
Setting the Terminal Type
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
Setting the JUNOS CLI Screen Length and Width
Setting the Screen Length
Setting the Screen Width
Understanding the Screen Length and Width Settings
Using Shortcuts, Wildcards, and Regular Expressions
Using Keyboard Sequences to Move Around and Edit the JUNOS CLI
Using Wildcard Characters in Interface Names
Using Global Replace in a JUNOS Configuraton
Common Regular Expressions to Use with the replace Command
Using Global Replace in a JUNOS Configuration—Using the \n Back Reference
Using Global Replace in a JUNOS Configuration—Replacing an Interface Name
Using Global Replace in a JUNOS Configuration—Using the upto Option
Using Regular Expressions to Delete Related Items from a JUNOS Configuration
Configuration Groups
Understanding the JUNOS Configuration Groups
Configuration Groups Overview
Inheritance Model
Configuration Groups Configuration Statements
Creating a JUNOS Configuration Group
Applying a JUNOS Configuration Group
Example: Configuring and Applying JUNOS Configuration Groups
Example: Creating and Applying Configuration Groups on a TX Matrix Platform
Disabling Inheritance of a JUNOS Configuration Group
Using Wildcards with Configuration Groups
Configuring Sets of Statements with Configuration Groups
Configuring Interfaces Using JUNOS Configuration Groups
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
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 a 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)
request
restart
set
show
Index
Index
Index of Statements and Commands