04-05-2014 08:18 AM - edited 03-07-2019 07:00 PM
What regular expression do I use to find error counters not equal to zero on an IOS based switch?
04-05-2014 08:34 AM
I use the following on cisco 4500's
sh interfaces | i ([^0] runts|[^0] giants|[^0] throttles)|(line protocol is up)|([^0] input errors|[^0] output errors) | Will display any errors on ports |
show ip interf brief | e unassigned | Display only interfaces that have an IP |
sh int | i Half|is up | Display interfaces that are half-duplex |
sh interfaces | i (is up,)|(drops: [^0]) | Display output drops |
sh interfaces | i (is up) | (minute.*rate [^0]) | Display input/output packet/sec |
04-07-2014 06:31 PM
show interface | i Ethernet[1-9]| reliability [^255]/[^255], txload [^01]/[^255], rxload [^01]/[^255]|Last input never|output never|Total output drops:_[^0]|[^0]_CRC|[^0]_unknown protocol drops|[^0]_late collision|[^0]_lost carrier|[^0]_output buffer
I have this
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