[Cisco tips] using exclude option

Many people know "include" option that is useful to extract some information from entire configuration. But I don’t think many people use "exclude" option on CLI command mode.

I notice it is useful as well. For example, when you "show running-config", you will see bunch of "!" within output. (Below)
 

Cisco_Router#show running-config

Building configuration…

Current configuration : 13665 bytes
!
! Last configuration change at 20:39:47 EDT Tue Jul 14 2009
! NVRAM config last updated at 21:29:02 EDT Thu Jul 9 2009
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime localtime
service password-encryption
!
hostname MR
!
logging exception 4096
logging count
enable secret 5 $1$pMT.$Lbr2aN7C1dvXamFImW2o70
enable password 7 015736160A080303245F5D
!
clock timezone EST -5
clock summer-time EDT date Apr 30 2008 0:00 Sep 30 2035 0:00
ip subnet-zero
ip flow-cache timeout active 1
!
!        
!      

:
:
:
:

 

If you are using "exclude" option, output would be short and looks in density.
 

Cisco_Router#sh running-config | exclude !
Building configuration…

Current configuration : 13665 bytes
version 12.2
service timestamps debug datetime msec
service timestamps log datetime localtime
service password-encryption
hostname MR
logging exception 4096
logging count
enable secret 5 $1$pMT.$Lbr2aN7C1dvXamFImW2o70
enable password 7 015736160A080303245F5D
clock timezone EST -5
clock summer-time EDT date Apr 30 2008 0:00 Sep 30 2035 0:00
ip subnet-zero
ip flow-cache timeout active 1
 

 

Leave a Reply