×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

show errors on switch interfaces using a filtered view?

Answered Question
Apr 23rd, 2014
User Badges:

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

 

Correct Answer by Leo Laohoo about 3 years 3 months ago

sh interface | i line protocol|errors

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Leo Laohoo Wed, 04/23/2014 - 00:52
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

sh interface | i line protocol|errors

Andy White Wed, 04/23/2014 - 01:18
User Badges:

Thanks how can I redirct this to tftp?

 

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

 

Leo Laohoo Wed, 04/23/2014 - 04:24
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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.

Leo Laohoo Wed, 04/23/2014 - 14:37
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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.

Leo Laohoo Thu, 04/24/2014 - 04:39
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community. 

  • Cisco Designated VIP,

    2017 LAN, Wireless

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

Actions

This Discussion