JN0-102 · Question #375
Which two commands will provide the current configuration of the MX1-PE1 BGP group on your router? (Choose two.)
The correct answer is B. user@router# show | display set | match MX1-PE1 D. user@router> show configuration | dispaly set | match MX1-PE1. To display the current configuration of a specific BGP group, you can use show | display set | match <group_name> from configuration mode or show configuration | display set | match <group_name> from operational mode.
Question
Which two commands will provide the current configuration of the MX1-PE1 BGP group on your router? (Choose two.)
Options
- Auser@router# show groups | display set | match MX1-PE1
- Buser@router# show | display set | match MX1-PE1
- Cuser@router> show configuration | match set | match MX1-PE1
- Duser@router> show configuration | dispaly set | match MX1-PE1
How the community answered
(30 responses)- A13% (4)
- B80% (24)
- C7% (2)
Why each option
To display the current configuration of a specific BGP group, you can use `show | display set | match <group_name>` from configuration mode or `show configuration | display set | match <group_name>` from operational mode.
`show groups` is too restrictive; it would only show named groups, not the BGP configuration within them, which `show | display set` would provide more comprehensively.
This command is executed from configuration mode (`#` prompt). `show` displays the current configuration, `display set` shows it in "set" format, and `match MX1-PE1` filters for lines containing the specified BGP group name.
This command uses incorrect syntax for filtering; `display set` should precede the `match` filter to correctly display and filter the configuration.
This command is executed from operational mode (`>` prompt). `show configuration` displays the active configuration, and assuming 'dispaly' is a typo for `display set`, it converts the output to "set" format and `match MX1-PE1` filters for relevant lines.
Concept tested: Junos OS configuration display and filtering
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-cli/topics/topic-map/cli-configuration-mode-commands.html
Topics
Community Discussion
No community discussion yet for this question.