cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
46652
Views
0
Helpful
7
Replies

show errors on switch interfaces using a filtered view?

Andy White
Level 3
Level 3

Hello,

I'm trying to get a list of errors on our switch interfaces, I thought this filter would work but it does show the interface name:

show interfaces | inc fastethernet | errors

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 1 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 2 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 interface resets

Thanks

 

1 Accepted Solution

Accepted Solutions

Leo Laohoo
Hall of Fame
Hall of Fame

sh interface | i line protocol|errors

View solution in original post

7 Replies 7

Leo Laohoo
Hall of Fame
Hall of Fame

sh interface | i line protocol|errors

Thanks how can I redirct this to tftp?

 

sh interface | i line protocol|errors| redirect tftp:/192.168.90.11/errors.txt

 

The "redirect" option is one big fat bug.   

 

The only way is to redirect the output to a text file in the appliance's flash and copy the text file to the TFTP server.

Well I can't argue with that lol

sh interface | i Ethernet[0-9]| reliability [^255]/[^255], txload 1/[^255], rxload 1/[^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

Try the above one and see if you'll find it interesting.  This one will filter out VLAN interfaces so you'll get physical interfaces.

Thanks how can I redirct this to tftp?

Direct the output to a file located inside the appliance's flash using the command "COMMAND | redirect BLAH.txt".  

 

Copy the text file from your appliance's flash to your TFTP server using the command "copy flash:blah.txt tftp://<TFTP IP address>".

In CRT just use the transfer menu option to receive the output which saves it to a text file

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: