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

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

Open
jordanmcleod opened this issue May 26, 2022 · 1 comment

Comments

@jordanmcleod
Copy link

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.

@vonericsen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants