A Perl script to convert "smartctl -a" or "smartctl -x" output to YAML or JSON format
smartctl2yaml.pl [options]
OPTIONS: --help, -h
Show this help.
--outformat, -o [yaml/json]
Select output format. (Default: yaml)
# sudo smartctl -x /dev/sda | perl smartctl2yaml.pl -o yaml
Or with a nvme unit:
# sudo smartctl -x /dev/nvme0n1 | perl smartctl2yaml.pl -o yaml
- Antti Antinoja - intc