SRC-PE CLI User Guide

About This Guide
Objectives
Audience
Documentation Conventions
Related Juniper Networks Documentation
Obtaining Documentation
Documentation Feedback
Requesting Support
Introducing the CLI
About the SRC 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
Getting Started: A Quick Tour of the CLI
Before You Start the SRC CLI
Starting the CLI
Starting the CLI on a C-series Platform
Starting the CLI on a Solaris Platform
Displaying Commands
Verifying System Status
Configuring a User Account
Creating a Configuration
Using Shortcuts to Create a Configuration
Making Changes to the Configuration
Rolling Back Configuration Changes
SRC 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
Switching to Configuration Mode
Returning to Operational Mode
Running Operational Mode Commands from Configuration Mode
Moving Among Hierarchy Levels
Displaying CLI Command History
CLI Support for C-series Platforms and for SRC Software installed on Solaris Platforms
Getting Online Help
Getting Help for Commands and Statements
Getting 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
Using CLI Operational Commands to Monitor the SRC Software
CLI Command Categories
Commonly Used Operational Mode Commands
Viewing Files and Directories
Directories on the C-series Platform
Listing Files and Directories
Specifying Filenames and URLs
Managing SRC Components
Viewing C-series Platform Information
Restarting an SRC Component
Stopping the SRC Software
Rebooting the SRC Software
Using Commands and Statements to Configure the SRC Software
Understanding CLI Configuration Mode
Configuration Mode Commands
Configuration Statements
Configuration Statement Hierarchy
Entering and Exiting Configuration Mode
Entering Configuration Mode
Exiting from Configuration Mode
Modifying the Configuration
Entering Values for Statement Options
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
Renaming an Identifier
Example: Renaming an Identifier
Inserting a New Identifier
Examples: Inserting a New Identifier
Verifying a Configuration
Committing a Configuration
Committing a Configuration and Exiting Configuration Mode
When Multiple Users Configure the Software
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
Counting the Number of Lines of Output
Displaying Output in XML Tag Format
Disregarding Output That Does Not Match a Regular Expression
Displaying Output from the First Match of a Regular Expression
Displaying the End of the Output for a Command
Displaying Output That Matches a Regular Expression
Preventing Output from Being Paginated
Saving Output to a File
Using Keyboard Shortcuts at the Command Line
Controlling the CLI Environment
Overview of Commands to Control the CLI Environment
Setting the Editing Level for the CLI
Setting the Terminal Type
Setting the Language for the Terminal Environment
Setting the Screen Length
Setting the Screen Width
Changing the Password
Setting the CLI Prompt
Setting the CLI Directory
Setting Command Completion
Viewing CLI Settings
Managing Configurations
How the Configuration Is Stored
Updating the Configuration
Before You Load a Configuration
Commands to Load a Configuration
Working with Configuration Files in XML Format
About XML Format for Configuration Files
Using Attributes When Editing an XML Configuration File
Preparing an XML File to Be Loaded into the Current SRC Configuration
About ASCII Files That Contain Configuration Mode Commands
Loading a Configuration
Replacing the Current Configuration with the Default SRC Configuration
Merging the Active Configuration with Another Configuration
Replacing the Configuration
Replacing Parts of the Configuration
Adding a Configuration Through Configuration Mode Commands
Loading a Configuration at a Specified Hierarchy Level
Reverting to a Previous Configuration
Cutting and Pasting Configuration Information at the CLI
Managing SRC Components with the CLI
Verifying Status of SRC Components
Enabling SRC Components
Disabling an SRC Component
Restarting an SRC Component