You have access to a variety of show commands that display router and protocol information. You can filter the output of a show command by specifying | (the UNIX pipe symbol), one of the following keywords, and either a case-sensitive text string or a regular expression.
For a list of regular expressions, see Regular Expressions. You can press Ctrl+c to interrupt the show command output.
![]() |
Note: The system does not recognize beginning spaces of the text string. For example, if you enter include IP as the text string on which to filter, the system ignores the space and displays lines that include words such as RIP. |
Example 1
In the following example, the output display starts with the first line that contains the string inter. The system omits all the preceding lines of the output from the display because none of them contains the string inter.
host1#show config include-defaults | begin inter Please wait...log verbosity low internalNetwork log verbosity low ipEngine log verbosity low ipProfileMgr log verbosity low ipProfileMgrEngineering no log engineering log fields timestamp instance no-calling-task ! timing select primary timing source primary internal timing source secondary internal timing source tertiary internal ! no disable-autosync no disable-switch-on-error no redundancy lockout 0 ! virtual-router default ip domain-lookup ip name-server 10.2.0.3 ip domain-name 789df ! host f 10.10.133.11 ftp anonymous null interface null 0 interface ip 0/0 arp timeout 21600 ! interface ip 2/0 arp timeout 21600 ! interface ip s10 arp timeout 21600 ! interface atm 2/0 no shutdown atm sonet stm-1 loopback line atm uni-version 3.0 atm oam loopback-location 0xFFFFFFFF atm vc-per-vp 32768 atm vp-tunnel 1 10 load-interval 300 no atm snmp trap link-status no atm shutdown ! no atm aal5 snmp trap link-status no atm aal5 shutdown ! interface atm 2/0.1 point-to-point no shutdown no atm atm1483 shutdown no atm atm1483 snmp trap link-status ! ip route 0.0.0.0 0.0.0.0 10.13.5.1 ip debounce-time 0 ip source-route ! router ospf 5 no ospf shutdown ip route-type both timers spf 3 maximum-paths 4 ospf auto-cost reference-bandwidth 100 distance ospf intra-area 110 distance ospf inter-area 112 distance ospf external 114 ! Area 0.0.0.0 ! ! Trap Source: <not configured> ! Note: SNMP server not running. ! host1#
Example 2
In the following example, the output display consists only of lines that contain the string ip. The system omits all other lines of the output from the display because none of them contains the string ip.
host1#show config include-defaults | include ip ! Configuration script generated on WED JUN 06 2001 02:17:00 UTC strip-domain disable Please wait...log verbosity low ipEngine log verbosity low ipEngineering log verbosity low ipGeneral log verbosity low ipInterface log verbosity low ipNhopTrackerEngineering log verbosity low ipNhopTrackerGeneral log verbosity low ipProfileMgr log verbosity low ipProfileMgrEngineering ! bandwidth oversubscription ip domain-lookup ip name-server 10.2.0.3 ip domain-name 789df interface ip 0/0 interface ip 2/0 interface ip s10 ip address 10.13.5.61 255.255.255.0 no ip proxy-arp no ip directed-broadcast ip redirects ip route 0.0.0.0 0.0.0.0 10.13.5.1 ip debounce-time 0 ip source-route no ip ftp source-address type echo protocol ipIcmpEcho 10.5.0.200 source fastEthernet0/0 type pathEcho protocol ipIcmpEcho 10.2.0.3 type echo protocol ipIcmpEcho 10.5.0.11 source-ipaddr 10.13.5.61 ! controller t1 6/0 framing esf lineCoding b8zs clock source line cablelength short 0 no remote-loopback ! log engineering log verbosity low no log severity log verbosity low NameResolverLog log verbosity low atm log verbosity low atm1483 log verbosity low atmAal5 log verbosity low bgpConnections log verbosity low bgpDampening ! host1#
Example 3
In the following example, the output display consists only of lines that do not contain the string !. The system omits all other lines of the output from the display because each line contains the string !.
host1#show config include-defaults | exclude ! boot config running-configuration boot system 3-3-1.rel no boot backup no boot subsystem no boot backup subsystem boot revert-tolerance 3 1800 no boot force-backup aaa domain-map jacksonville virtual-router miami strip-domain disable aaa domain-map jak virtual-router default strip-domain disable aaa domain-map northeast virtual-router default strip-domain disable aaa delimiter realmName "/" hostname host1 no aaa new-model no service ctrl-x-reboot no service password-encryption no baseline show-delta-counts clock timezone UTC 0 0 no exception dump exception protocol ftp anonymous null controller sonet 2/0 sdh loopback network clock source line no shutdown path 0 overhead j1 msg hello path 0 overhead j1 exp-msg ftp-server enable no login log engineering log verbosity low no log severity log verbosity low NameResolverLog log verbosity low aaaAtm1483Cfg log verbosity low atm1483 log verbosity low atmAal5 log verbosity low bgpConnections log verbosity low bgpDampening log verbosity low bgpEng1 log verbosity low bgpEngineering log verbosity low bgpEvents log verbosity low bgpKeepAlives no log engineering log fields timestamp instance no-calling-task timing select primary timing source primary internal timing source secondary internal timing source tertiary internal no atm aal5 snmp trap link-status no atm aal5 shutdown interface atm 2/0.1 point-to-point no shutdown no atm atm1483 shutdown no atm atm1483 snmp trap link-status ip route 0.0.0.0 0.0.0.0 10.13.5.1 ip debounce-time 0 ip source-route