Welcome to Dell Technologies Connectrix Brocade How To Series. How to clear interface and ASIC counters on Brocade B-Series switches and Directors. Reference Dell Knowledge Article # 304525. This video was created to Demonstrate how to clear interface and ASIC counters on Brocade switches.
This video presents the commands used to clear the port and diagnostics statistics for the specified list of blade or user ports. Please take a few minutes to go through the commands listed below. When to do this. When troubleshooting the switches, it can be useful for proper analysis. While monitoring the switches after a scheduled maintenance activity. The errors on the switch ports are cumulative since the last time stats/counters are cleared.
Hence, the stats/counters on the switch ports should be cleared and the switch should be run for some time, two to six hours to see what errors are currently accumulating and understand if it is a real-time issue. This is to demonstrate how to clear the stats on the Brocade switch. In this example, we can see the switch’s Virtual Fabric enabled by running fosconfig --show. We can use the command lscfg --show to display the logical switch configuration.
We have two logical switches configured with FID 8 and 66. Currently, we are in FID 8. Let us now run porterrshow to see the errors reported on the switch ports. From this output, we see errors on three ports ports: 8, 15, and 16. We see huge counts of enc out, along with link failure loss of sync and loss of signal error. Since this is a lab setup, the errors are minimal. These error counters might be huge on a switch that is in production environment.
Let us now go ahead and clear the counters on a single port 15 by running portstatsclear 15. And then, monitor the port by running porterrshow 15. We see loss of signal reported on port 15 has cleared while errors on other ports remain. In a production environment or a large fabric with more number of ports in use we may see many ports reporting a huge number of historical counters.
In such scenario, we can clear the stats on all the switch ports by running statsclear and slotstatsclear to clear the backend ASIC port counters. From the porterrshow output, we see there are no errors reported after clearing the stats. Now, we will get into FID 66 by running setcontext 66. And check the errors on the switch ports by running porterrshow. We can clear the counters on any desired logical switch by specifying the FID as following fosexec --fid 8 -cmd “statsclear”.
Stats on all the logical switches can be cleared by running fosexec --fid all -cmd “statsclear” and see, the port errors are cleared. Similarly, we can use slotstatsclear to clear the backend ASIC port counters on the switch. Reference the following for more information KB # 304525. Document: Brocade Fabric OS Command Reference Guide.
Thank you for watching.