
- •Contents
- •Course Overview
- •Course Agenda
- •Document Conventions
- •Additional Information
- •The Junos CLI (Detailed)
- •Overview
- •Part 1: Logging In and Exploring the CLI
- •Step 1.1
- •Step 1.2
- •Step 1.3
- •Step 1.4
- •Step 1.5
- •Step 1.6
- •Step 1.7
- •Step 1.8
- •Step 1.9
- •Step 1.10
- •Step 1.11
- •Step 1.12
- •Step 1.13
- •Step 1.14
- •Step 1.15
- •Step 1.16
- •Step 1.17
- •Step 1.18
- •Step 1.19
- •Initial System Configuration (Detailed)
- •Overview
- •Part 1: Loading a Factory-Default Configuration and Performing Initial Configuration
- •Step 1.1
- •Step 1.2
- •Step 1.3
- •Step 1.4
- •Step 1.5
- •Step 1.6
- •Step 1.7
- •Step 1.8
- •Step 1.9
- •Step 1.10
- •Step 1.11
- •Step 1.12
- •Step 1.13
- •Step 1.14
- •Step 1.15
- •Step 1.16
- •Part 2: Saving, Displaying, Loading, and Deleting a Rescue Configuration
- •Step 2.1
- •Step 2.2
- •Step 2.3
- •Step 2.4
- •Step 2.5
- •Step 2.6
- •Step 2.7
- •Step 2.8
- •Step 2.9
- •Part 3: Configuring Interfaces and Verifying Operational State
- •Step 3.1
- •Step 3.2
- •Step 3.3
- •Step 3.4
- •Secondary System Configuration (Detailed)
- •Overview
- •Part 1: Configuring User Authentication
- •Step 1.1
- •Step 1.2
- •Step 1.3
- •Step 1.4
- •Step 1.5
- •Step 1.6
- •Step 1.7
- •Step 1.8
- •Step 1.9
- •Step 1.10
- •Step 1.11
- •Step 1.12
- •Step 1.13
- •Step 1.14
- •Step 1.15
- •Step 1.16
- •Step 1.17
- •Step 1.18
- •Step 1.19
- •Part 2: Performing System Management Options
- •Step 2.1
- •Step 2.2
- •Step 2.3
- •Step 2.4
- •Step 2.5
- •Step 2.6
- •Step 2.7
- •Step 2.8
- •Step 2.9
- •Step 2.10
- •Step 2.11
- •Step 2.12
- •Step 2.13
- •Step 2.14
- •Step 2.15
- •Step 2.16
- •Step 2.17
- •Step 2.18
- •Operational Monitoring and Maintenance (Detailed)
- •Overview
- •Part 1: Monitoring System and Chassis Operation
- •Step 1.1
- •Step 1.2
- •Step 1.3
- •Step 1.4
- •Step 1.5
- •Step 1.6
- •Step 1.7
- •Step 1.8
- •Step 1.9
- •Step 1.10
- •Step 1.11
- •Step 1.12
- •Step 1.13
- •Step 1.14
- •Step 1.15
- •Step 1.16
- •Part 2: Using Network Utilities and Monitoring Traffic
- •Step 2.1
- •Step 2.2
- •Step 2.3
- •Step 2.4
- •Step 2.5
- •Step 2.6
- •Part 3: Upgrading the Junos OS
- •Step 3.1
- •Step 3.2
- •Step 3.3
- •Step 3.4
- •Step 3.5
- •Part 4: Recovering the Root Password
- •Step 4.1
- •Step 4.2
- •Step 4.3
- •Step 4.4
- •Step 4.5
- •Step 4.6
- •Step 4.7
- •Step 4.8
- •Lab 5 (Optional)
- •The J-Web Interface (Detailed)
- •Overview
- •Part 1: Logging In to and Exploring the J-Web Interface
- •Step 1.1
- •Step 1.2
- •Step 1.3
- •Step 1.4
- •Step 1.5
- •Step 1.6
- •Step 1.7
- •Step 1.8
- •Step 1.9
- •Part 2: Exploring J-Web Configuration and Diagnostic Capabilities
- •Step 2.1
- •Step 2.2
- •Step 2.3
- •Step 2.4
- •Step 2.5
- •Step 2.6
- •Step 2.7
- •Step 2.8
- •Step 2.9
- •Appendix A: Lab Diagrams

lab@srxA-1> show interfaces | match down | match Physical | count
Count: 11 lines
Step 1.12
A large portion of the Junos OS documentation is available directly from the CLI. You can retrieve high-level topics using the help topic command, whereas you can obtain detailed configuration-related information with the help reference command.
Use the help reference command along with the CLI question-mark operator (?) to find detailed information about configuring a system hostname.
lab@srxA-1> help reference ?
Possible completions: access accounting-options ancp
applications bfd
bgp bridge-domains chassis class-of-service connections diameter
dlsw dot1x dvmrp
dynamic-profiles esis event-options firewall
forwarding-options igmp
interfaces isis l2-learning l2circuit l2vpn layer2-control
layer2-vpns Use the 'help reference l2vpn' command layer3-vpns
ldp link-management lldp logical-systems mld
mpls msdp mvpn oam ospf ospf3 pgm pim
www.juniper.net |
The Junos CLI (Detailed) • Lab 1–11 |

poe policy-options ppp protection-group rip
ripng router-advertisement router-discovery routing-instances routing-options
rsvp sap
schedulers security services snmp
stp switch-options system
vpls vpns vrrp
Question: Which CLI command displays reference information about configuration of the system’s hostname?
Answer: The help reference system host-name command displays information regarding system hostnames:
lab@srxA-1> help reference system host-name host-name
Syntax
host-name hostname;
Hierarchy Level
[edit system]
Release Information
Statement introduced before JUNOS Release 7.4.
Statement introduced in JUNOS Release 9.0 for EX Series switches.
Description
Set the hostname of the router or switch.
Lab 1–12 • The Junos CLI (Detailed) |
www.juniper.net |

Options
hostname--Name of the router or switch. Required Privilege Level
system--To view this statement in the configuration. system-control--To add this statement to the configuration.
Related Topics
* Configuring the Hostname of the Router
Step 1.13
Enter configuration mode.
lab@srxA-1> configure Entering configuration mode
[edit] lab@srxA-1#
Question: What happens to your prompt?
Answer: A pound sign (#) replaces the angle bracket (>), and a configuration hierarchy banner displays.
Question: According to the prompt, what is your position in the configuration hierarchy?
Answer: The display indicates that you are now at the [edit] hierarchy, which is the root of the configuration tree.
Step 1.14
Display the interfaces portion of the candidate configuration.
[edit]
lab@srxA-1# show interfaces
www.juniper.net |
The Junos CLI (Detailed) • Lab 1–13 |

ge-0/0/0 {
description "MGMT Interface - DO NOT DELETE"; unit 0 {
family inet {
address 10.210.14.131/27;
}
}
}
Step 1.15
Position yourself at the [edit interfaces] configuration hierarchy.
[edit]
lab@srxA-1# edit interfaces
[edit interfaces] lab@srxA-1#
Question: What happens to the banner?
Answer: The banner now correctly shows that the user is at the [edit interfaces] portion of the configuration hierarchy.
Question: What is the result of a show command now?
Answer: A show command displays information pertaining only to configuration statements at and below the current hierarchy. In this case, the software displays only the configuration statements for the system’s ge-0/0/0 interface:
[edit interfaces] lab@srxA-1# show ge-0/0/0 {
description "MGMT Interface - DO NOT DELETE"; unit 0 {
family inet {
address 10.210.14.131/27;
}
}
}
Lab 1–14 • The Junos CLI (Detailed) |
www.juniper.net |