Without the extension package-name filter, the show command displays the entire user-defined configuration hierarchy. The extension package-name show command, however, displays only the configuration statements contributed by packages whose names match those in the command. The subset of matches includes packages whose package names exactly match the value of package-name as well as those whose names have the same root but may have longer names, similar to a wildcard situation. The output displays the settings relating to all matches.
The following example shows simplified output illustrating how the extension show filter works. Suppose a router has packageA, packageB, and packageAB installed. When you issue the show command, you see the following output:
- user@host# show
- system {
-
- packageA {
- ....
- }
-
- packageB {
- ....
- }
-
- packageAB {
- ....
- }
- }
If you issue the command extension packageA show, you see a subset of the previous show command output. The output displays settings for packages with names that not only exactly match packageA but also have roots that match (in this case, packageAB):
- user@host# extension packageA show
- system {
-
- packageA {
- ....
- }
-
- packageAB {
- ....
- }
- }