From 93be71d04c745a82f7b2958e1091c6ed76c5deab Mon Sep 17 00:00:00 2001 From: Vaibhav Dahiya Date: Wed, 20 Nov 2024 01:55:39 +0000 Subject: [PATCH 1/5] [show][interfaces] Add proposol for show interface mac_statistics {port} Signed-off-by: Vaibhav Dahiya --- doc/Command-Reference.md | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index c6c6f2003a..3c24bfe2b7 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -5121,6 +5121,50 @@ This command is to display the link-training status of the selected interfaces. Ethernet8 trained on up up ``` +**show interfaces mac-statistics** + +The show interface mac-stats command provides detailed statistics and error counters for MAC-level operations on an interface. It displays the status of various operational parameters, error counts, and timestamps for when these errors occurred. + +- Usage: + ``` + show interfaces mac_statistics [] + ``` + +- Example: + ``` + admin@sonic:~$ show interfaces mac_statistics Ethernet4 + Field Value + -------------------------------- ------------------- + oper_error_status 5442 + mac_local_fault_count 2 + mac_local_fault_time 2024-11-02 04:00:05 + fec_sync_loss_count 2 + fec_sync_loss_time 2024-11-02 04:00:05 + fec_alignment_loss_count 2 + fec_alignment_loss_time 2024-11-02 04:00:05 + high_ser_error_count 2 + high_ser_error_time 2024-11-02 04:00:05 + high ber_error_count 2 + high ber_error_time 2024-11-02 04:00:05 + data_unit_crc_error_count 2 + data_unit_crc_error_time 2024-11-02 04:00:05 + data_unit_misalignment_error_count 2 + data_unit_misalignment_error_time 2024-11-02 04:00:05 + signal_local_error_count 2 + signal_local_error_time 2024-11-02 04:00:05 + mac_remote_fault_count 2 + mac_remote_fault_time 2024-11-02 04:00:50 + crc_rate_count 2 + crc_rate_time 2024-11-02 04:00:50 + data_unit_size_count 2 + data_unit_size_time 2024-11-02 04:00:50 + code_group_error_count 2 + code_group_error_time 2024-11-02 04:00:50 + no_rx_reachability_count 2 + no_rx_reachability_time 2024-11-02 04:00:50 + ``` + + **show interfaces mpls** This command is used to display the configured MPLS state for the list of configured interfaces. From aef6f8da08e531c66bca3ac31893425a7aee2cad Mon Sep 17 00:00:00 2001 From: Vaibhav Dahiya Date: Wed, 20 Nov 2024 22:32:00 +0000 Subject: [PATCH 2/5] fix comments Signed-off-by: Vaibhav Dahiya --- doc/Command-Reference.md | 54 +++++++++++++++------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 3c24bfe2b7..42946c16a8 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -5121,47 +5121,33 @@ This command is to display the link-training status of the selected interfaces. Ethernet8 trained on up up ``` -**show interfaces mac-statistics** +**show interfaces errors** The show interface mac-stats command provides detailed statistics and error counters for MAC-level operations on an interface. It displays the status of various operational parameters, error counts, and timestamps for when these errors occurred. - Usage: ``` - show interfaces mac_statistics [] + show interfaces errors [] ``` - Example: - ``` - admin@sonic:~$ show interfaces mac_statistics Ethernet4 - Field Value - -------------------------------- ------------------- - oper_error_status 5442 - mac_local_fault_count 2 - mac_local_fault_time 2024-11-02 04:00:05 - fec_sync_loss_count 2 - fec_sync_loss_time 2024-11-02 04:00:05 - fec_alignment_loss_count 2 - fec_alignment_loss_time 2024-11-02 04:00:05 - high_ser_error_count 2 - high_ser_error_time 2024-11-02 04:00:05 - high ber_error_count 2 - high ber_error_time 2024-11-02 04:00:05 - data_unit_crc_error_count 2 - data_unit_crc_error_time 2024-11-02 04:00:05 - data_unit_misalignment_error_count 2 - data_unit_misalignment_error_time 2024-11-02 04:00:05 - signal_local_error_count 2 - signal_local_error_time 2024-11-02 04:00:05 - mac_remote_fault_count 2 - mac_remote_fault_time 2024-11-02 04:00:50 - crc_rate_count 2 - crc_rate_time 2024-11-02 04:00:50 - data_unit_size_count 2 - data_unit_size_time 2024-11-02 04:00:50 - code_group_error_count 2 - code_group_error_time 2024-11-02 04:00:50 - no_rx_reachability_count 2 - no_rx_reachability_time 2024-11-02 04:00:50 + admin@sonic:~$ show interfaces errors Ethernet4 + Port Errors Count Last timestamp(UTC) + ---------------------------------- ----- ------------------- + oper_error_status 5442 2024-11-02 04:00:05 + mac_local_fault_count 2 2024-11-02 04:00:05 + fec_sync_loss_count 2 2024-11-02 04:00:05 + fec_alignment_loss_count 2 2024-11-02 04:00:05 + high_ser_error_count 2 2024-11-02 04:00:05 + high ber_error_count 2 2024-11-02 04:00:05 + data_unit_crc_error_count 2 2024-11-02 04:00:05 + data_unit_misalignment_error_count 2 2024-11-02 04:00:05 + signal_local_error_count 2 2024-11-02 04:00:05 + mac_remote_fault_count 2 2024-11-02 04:00:50 + crc_rate_count 2 2024-11-02 04:00:50 + data_unit_size_count 2 2024-11-02 04:00:50 + code_group_error_count 0 Never + no_rx_reachability_count 0 Never ``` @@ -13951,4 +13937,4 @@ enabled Login You are on All access and/or use are subject to monitoring. Help: https://sonic-net.github.io/SONiC/ -``` \ No newline at end of file +``` From 95434e8a17eb0ea216d9e5b9e4889eb05e41d3af Mon Sep 17 00:00:00 2001 From: Vaibhav Dahiya Date: Wed, 20 Nov 2024 22:35:50 +0000 Subject: [PATCH 3/5] format Signed-off-by: Vaibhav Dahiya --- doc/Command-Reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 42946c16a8..197a2ae46b 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -5131,6 +5131,7 @@ The show interface mac-stats command provides detailed statistics and error coun ``` - Example: + ``` admin@sonic:~$ show interfaces errors Ethernet4 Port Errors Count Last timestamp(UTC) ---------------------------------- ----- ------------------- From 5f136abbe6e1a3a5d81f73095a0dc83695a31c57 Mon Sep 17 00:00:00 2001 From: Vaibhav Dahiya Date: Wed, 20 Nov 2024 22:37:33 +0000 Subject: [PATCH 4/5] add changes Signed-off-by: Vaibhav Dahiya --- doc/Command-Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 197a2ae46b..7a0390990d 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -5123,7 +5123,7 @@ This command is to display the link-training status of the selected interfaces. **show interfaces errors** -The show interface mac-stats command provides detailed statistics and error counters for MAC-level operations on an interface. It displays the status of various operational parameters, error counts, and timestamps for when these errors occurred. +The show interface errors command provides detailed statistics and error counters for MAC-level operations on an interface. It displays the status of various operational parameters, error counts, and timestamps for when these errors occurred. - Usage: ``` From 33605a95fdfe022112cfc24b3bd69d75e3e84dd4 Mon Sep 17 00:00:00 2001 From: Vaibhav Dahiya Date: Mon, 2 Dec 2024 14:57:07 +0000 Subject: [PATCH 5/5] fix suggestions Signed-off-by: Vaibhav Dahiya --- doc/Command-Reference.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/Command-Reference.md b/doc/Command-Reference.md index 7a0390990d..9fe87d0713 100644 --- a/doc/Command-Reference.md +++ b/doc/Command-Reference.md @@ -5136,19 +5136,19 @@ The show interface errors command provides detailed statistics and error counter Port Errors Count Last timestamp(UTC) ---------------------------------- ----- ------------------- oper_error_status 5442 2024-11-02 04:00:05 - mac_local_fault_count 2 2024-11-02 04:00:05 - fec_sync_loss_count 2 2024-11-02 04:00:05 - fec_alignment_loss_count 2 2024-11-02 04:00:05 - high_ser_error_count 2 2024-11-02 04:00:05 - high ber_error_count 2 2024-11-02 04:00:05 - data_unit_crc_error_count 2 2024-11-02 04:00:05 - data_unit_misalignment_error_count 2 2024-11-02 04:00:05 - signal_local_error_count 2 2024-11-02 04:00:05 - mac_remote_fault_count 2 2024-11-02 04:00:50 - crc_rate_count 2 2024-11-02 04:00:50 - data_unit_size_count 2 2024-11-02 04:00:50 - code_group_error_count 0 Never - no_rx_reachability_count 0 Never + mac_local_fault 2 2024-11-02 04:00:05 + fec_sync_loss 2 2024-11-02 04:00:05 + fec_alignment_loss 2 2024-11-02 04:00:05 + high_ser_error 2 2024-11-02 04:00:05 + high ber_error 2 2024-11-02 04:00:05 + data_unit_crc_error 2 2024-11-02 04:00:05 + data_unit_misalignment_error 2 2024-11-02 04:00:05 + signal_local_error 2 2024-11-02 04:00:05 + mac_remote_fault 2 2024-11-02 04:00:50 + crc_rate 2 2024-11-02 04:00:50 + data_unit_size 2 2024-11-02 04:00:50 + code_group_error 0 Never + no_rx_reachability 0 Never ```