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 🙂
‘slotstatsclear’ should achieve what you desire
@Flake Sherrill
Thank you for your comment. I will try it.
slotstatsclear is what you want. It will clear all error counters and statistics for all ports on the switch.
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
portstatsclear -i 0-15