To view Priority Flow Control (PFC) statistics, including PFC watchdog statistics, use the show controllers command in the XR EXEC mode.
show controllers
{
interface
priority-flow-control
[
statistics
|
watchdog-stats
]
|
all priority-flow-control
{
statistics
|
watchdog-stats
}
location all
}
Syntax Description
interface
|
Displays statistics for an interface.
|
all |
Displays statistics for all interfaces.
|
priority-flow-control |
Specifies PFC mechanism.
|
statistics |
Displays PFC statistics for an interface or all interfaces.
(Optional) For a specific interface.
|
watchdog-stats |
Displays PFC watchdog statistics for an interface or all interfaces.
(Optional) For a specific interface.
|
location all |
Displays PFC statistics for all nodes.
|
Command Modes
XR EXEC mode
Command History
Release
|
Modification
|
Release 7.5.5 |
The show controllers all priority-flow-control statistics location all command form was added to display PFC statistics for all interfaces.
The show controllers all priority-flow-control watchdog-stats location all command form was added to display PFC watchdog statistics for all interfaces.
|
Release 7.5.4 |
For the show controllers priority-flow-control watchdog-stats command output, separate counters were added for total dropped packets and dropped packets.
For the show controllers priority-flow-control statistics command, an additional counter for PFC Tx pause frames per traffic class was added.
|
Release 7.0.11 |
The show controllers priority-flow-control statistics and show controllers priority-flow-control watchdog-stats command forms were introduced.
|
Usage Guidelines
- From Release 7.5.5, you can view the PFC and PFC Watchdog statistics for all interfaces using the show controllers all priority-flow-control statistics location all and show controllers all priority-flow-control watchdog-stats location all commands, respectively.
- Running the clear controller priority-flow-control watchdog-stats command also clears the counters for the corresponding interfaces that the show controllers all priority-flow-control watchdog-stats location all command displays.
- Running the clear controller priority-flow-control statistics command also clears the counters for the corresponding interfaces that the show controllers all priority-flow-control statistics location all command displays.
- You can view PFC statistics and PFC Watchdog statistics per interface using the show controllers priority-flow-control statistics and show controllers priority-flow-control watchdog-stats commands, respectively.
- Use the clear controller priority-flow-control statistics and clear controller priority-flow-control watchdog-stats commands to clear PFC statistics and PFC watchdog statistics counters, respectively.
Examples
This example shows a sample output of the show controllers priority-flow-control statistics command:
Router# show controllers hundredGigE 0/0/0/0 priority-flow-control statistics
Priority flow control information for interface HundredGigE0/0/0/0:
Priority Flow Control:
Total Rx PFC Frames: 0
Total Tx PFC Frames: 1764273
Rx Data Frames Dropped: 0
CoS Status Rx Frames
--- ------ ----------
0 Off 0
1 Off 0
2 Off 0
3 Off 0
4 Off 0
5 Off 0
6 Off 0
7 Off 0
Examples
This example shows the sample output with counters for PFC Tx frames per traffic class.
Router# show controllers hundredGigE 0/0/0/4 priority-flow-control statistics
Priority flow control information for interface HundredGigE0/0/0/4:
Priority Flow Control:
Total Rx PFC Frames: 0
Total Tx PFC Frames: 4832680
Rx Data Frames Dropped: 1442056 (possible overflow)
CoS Status Rx Frames Tx Frames
--- ------ ---------- ----------
0 on 0 0
1 on 0 0
2 on 0 0
3 on 0 2416374
4 on 0 2416306
5 on 0 0
6 on 0 0
7 on 0 0
Examples
This example shows the sample output of show controllers hundredGigE 0/0/0/0 priority-flow-control watchdog-stats command:
Router# show controllers hundredGigE 0/0/0/0 priority-flow-control watchdog-stats
Priority flow control information for interface HundredGigE0/0/0/0:
Priority flow control watchdog statistics:
SAR: Auto restore and shutdown
-------------------------------------------------------------------------------------------------
Traffic Class : 0 1 2 3 4 5 6 7
-------------------------------------------------------------------------------------------------
Watchdog Events : 0 0 0 0 0 0 0 0
Shutdown Events : 0 0 0 0 0 0 0 0
Auto Restore Events : 0 0 0 0 0 0 0 0
SAR Events : 0 0 0 0 0 0 0 0
SAR Instantaneous Events : 0 0 0 0 0 0 0 0
Total Dropped Packets : 0 0 0 0 0 0 0 0
From Release 7.5.4 onwards, the output includes separate counters for total dropped packets and dropped packets:
Router# show controllers hundredGigE 0/1/0/43 priority-flow-control watchdog-stats
Priority flow control information for interface HundredGigE0/1/0/43:
Priority flow control watchdog statistics:
SAR: Auto restore and shutdown
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Traffic Class : 0 1 2 3 4 5 6 7
-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
Watchdog Events : 0 0 0 3 3 0 0 0
Shutdown Events : 0 0 0 3 3 0 0 0
Auto Restore Events : 0 0 0 3 3 0 0 0
SAR Events : 0 0 0 3510 3510 0 0 0
SAR Instantaneous Events : 0 0 0 1172 1172 0 0 0
Total Dropped Packets : 0 0 0 941505767 941488166 0 0 0
Dropped Packets : 0 0 0 314855466 314887161 0 0 0
Disregard the SAR Events and SAR Instantaneous Events entries because those numbers have no bearing on your operations.
Examples
This example shows a sample output of the show controllers all priority-flow-control statistics location all command:
Router# show controllers all priority-flow-control statistics location all
Interface TC Rx PFC TxPFC RxDropped
FourHundredGigE0/0/0/0 0 0 0 NA
FourHundredGigE0/0/0/0 7 0 0 NA
FourHundredGigE0/0/0/0 all 0 0 0
FourHundredGigE0/0/0/1 0 0 0 NA
FourHundredGigE0/0/0/1 7 0 0 NA
FourHundredGigE0/0/0/1 all 0 0 0
FourHundredGigE0/0/0/2 0 0 0 NA
FourHundredGigE0/0/0/2 7 0 0 NA
FourHundredGigE0/0/0/2 all 0 0 0
FourHundredGigE0/0/0/3 0 0 0 NA
Examples
This example shows the sample output of the show controllers all priority-flow-control watchdog-stats location all command:
Router# show controllers all priority-flow-control watchdog-stats location all
Interface TC Watchdog Shutdown Auto Restore SAR SAR Instantaneous Total Dropped Dropped
Events Events Events Events Events
FourHundredGigE0/0/0/0 0 0 0 0 0 0 0 0
FourHundredGigE0/0/0/0 7 0 0 0 0 0 0 0
FourHundredGigE0/0/0/1 0 0 0 0 0 0 0 0
FourHundredGigE0/0/0/1 7 0 0 0 0 0 0 0
FourHundredGigE0/0/0/2 0 0 0 0 0 0 0 0
FourHundredGigE0/0/0/2 7 0 0 0 0 0 0 0
FourHundredGigE0/0/0/3 0 0 0 0 0 0 0 0
FourHundredGigE0/0/0/3 7 0 0 0 0 0 0 0
FourHundredGigE0/0/0/4 0 0 0 0 0 0 0 0