bundlewrap/bundles/smartctl/README.md
2021-10-30 18:57:06 +02:00

15 lines
294 B
Markdown

# state
smartctl -n idle /dev/sda
# temp
smartctl -n idle -A /dev/sdb --json=c | jq .temperature.current
# apm
smartctl --get apm /dev/sdb --json=c | jq .ata_apm.level
smartctl --set apm,20 /dev/sdb --json=c
# power state
smartctl -n idle /dev/sdb
# devices
smartctl --scan | cut -d' ' -f1