#!/bin/sh
set -eu
: "${SMART_DEVICE:?set a controlled device such as /dev/nvme0}"
smartctl --version
smartctl --json --all "$SMART_DEVICE"
# smartctl uses a bitmask exit status; capture and interpret it in automation.
# Do not suppress nonzero results as if all represented a transport failure.
