Using display set to View Junos Configuration
A network engineer is in configuration mode and wants to see the configuration in a format that can be directly pasted into another router to reproduce the configuration. Which output modifier should they use?
⚠ Common exam trap
The trap here is that candidates familiar with Cisco IOS often expect 'show running-config' to output pasteable commands, but Junos requires the explicit '| display set' modifier to achieve the same effect, leading them to choose '| display xml' or '| display inheritance' due to unfamiliarity with Junos output modifiers.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
| display set
The '| display set' output modifier converts the current Junos configuration into a series of 'set' commands. This format is directly pasteable into another router's CLI to reproduce the exact configuration, making it ideal for configuration migration or backup restoration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
| display inheritance
Why it's wrong here
Using 'display inheritance' without a companion format filter shows the configuration in hierarchical brace style, but it expands inherited configuration groups so you can see effective values. It does not convert the output into per-command 'set' statements, so it cannot be pasted directly into another device to reproduce the configuration.
- ✓
| display set
Why this is correct
The 'display set' pipe option transforms the entire Junos configuration into a series of 'set' commands, one per line, in configuration-mode syntax. This output can be copied and pasted directly into another Junos device's configuration mode, or used in scripts, version control, and automated provisioning, making it the standard way to capture a reproducible configuration.
- ✗
| display xml
Why it's wrong here
The 'display xml' pipe option renders the configuration in XML, which is ideal for NETCONF, automation tools, and programmatic parsing, but it does not produce CLI commands. An XML configuration requires translation to 'set' or 'edit' commands before it can be applied interactively, so it does not meet the engineer's need for a directly pasteable command set.
- ✗
| count
Why it's wrong here
The 'count' pipe option simply counts the number of lines in the output and displays that integer, without altering the configuration's format. It is a diagnostic tool for measuring output size, not for exporting or replicating a configuration, so it is irrelevant when the goal is to capture all commands for replay on another device.
Go deeper
Related to this question
About these practice questions
Courseiva writes every JN0-106 question from scratch — 326 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This JN0-106 practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JN0-106 exam.