Aruba / HP Switches Clear Interface Counters

KB ID 0001519

Problem

I was looking for a way to clear (zero) ALL interface counters, (in my case on a 5412-Zl2).

Petes-HP-Switch# show int A1

 Status and Counters - Port Counters for port A1

  Name  : Trunk Uplink Member 1
  MAC Address      : f40343-787aaa
  Link Status      : Up
  Port Enabled     : Yes
  Totals (Since boot or last clear) :
   Bytes Rx        : 3,243,414,990        Bytes Tx        : 4,155,683,352
   Unicast Rx      : 1,729,923,935        Unicast Tx      : 3,184,593,493
   Bcast/Mcast Rx  : 24,777,382           Bcast/Mcast Tx  : 59,001,502
  Errors (Since boot or last clear) :
   FCS Rx          : 56,422               Drops Tx        : 0
   Alignment Rx    : 0                    Collisions Tx   : 0
   Runts Rx        : 0                    Late Colln Tx   : 0
   Giants Rx       : 4,869,708            Excessive Colln : 0
   Total Rx Errors : 4,926,130            Deferred Tx     : 0
  Others (Since boot or last clear) :
   Discard Rx      : 53                   Out Queue Len   : 0
   Unknown Protos  : 0
  Rates (5 minute weighted average) :
   Total Rx(Kbps) : 4,176                  Total Tx(Kbps) : 768
   Unicast Rx (Pkts/sec) : 695            Unicast Tx (Pkts/sec) : 674
   B/Mcast Rx (Pkts/sec) : 2              B/Mcast Tx (Pkts/sec) : 9
   Utilization Rx  : 00.04 %		  Utilization Tx  :     0 %

Solution

The command I was looking for is, clear statistics local.

Petes-HP-Switch# clear statistics global

So now, my stats have ‘dropped” (Note: its a busy port!)

Petes-HP-Switch# show int A1

 Status and Counters - Port Counters for port A1

  Name  : Trunk Uplink Member 1
  MAC Address      : f40343-787aaa
  Link Status      : Up
  Totals (Since boot or last clear) :
   Bytes Rx        : 1,759                Bytes Tx        : 1,555
   Unicast Rx      : 1,630                Unicast Tx      : 1,301
   Bcast/Mcast Rx  : 15                   Bcast/Mcast Tx  : 29
  Errors (Since boot or last clear) :
   FCS Rx          : 0                    Drops Tx        : 0
   Alignment Rx    : 0                    Collisions Tx   : 0
   Runts Rx        : 0                    Late Colln      : 0
   Giants Rx       : 0                    Excessive Colln : 0
   Total Rx Errors : 0                    Deferred Tx     : 0
  Others (Since boot or last clear) :
   Discard Rx      : 0                    Out Queue Len   : 0
   Unknown Protos  : 0
  Rates (5 minute weighted average) :
   Total Rx(Kbps) : 1,120                 Total Tx(Kbps) : 752
   Unicast Rx (Pkts/sec) : 689            Unicast Tx (Pkts/sec) : 672
   B/Mcast Rx (Pkts/sec) : 2              B/Mcast Tx (Pkts/sec) : 10
   Utilization Rx  : 00.04 %		  Utilization Tx  :     0 %

Related Articles, References, Credits, or External Links

NA

Author: PeteLong

Share This Post On

Submit a Comment

Your e-mail address will not be published. Required fields are marked *