disks: use smartctl -H -A
to only list SMART health and attributes, instead of "smartctl -a", which prints "all SMART information"
This commit is contained in:
committed by
Dietmar Maurer
parent
acd3d91649
commit
0c486b09df
@ -78,7 +78,7 @@ sub get_smart_data {
|
||||
|
||||
my $returncode = 0;
|
||||
eval {
|
||||
$returncode = run_command([$SMARTCTL, '-a', '-f', 'brief', $disk], noerr => 1, outfunc => sub{
|
||||
$returncode = run_command([$SMARTCTL, '-H', '-A', '-f', 'brief', $disk], noerr => 1, outfunc => sub{
|
||||
my ($line) = @_;
|
||||
|
||||
if ($datastarted && $line =~ m/^[ \d]{2}\d/) {
|
||||
|
||||
Reference in New Issue
Block a user