This shows you the differences between two versions of the page.
howto_sh_pattern_and_interface_cisco [2012/03/09 10:43] |
howto_sh_pattern_and_interface_cisco [2012/03/09 10:43] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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/ | ||
+ | Gi1/ | ||
+ | Gi1/ | ||
+ | Gi1/ | ||
+ | Gi2/ | ||
+ | Gi2/ | ||
+ | Gi2/ | ||
+ | Gi2/ | ||
+ | Gi3/ | ||
+ | Gi3/ | ||
+ | Gi3/ | ||
+ | Gi3/ | ||
+ | Gi4/ | ||
+ | Gi4/ | ||
+ | Gi4/ | ||
+ | Gi4/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | 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 + | ||
+ | < | ||
+ | |||
+ | <!-- AddThis Button BEGIN --> | ||
+ | <a class=" | ||
+ | <!-- AddThis Button END --> | ||
+ | <br> | ||
+ | <br> | ||
+ | </ | ||
+ | |||
+ | Share this knowledge with your friends! |