12-01-2014 01:19 AM
I'm trying to setup a IOS command that will only output
lines when there are non zery CRC counters.
Step 1 ... list CRC counters
Switch#show interfaces | include CRC
Step 2 ... filter out all zery counters
Switch#show interfaces | include CRC | exclude ", 0 CRC,"
Such a "double pipe" works on NXOS, but it does not seem to be supported in IOS.
Can you offer help for this detection stmt?
Thanks, Thomas
Solved! Go to Solution.
12-01-2014 05:16 AM
It works on the newer version of IOS. I have 6500 running 12.33.SXI7 and multiple pipe works on it.
For old IOS's, you can try to deply a TCL script which can enable support for multiple Pipe. Script is available here :
https://supportforums.cisco.com/document/75956/multiple-pipe-support
For any support on this script, you have to contact the owner on the same thread.
As another option, you can try to poll your device with SNMP and fetch CRC errors on interfaces, using OID locIfInCRC.
-Thanks
Vinod
12-12-2014 10:28 AM
Hello, Thomas.
As a workaround we can use regex.
12-01-2014 05:16 AM
It works on the newer version of IOS. I have 6500 running 12.33.SXI7 and multiple pipe works on it.
For old IOS's, you can try to deply a TCL script which can enable support for multiple Pipe. Script is available here :
https://supportforums.cisco.com/document/75956/multiple-pipe-support
For any support on this script, you have to contact the owner on the same thread.
As another option, you can try to poll your device with SNMP and fetch CRC errors on interfaces, using OID locIfInCRC.
-Thanks
Vinod
12-01-2014 07:58 AM
Thanks Vinod, very well!
we recently installed a new C2960XR, and this has 15.0(2)EX5, but does not appear to support multiple pipes. So, perhaps this features is more a question of which IOS edition but recency of version?
Thanks and regards, Thomas
12-01-2014 08:03 AM
furthermore, my IOS appears not to know the command "show event manager version", nor the "event manager" configuration commands, which are required for installing cl_multi_pipe.tcl. :-(
12-12-2014 11:01 AM
I checked the Image version and seems this IOS code doesnt supports EEM. You can check the feature navigator to see if any version supported on this Platform will be able to run EEM. You can access Cisco Feature Navigator here :
http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp
-Thanks
Vinod
12-12-2014 10:28 AM
Hello, Thomas.
As a workaround we can use regex.
12-14-2014 11:43 PM
Luis,
thanks for sharing this idea.
I think your example is a little bit misleading, because, in the brackets, you have a set of characters. You could equally have written "show interfaces | include input errors, [^RC0 ]"
So, I think the following variant should be both readable and functional: it will not list any CRC numbers that start with a 0 (effectively all non-zero values)
sw01#show interfaces | include input errors, [^0][0-9]* CRC
2 input errors, 1 CRC, 1 frame, 0 overrun, 0 ignored
sw01#
or
sw01#show interfaces | include input errors, [1-9][0-9]* CRC
2 input errors, 1 CRC, 1 frame, 0 overrun, 0 ignored
sw01#
Thanks, Thomas
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