Onboard show platform ssdhealth command.#214
Merged
sharmavijay-ms merged 5 commits intoAzure:kubesonicfrom May 4, 2026
Merged
Conversation
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
@sharmavijay-ms some issue in formatting, fixed. |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sharmavijay-ms
approved these changes
May 4, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


MSFT ADO: 37750109
Why I did it
Onboarded show platform ssdhealth command to gNMI server so SSD health data of a device (model, firmware, serial, health, temperature, vendor output) can be queried programmatically via gNMI Get/Subscribe RPCs.
How I did it
Added platform_ssdhealth_helper.go in helpers that finds the default host disk via partition/lsblk lookups if the device is not given as input, runs a Python SsdUtil script on the host via nsenter to get the ssd health, and parses the JSON result.
Note- show paltform ssdhealth --vendor output varies based on different vendor.
How to verify it
Mellanox device
gNMI output
Cisco device-
CLI output
gnmi output-
Arista device
CLI output
admin@str4-7060x6-512-11:~$ show platform ssdhealth
Disk Type : NVME
Device Model : W6EN240G8TAZ-PE4A5-4D2.E5
Health : 100.0%
Temperature : 39.0C
admin@str4-7060x6-512-11:~$ show platform ssdhealth --verbose
Running command: sudo ssdutil -v
Disk Type : NVME
Device Model : W6EN240G8TAZ-PE4A5-4D2.E5
Firmware : EIEM51.5
Serial : 109-0124955-00266
Health : 100.0%
Temperature : 39.0C
admin@str4-7060x6-512-11:~$ show platform ssdhealth --vendor
Disk Type : NVME
Device Model : W6EN240G8TAZ-PE4A5-4D2.E5
Health : 100.0%
Temperature : 39.0C
N/A
gNMI output
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)