smartctl_exporter/collect_fake_json.sh

7 lines
146 B
Bash
Raw Normal View History

2020-10-27 21:30:05 +01:00
#! /bin/bash
for device in $(smartctl --scan | awk '{ print $1}')
do
smartctl --json --xall $device | jq > debug/$(basename $device).json
2020-10-27 21:30:05 +01:00
done