Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear queue counters per port #680

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Prasanth-KV
Copy link

- What I did
Provision to clear queue counters per port with the following command:
show queue counters Ethernet0 -c

- How I did it
The queue stats clear command is been enhanced to take port as arguement and implemented per port queue stats clear.
- How to verify it
Example:

  1. Start the traffic
  2. Stop the traffic
  3. Check queue counter for an interface: show queue counters Ethernet0
  4. Clear the queue counter for that interface: show queue counters Ethernet0 -c
  5. Check if counters are cleared: show queue counters Ethernet0

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

-->

Prasanth-KV and others added 3 commits September 25, 2019 23:30
The counter cache file is not removed while config reload but COUNTER_DB gets cleaned up.·
This was resulting in counters in COUNTER_DB lesser than that in cache file resulting into -ve counter display.

Signed-off-by: Prasanth Kunjum Veettil <prasanth.kunjumveettil@broadcom.com>
show queue counters Ethernet0 -c

The queue stats clear command is been enhanced to take port as arguement and implemented per port queue stats clear.

Signed-off-by: Prasanth Kunjum Veettil <prasanth.kunjumveettil@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant