Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

show errors on switch interfaces using a filtered view?

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
Hall of Fame Super Gold

sh interface | i line

sh interface | i line protocol|errors

6 REPLIES
Hall of Fame Super Gold

sh interface | i line

sh interface | i line protocol|errors

Community Member

Thanks how can I redirct this

Thanks how can I redirct this to tftp?

 

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

 

Hall of Fame Super Gold

The "redirect" option is one

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.

Community Member

Well I can't argue with that

Well I can't argue with that lol

Hall of Fame Super Gold

sh interface | i Ethernet[0-9

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.

Hall of Fame Super Gold

Thanks how can I redirct this

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>".

64
Views
0
Helpful
6
Replies
CreatePlease to create content