07-17-2024 04:20 AM
Hello everyone,
One of the useful commands I'm finding is "show interfaces summary" because it shows all of the ports that have sent/received packets since the last reboot, even if the the port is currently disconnected. This is useful information for a a number of reasons, like for cable cleanup.
For large stacks and chassis switches it can be annoying though because you have to go line by line to see if a port is all 0s between ports that do have packets being sent, if that makes sense.
I've heard you can manipulate the command with include/begin/exclude to only show ports with all 0s, or only show ports without all 0s.. Something like 'sh interfaces summary | i 0|0|0', or something like that. I don't know the actual command, and it's not something I can use "?" to find out. Does anyone know how to do this? I typically only ever "include/begin" one thing after the pipe.
Solved! Go to Solution.
07-17-2024 04:27 AM
Are you familiar with regex?
https://www.cisco.com/c/en/us/td/docs/ios/12_2/dial/configuration/guide/dafaapre.html
07-17-2024 04:27 AM
Are you familiar with regex?
https://www.cisco.com/c/en/us/td/docs/ios/12_2/dial/configuration/guide/dafaapre.html
07-17-2024 04:44 AM
I was not familiar with it. I was able to get 'sh interfaces summary | e 0 +0 +0 +0 +0 +0' to show exactly what I want, thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide