Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#1127 closed enhancement (wontfix)

-l selftest should display current power on/lifetime hours

Reported by: Matthias Hörmann Owned by:
Priority: minor Milestone:
Component: smartctl Version: 6.6
Keywords: Cc:

Description

The LifeTime(hours) column in the smartctl -l selftest output would be much more useful if the output also displayed the current value for this, allowing the user to see how long ago the tests actually ran. Instead, currently one has to look at the output of e.g. smartctl -a to check the power on hours manually before that column is of any use other than as a relative time between different tests in the log.

Change History (3)

comment:1 by Christian Franke, 6 years ago

Component: allsmartctl
Milestone: undecided

Changing a long standing output format may break existing scripts which parse the output.

The POH value from ATA SMART Attributes (which are not part of any standard) is vendor specific and occasionally unreliable. POH from ATA Device Statistics (smartctl -l devstat, included in -x but not -a) is more reliable but still not widely supported.

So this ticket will possibly be resolved as wontfix.

smartctl -a to check the power on hours ...

Note that option -a is outdated because it only displays legacy SMART info, use -x instead.

comment:2 by Alex Samorukov, 5 years ago

Resolution: wontfix
Status: newclosed

As now we do have a json i think we can close this ticket. It is very easy with tools like jq to get exact output format you are looking for, without changing the code and breaking other tools.

comment:3 by Christian Franke, 5 years ago

Milestone: undecided
Note: See TracTickets for help on using tickets.