You can customize the configuration information by including or excluding lines of output based on the keywords described in this section.
Using a keyword with the show configuration command might be more effective than using show configuration | begin. When show configuration is used with a specific keyword, the current configuration is quickly determined and displayed for only that specified keyword. Executing show configuration | begin causes all output of show configuration to be generated, but the output is not displayed until the begin criterion is met.
Use the virtual-router keyword to display the current configuration of a specified virtual router. You can combine the virtual-router keyword with the category keyword to display the current configuration of specific settings for a virtual router.
Use the interface keyword to display the current configuration of a particular interface. Use the type keyword to target specific interface types. You can exclude information about particular types of interfaces using the exclude-category interface keyword.You can exclude information about particular types of interfaces using the exclude-category interface keyword.
Use the category keyword to display the current configuration of a specific group of router settings. The settings are organized in categories by function.
Use the tag-group keyword with the category interfaces keywords to tag interfaces as belonging to a specific group and display all interfaces within a group.
Use the tag-group command to configure an interface tag group. Any number of interfaces can be in a tag group. The following interface types cannot be added to tag groups: tunnel, lag, mlppp, and mlframe-relay. An interface can be in only one tag group.
Table 31 describes the categories of router settings and the type of information displayed for each category.
Table 31: Categories of Router Settings
Many of the categories described in Table 31 contain subcategories of router settings. For example, you can specify show configuration category management cli to display only the configuration for the CLI. To display the names of subcategories that you can specify for each category, issue the show configuration category categoryName ? command.
You can combine the category keyword with the virtual-router keyword to display the current configuration of specific settings for a virtual router.
![]() |
Note: When you specify categories with the show configuration command, the output might display additional configuration data that is not explicitly associated with the categories that you specified. |
service show-config
- host1#service show-config format 2
show configuration
host1# show configuration ! Configuration script being generated on TUE JAN 29 200X 00:31:12 UTC! Juniper Networks Edge Routing Switch ERX-700 ! Version: x.y.z (January 18, 200X 15:01) ! Copyright (c) 1999-200X Juniper Networks, Inc. All rights reserved. Commands displayed are limited to those available at privilege level 10 ! Juniper Networks Edge Routing Switch ERX-700 boot config running-configuration boot system erx_x-y-z.rel no boot backup no boot subsystem no boot backup subsystem no boot force-backup ! ! Note: The following commands are here to ensure that all virtual routers and ! vrfs are created before other commands that may need to reference them. ! These commands will be repeated further on as each virtual router and vrf ! has its configuration presented. ! virtual-router default virtual-router boston ! ip vrf vpna virtual-router vrA ! hostname host1 exception protocol ftp anonymous null ! controller t1 6/0 channel-group 2 timeslots 1,3-8,10 speed 64 . . . ! virtual-router vrA aaa authentication ppp default radius aaa accounting ppp default radius ! ip address-pool local interface null 0 ip bgp-community new-format no ip source-route ! snmp-server ! ! End of generated configuration script. Example using interface keyword: host1# show configuration interface serial 4/0 interface atm 4/0 atm vc-per-vp 1024 atm uni-version 3.0 ! interface atm 4/0.1 point-to-point profile pppoe myProfile qos-profile myQosProfile ! interface atm 4/0.2 point-to-point qos-profile myQosProfile ip description TestIP ! interface atm 4/0.3 point-to-point Example using category keyword: host1# show configuration category system file-system boot config running-configuration boot system m.rel no boot backup no boot subsystem no boot backup subsystem
show running-configuration
- host1#show running-configuration
- host1#show running-configuration interface
serial 4/0
- host1#show running-configuration category
system file-system
tag-group
- host1(config-if)#tag-group red