Skip to content

Updated CMIS VDM CLI commands - #2458

Open
nkanchi-nexthop wants to merge 2 commits into
sonic-net:masterfrom
nexthop-ai:nkanchi.cmis-monitoring-hld-vdm-updates
Open

Updated CMIS VDM CLI commands#2458
nkanchi-nexthop wants to merge 2 commits into
sonic-net:masterfrom
nexthop-ai:nkanchi.cmis-monitoring-hld-vdm-updates

Conversation

@nkanchi-nexthop

@nkanchi-nexthop nkanchi-nexthop commented Jul 10, 2026

Copy link
Copy Markdown

This PR reformats the show interfaces transceiver vdm output into a new table layout. It changes the VDM CLI to show data under a per-port section with columns for parameter, unit, lane, current/min/avg/max values, and the four threshold types, while keeping basic and statistic observables together in the same row when applicable.

It also updates the behavior for unsupported observables so they display -- instead of being omitted, and applies a similar cleaner table format to the show interfaces transceiver vdm flag command as well.

Implemented in this upstream PR: sonic-net/sonic-utilities#4636

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Signed-off-by: Nikhil Kanchi <nkanchi@nexthop.ai>
@nkanchi-nexthop
nkanchi-nexthop force-pushed the nkanchi.cmis-monitoring-hld-vdm-updates branch from b41d9c3 to b2cc332 Compare July 10, 2026 17:38
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@aditya-nexthop

Copy link
Copy Markdown
Contributor

@prgeor @mihirpat1

@nkanchi-nexthop

Copy link
Copy Markdown
Author

@prgeor @mihirpat1 Please help reviewing this

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SONiC CMIS diagnostic monitoring documentation to reflect new table-style output for VDM-related CLI commands, including per-port sections and additional columns for current/min/avg/max and thresholds.

Changes:

  • Reformats show interfaces transceiver vdm PORT documented output into a per-port table layout, including thresholds and basic/statistic values in the same row.
  • Reformats show interfaces transceiver vdm flag PORT documented output into a simplified per-port table layout and updates the --detail example output format.
Comments suppressed due to low confidence (2)

doc/platform_api/CMIS_Diagnostic_Monitoring_Overview_in_SONiC.md:1969

  • The show interfaces transceiver vdm flag section no longer explains the (apparently changed) filtering behavior. The example shows rows even when all flags are False, but the text doesn't state that output includes such rows (and the --detail description is now separated). Adding a brief behavior description here will prevent confusion about why output isn't empty when no flags are asserted.
This CLI shows the transceiver VDM flags for a given port.

doc/platform_api/CMIS_Diagnostic_Monitoring_Overview_in_SONiC.md:2021

  • The --detail example uses a different argument ordering (vdm flag --detail Ethernet1) than the non-detail example and the section heading (vdm flag PORT). Unless the CLI explicitly requires this ordering, it’s clearer to keep the port in the same position and show the option as an optional trailing flag.
admin@sonic# show interfaces transceiver vdm flag --detail Ethernet1

Comment thread doc/platform_api/CMIS_Diagnostic_Monitoring_Overview_in_SONiC.md Outdated
##### 4.2.2.1 VDM flags dump using the `--detail` option

With the `--detail` option, the VDM data for all types of observables will be displayed. With this option, the CLI will show data for all lanes and supported observables (irrespective of the flag status). For unsupported observables, the CLI will show `N/A` for the data.
The `--detail` option can be used to show the flag, Change Count, Last Set Time and Last Clear Time for all observables supported by the module.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aditya-nexthop @nkanchi-nexthop is there a specific reason to not show N/A?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to show N/A anywhere in this command output, right, @nkanchi-nexthop ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the command output for both flag and flag --detail will never have N/A displayed. @aditya-nexthop @prgeor

prgeor
prgeor previously approved these changes Jul 29, 2026
@prgeor

prgeor commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@nkanchi-nexthop @aditya-nexthop any code PR?

@aditya-nexthop

Copy link
Copy Markdown
Contributor

@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 31, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@nkanchi-nexthop
nkanchi-nexthop force-pushed the nkanchi.cmis-monitoring-hld-vdm-updates branch from fbf38ad to b6bda1e Compare July 31, 2026 08:22
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Signed-off-by: Nikhil Kanchi <nkanchi@nexthop.ai>
@nkanchi-nexthop
nkanchi-nexthop force-pushed the nkanchi.cmis-monitoring-hld-vdm-updates branch from b6bda1e to 95ba024 Compare July 31, 2026 08:23
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

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.

5 participants