Use JSON output format to retrieve smartmontools data

Author: votdevCreated Nov 16, 2020Updated Apr 17, 2026
Labelsfeaturebacklog9.x

With smartmontools 7.1 (shipped in Debian 11) smartctl can output the data in JSON. This will make it very easy to process the data delivered by that tool. Using the JSON output instead of parsing the output will hopefully does not block the user anymore from using a not supported, e.g. backported, package version because newer versions might change the name of the attribute in the command output, e.g. the device model is named Device Model in 6.6 whereas 7.1 is using Model Number.

Description of issue/question

Steps to reproduce issue

(Include debug logs if possible and relevant.)

Versions report

Source: openmediavault/openmediavault