Skip to content

Support

Techpubs Home
Report an Error

Short Contents

Entire manual as PDF [2409 KB]

Chapter: About This Guide
[PDF 114 KB]
Objectives
Supported Routing Platforms
Audience
Using the Indexes
Using the Examples in This Manual
Merging a Full Example
Merging a Snippet
Documentation Conventions
Related Juniper Networks Documentation
Documentation Feedback
Requesting Support
Chapter: Introducing the CLI
[PDF 123 KB]
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
Chapter: Getting Started: A Quick Tour of the CLI
[PDF 136 KB]
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
Chapter: CLI Basics
[PDF 163 KB]
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
Chapter: Getting Online Help
[PDF 94 KB]
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
Chapter: Using CLI Operational Commands to Monitor the Router
[PDF 212 KB]
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
Chapter: Using Commands and Statements to Configure the Router
[PDF 316 KB]
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
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
Chapter: Managing Configurations
[PDF 158 KB]
How the Configuration Is Stored
Returning to the Most Recently Committed Configuration
Returning to a Configuration Prior to the Most Recently Committed One
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
Chapter: Filtering Command Output
[PDF 126 KB]
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
Chapter: Controlling the CLI Environment
[PDF 66 KB]
Setting the Terminal Type
Setting the Screen Length
Setting the Screen Width
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
Chapter: Using Shortcuts, Wildcards, and Regular Expressions
[PDF 129 KB]
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
Chapter: Configuration Groups
[PDF 192 KB]
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 s0-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
Chapter: Summary of Configuration Group Statements
[PDF 51 KB]
apply-groups
apply-groups-except
groups
Chapter: Summary of CLI Environment Commands
[PDF 99 KB]
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
Chapter: Summary of CLI Configuration Mode Commands
[PDF 168 KB]
activate
annotate
commit
copy
deactivate
delete
edit
exit
help    
insert
load
quit
rename
replace
rollback
run
save
set
show
show | display inheritance defaults
show | display set
show | display set relative
show groups junos-defaults
status
top
up
update
wildcard
Chapter: Summary of CLI Operational Mode Commands
[PDF 75 KB]
configure
file
help
| (pipe)
quit
request
restart
restart (Routing Matrix)
restart (J-series Services Routers)
set
show
Chapter: Index
[]
Chapter: Index of Statements and Commands
[]