mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
6 lines
146 B
Bash
Executable file
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
|