Home > Quickie > Quickie: How to clear all port statistics on Brocade switches

Quickie: How to clear all port statistics on Brocade switches

During one migration I wanted to clear out all port statistics on Brocade switch. I couldn’t find any command which would clear statistics for all port and I had to do it one by one 🙁

portstatsclear 0
portstatsclear 1
portstatsclear 2
portstatsclear 3
portstatsclear 4
portstatsclear 5
portstatsclear 6
portstatsclear 7
portstatsclear 8
portstatsclear 9
portstatsclear 10
portstatsclear 11
portstatsclear 12
portstatsclear 13
portstatsclear 14
portstatsclear 15

So I posted this article so I can copy and paste commands to the switch 🙂

 

Categories: Quickie Tags: , ,
  1. Flake Sherrill
    March 12th, 2014 at 18:48 | #1

    ‘slotstatsclear’ should achieve what you desire

  2. March 13th, 2014 at 12:47 | #2

    @Flake Sherrill
    Thank you for your comment. I will try it.

  3. leo
    December 1st, 2015 at 21:27 | #3

    slotstatsclear is what you want. It will clear all error counters and statistics for all ports on the switch.

  4. AN
    December 2nd, 2015 at 11:07 | #4

    you can do portstatsclear -i 0-XX where XX is the last number of the port and it will do it quickly neatly and easily

  5. Arthur
    October 20th, 2016 at 23:16 | #5

    portstatsclear -i 0-15

  1. No trackbacks yet.