ToolBin icon indicating copy to clipboard operation
ToolBin copied to clipboard

Please add "--json" option to output as json for ease of parsing output

Open jordanmcleod opened this issue 2 years ago • 1 comments

Please describe the feature/improvement you would like to see added.

If this is already a feature, please let me know what the linux CLI argument is when executing

sudo ./SeaChest_SMART_x86_64-redhat-linux -d /dev/sg0 --smartAttributes analyzed

I have been using SeaChest_SMART_x86_64-redhat-linux v2.0.1 on Ubuntu 20.04 to obtain the converted SMART values for drives in the "Seagate Exos 7E8" model family. While the tool works well for this, my issue is with capturing and parsing the output for the desired values.

Please explain why you think adding this feature/improvement is important.

Presently, "smartctl" has a "--json" argument that allows for referencing desired values through the json structure.

smartctl -a /dev/sg0 --json=cu

Since I am not able to use that for accurate determinations of Seagate Exos drives, I would like similar functionality in the only tool that correctly reports these values.

jordanmcleod avatar May 26 '22 00:05 jordanmcleod

Thanks for the request @jordanmcleod! We have talked about adding json formatted output to our tools a few times. We have recently been evaluating some json libraries to integrate into our tools, but do not know when we will have this option will be available.

I'll keep this open and update it when we are working on adding support for it.

vonericsen avatar May 27 '22 00:05 vonericsen