[smartmontools-support] Questions on the output from the smartctl --json option.

Christian Franke Christian.Franke at t-online.de
Thu Jun 25 07:11:22 CEST 2020


Tony Olekshy wrote:
> If I run this command:
>
>      smartctl --all --json=g /dev/foo
>
> does the following output correspond to the --health test passing
> and to the smartctl exit status bit 3 being off:
>
>      json.smart_status.passed = true;

Yes.


> Also, is there some place where I can find further documentation
> on the --json output, such as what the structure of the output
> relating to json.smartctl.messages looks like?

Sorry no. Try --json=gi to see corresponding plaintext output close (as 
far as JSON structure allows) to JSON output.

Regards,
Christian



More information about the Smartmontools-support mailing list