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

[show][interface][counters] Add proposal and changes for fec-histogram for interface counters fec-histogram subcommand #3519

Merged
merged 12 commits into from
Sep 10, 2024

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Sep 4, 2024

What I did

This pull request proposes the addition of a new command line subcommand, show interfaces counters fec-histogram, to monitoring network interfaces. This new command is designed to display the FEC (Forward Error Correction) histogram for a specified port.

Summary of Changes:
New Subcommand: show interfaces counters fec-histogram [<interface_name>]

  • Purpose: Displays a histogram that shows the distribution of FEC-related errors across different bins. Each bin represents a specific range or category of errors, with the number of codewords that experienced errors listed under each bin.
  • Example Usage:
  • Command: show interface counters fec-histogram
    Output: A table showing the number of codewords in each error bin, with bins labeled as BIN_FEC_CODEWORD_S0 through BIN_FEC_CODEWORD_S16.
    This new command will help network administrators diagnose and monitor the health of network links by providing insights into the distribution of error correction activities across different levels of severity.

How I did it

How to verify it

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)

for show int counters fec-histogram subcommand

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
doc/Command-Reference.md Outdated Show resolved Hide resolved
@vdahiya12 vdahiya12 changed the title [show][interface][counters] Add proposal and changes for fec-histogram for interrface counters fec-histogram subcommand [show][interface][counters] Add proposal and changes for fec-histogram for interface counters fec-histogram subcommand Sep 9, 2024
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
@vdahiya12 vdahiya12 merged commit a7897d1 into sonic-net:master Sep 10, 2024
7 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Sep 20, 2024
…m for interface counters fec-histogram subcommand (sonic-net#3519)

* [show][interface][counters] Add proposal and changes for fec-histogram
for show int counters fec-histogram subcommand

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add implementation

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add UT

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* fix test

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* correct doc

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add cosmetic fix

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add fixes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* pep 8

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add indentation

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

---------

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3551

mssonicbld pushed a commit that referenced this pull request Sep 20, 2024
…m for interface counters fec-histogram subcommand (#3519)

* [show][interface][counters] Add proposal and changes for fec-histogram
for show int counters fec-histogram subcommand

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add implementation

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add UT

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* fix test

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* correct doc

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add changes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add cosmetic fix

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add fixes

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* pep 8

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

* add indentation

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>

---------

Signed-off-by: Vaibhav Dahiya <vdahiya@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants