====== Find all interfaces matching with a certain pattern - Cisco IOS ====== Here an example with the description field sh int desc | i DHKESXDDPCOP00+ This will yield the following Gi1/0/4 up up DHKESXDDPCOP001 SC Gi1/0/5 up up DHKESXDDPCOP004 SC Gi1/0/6 up up DHKESXDDPCOP002 SC Gi1/0/12 up up DHKESXDDPCOP003 SC Gi2/0/4 up up DHKESXDDPCOP001 DD Gi2/0/5 up up DHKESXDDPCOP004 DD Gi2/0/6 up up DHKESXDDPCOP002 DD Gi2/0/12 up up DHKESXDDPCOP003 DD Gi3/0/4 up up DHKESXDDPCOP001 NFS Gi3/0/5 up up DHKESXDDPCOP004 NFS Gi3/0/6 up up DHKESXDDPCOP002 NFS Gi3/0/12 up up DHKESXDDPCOP003 NFS Gi4/0/4 up up DHKESXDDPCOP001 NFS Gi4/0/5 up up DHKESXDDPCOP004 NFS Gi4/0/6 up up DHKESXDDPCOP002 NFS Gi4/0/12 up up DHKESXDDPCOP003 NFS sh = show int = interface desc = description | i = include with the following text DHKESXDDPCOP00+ = all descriptors matching DHKESXDDPCOP00 and whatever follows on that line (indicated by the + Bookmark and Share

Share this knowledge with your friends!