-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[show priority-group drop counters] Add user info output when user wa…
…nt to check PG counters and polling are disabled (#1678) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> What I did Added additional output info for user when trying to show priority group counters and pg drop counters are disabled How I did it modify pg-drop script, add additional print during executing "show priority-group drop counters" if PG polling disabled How to verify it counterpoll pg-drop disable show priority-group drop counters Expect: Warning: PG counters are disabled. Current stats may be outdated. Use 'counterpoll pg-drop enable' to enable' Previous command output (if the output of a command-line utility has changed) admin@r-tigon-04:/usr/local/bin$ show priority-group drop counters Ingress PG dropped packets: Port PG0 PG1 PG2 PG3 PG4 PG5 PG6 PG7 ----------- ----- ----- ----- ----- ----- ----- ----- ----- Ethernet0 0 0 0 0 0 0 0 0 Ethernet2 0 0 0 0 0 0 0 0 Ethernet8 0 0 0 0 0 0 0 0 Ethernet10 0 0 0 0 0 0 0 0 Ethernet16 0 0 0 0 0 0 0 0 New command output (if the output of a command-line utility has changed) admin@r-tigon-04:/usr/local/bin$ show priority-group drop counters Warning: PG counters are disabled. Use 'counterpoll pg-drop enable' to enable polling
- Loading branch information
1 parent
920bb87
commit 4175cb9
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"FLEX_COUNTER_TABLE|QUEUE": { | ||
"POLL_INTERVAL": "10000", | ||
"FLEX_COUNTER_STATUS": "enable" | ||
}, | ||
"FLEX_COUNTER_TABLE|PORT": { | ||
"POLL_INTERVAL": "1000", | ||
"FLEX_COUNTER_STATUS": "enable" | ||
}, | ||
"FLEX_COUNTER_TABLE|PORT_BUFFER_DROP": { | ||
"POLL_INTERVAL": "60000", | ||
"FLEX_COUNTER_STATUS": "enable" | ||
}, | ||
"FLEX_COUNTER_TABLE|QUEUE_WATERMARK": { | ||
"POLL_INTERVAL": "10000", | ||
"FLEX_COUNTER_STATUS": "enable" | ||
}, | ||
"FLEX_COUNTER_TABLE|PG_WATERMARK": { | ||
"POLL_INTERVAL": "10000", | ||
"FLEX_COUNTER_STATUS": "enable" | ||
}, | ||
"FLEX_COUNTER_TABLE|PG_DROP": { | ||
"POLL_INTERVAL": "10000", | ||
"FLEX_COUNTER_STATUS": "disable" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters