Clears Forward Error Correction (FEC) counters on specified ports. FEC counters (Corrected Blocks and Uncorrectable Blocks) track the number of error-corrected and uncorrectable FEC codewords.
| fec | Clear only FEC counters (other port counters remain). |
| ports | Specify ports for FEC counter clearance. |
| port_list | Specific port list (for example, 1-5, 25:1-4). |
| all | Clear FEC counters on all ports. |
N/A.
Use 'clear counters fec' to reset FEC error tracking after troubleshooting optical link issues or to start fresh baseline measurements. 'clear counters' without the fec keyword also clears FEC counters along with all other port statistics. FEC counters are 64-bit values and are particularly useful for monitoring long-haul or high-error-rate optical interfaces.
The following example clears FEC counters on ports 25-26:
clear counters fec ports 25-26
The following example clears FEC counters on all ports in the system:
clear counters fec ports all
This command was first available in version 34.1.1.
All platforms with FEC-capable ports.