You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sonic-utilities: WRED stats feature changes on sonic-utilities
* New script for wredstat CLI commands
* portstat script updated to accomodate WRED port stats
* counterpoll script updated to support wredport and wredqueue counters
* CLi to script mapping changes
* UT for the new script changes
* CLI command reference document updated
Signed-off-by: rpmarvell <[email protected]>
Copy file name to clipboardExpand all lines: doc/Command-Reference.md
+131-2
Original file line number
Diff line number
Diff line change
@@ -4190,15 +4190,16 @@ The "current-mode" subcommand is used to display current breakout mode for all i
4190
4190
4191
4191
**show interfaces counters**
4192
4192
4193
-
This show command displays packet counters for all interfacessince the last time the counters were cleared. To display l3 counters "rif" subcommand can be used. There is no facility to display counters for one specific l2 interface. For l3 interfaces a single interface output mode is present. Optional argument "-a" provides two additional columns - RX-PPS and TX_PPS.
4194
-
Optional argument "-p" specify a period (in seconds) with which to gather counters over.
4193
+
This show command displays packet counters for all interfaces(except the "show interface detailed" command) since the last time the counters were cleared. To display l3 counters "rif" subcommand can be used. There is no facility to display counters for one specific l2 interface. For l3 interfaces a single interface output mode is present. Optional argument "-a" provides two additional columns - RX-PPS and TX_PPS.
4194
+
Optional argument "-p" specify a period (in seconds) with which to gather counters over. To display the detailed per-interface counters "detailed <interface-name>" subcommand can be used.
4195
4195
4196
4196
- Usage:
4197
4197
```
4198
4198
show interfaces counters [-a|--printall][-p|--period <period>]
4199
4199
show interfaces counters errors
4200
4200
show interfaces counters rates
4201
4201
show interfaces counters rif [-p|--period <period>][-i <interface_name>]
4202
+
show interfaces counters detailed <interface_name>
4202
4203
```
4203
4204
4204
4205
- Example:
@@ -4304,6 +4305,56 @@ Optionally, you can specify a period (in seconds) with which to gather counters
The "detailed" subcommand is used to display more detailed interface counters. Along with tx/rx counters, it also displays the WRED drop counters that are supported on the platform.
4309
+
4310
+
- Example:
4311
+
```
4312
+
admin@sonic:~$ show interfaces counters detailed Ethernet8
# Remove the unsupported stats from the counter dict
186
+
if ((is_wred_stats_reqd==False) or (wred_green_pkt_stat_capable!="true")) and ('SAI_PORT_STAT_GREEN_WRED_DROPPED_PACKETS'incounter_bucket_dict.keys()):
if ((is_wred_stats_reqd==False) or (wred_yellow_pkt_stat_capable!="true")) and ('SAI_PORT_STAT_YELLOW_WRED_DROPPED_PACKETS'incounter_bucket_dict.keys()):
0 commit comments