smartctl_exporter/collect_fake_json.sh

7 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