CCIE Pursuit Blog

July 6, 2007

Get Your Verbose Ethernet Stats Right Here

Filed under: Cool Commands,IOS,Switching — cciepursuit @ 2:11 pm

I stumbled across this command a couple of weeks ago “show controller ethernet-controller”.  This will give you a wealth of information about an Ethernet port:

sw1#show controller ethernet-controller fa1/0/1

     Transmit FastEthernet1/0/1               Receive
   4077220072 Bytes                       2097409522 Bytes
     14524440 Unicast frames                12968597 Unicast frames
     31786595 Multicast frames                466592 Multicast frames
     10505841 Broadcast frames                 36612 Broadcast frames
            0 Too old frames              2058851530 Unicast bytes
            0 Deferred frames               31922321 Multicast bytes
            0 MTU exceeded frames            5212803 Broadcast bytes
            0 1 collision frames                   0 Alignment errors
            0 2 collision frames                   0 FCS errors
            0 3 collision frames                   0 Oversize frames
            0 4 collision frames                   0 Undersize frames
            0 5 collision frames                   0 Collision fragments
            0 6 collision frames
            0 7 collision frames             2533081 Minimum size frames
            0 8 collision frames             4714955 65 to 127 byte frames
            0 9 collision frames             5824957 128 to 255 byte frames
            0 10 collision frames             161994 256 to 511 byte frames
            0 11 collision frames             112968 512 to 1023 byte frames
            0 12 collision frames             123846 1024 to 1518 byte frames
            0 13 collision frames                  0 Overrun frames
            0 14 collision frames                  0 Pause frames
            0 15 collision frames
            0 Excessive collisions                 0 Symbol error frames
            0 Late collisions                      0 Invalid frames, too large
            0 VLAN discard frames                  0 Valid frames, too large
            0 Excess defer frames                  0 Invalid frames, too small
     18319560 64 byte frames                       0 Valid frames, too small
     24450734 127 byte frames
      7975626 255 byte frames                      0 Too old frames
       632163 511 byte frames                      0 Valid oversize frames
       591242 1023 byte frames                     0 System FCS error frames
      4847551 1518 byte frames                     0 RxPortFifoFull drop frame
            0 Too large frames
            0 Good (1 coll) frames
            0 Good (>1 coll) frames

While I generally like to use the “show interface fax/x status” and “show interface fax/x counter errors” to check Ethernet ports, this command is nice because it breaks the information down for transmit and receive (“show interface fax/x stats” does something similar, but not to the extent of this command).

One caveat: to clear the counters for this command you must use “clear controller ethernet-controller fax/x” rather than “clear counters fax/x”:

sw1#sh int fa1/0/15 stats
FastEthernet1/0/15
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor          0          0     641722   47035214
             Route cache          0          0          0          0
                   Total          0          0     641722   47035214

sw1#sh controller ethernet-controller fa1/0/15

     Transmit FastEthernet1/0/15              Receive
    152950109 Bytes                          5137184 Bytes
       220909 Unicast frames                   31752 Unicast frames
      1400530 Multicast frames                  9087 Multicast frames
       512320 Broadcast frames                     6 Broadcast frames
—-output truncated———–

sw1#clear counters fa1/0/15
Clear “show interface” counters on this interface [confirm]

This works for the interface stats but not the controller ethernet-controller counters:
sw1#sh int fa1/0/15 stats
FastEthernet1/0/15
          Switching path    Pkts In   Chars In   Pkts Out  Chars Out
               Processor          0          0          9        608
             Route cache          0          0          0          0
                   Total          0          0          9        608
sw1#sh controller ethernet-controller fa1/0/15

     Transmit FastEthernet1/0/15              Receive
    152965336 Bytes                          5137471 Bytes
       220917 Unicast frames                   31753 Unicast frames
      1400657 Multicast frames                  9088 Multicast frames
       512386 Broadcast frames                     6 Broadcast frames
—-output truncated———–

sw1#clear controllers ethernet-controller fa1/0/15Now the counters are cleared:
sw1#sh controller ethernet-controller fa1/0/15

     Transmit FastEthernet1/0/15              Receive
         2263 Bytes                                0 Bytes
            0 Unicast frames                       0 Unicast frames
           19 Multicast frames                     0 Multicast frames
           10 Broadcast frames                     0 Broadcast frames
—-output truncated———–


Cisco Documentation:show controller ethernet-controller (3550)

show controller ethernet-controller (3560)

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: