smartctl_exporter/collect_fake_json.sh

6 lines
146 B
Bash
Executable file

#! /bin/bash
for device in $(smartctl --scan | awk '{ print $1}')
do
smartctl --json --xall $device | jq > debug/$(basename $device).json
done