![]() |
GSmartControl - any means to get smart data using terminal command - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4) +--- Forum: Off Topic (https://www.linuxliteos.com/forums/forumdisplay.php?fid=15) +--- Thread: GSmartControl - any means to get smart data using terminal command (/showthread.php?tid=6414) |
GSmartControl - any means to get smart data using terminal command - Sprintrdriver - 09-01-2019 Hi. I have installed the program GSmartControl 1.1.3 so that I can extract health data from any harddrives connected to the computer. After I installed the program, the procedure to get HDD smart data is to open the program, navigate to correct tab and from there I can select and copy the smart data from any given harddrive.The question is : Is there any way to use Terminal to output the smart-data from a given disk? Re: GSmartControl - any means to get smart data using terminal command - Valtam - 09-02-2019 What do the developers say when you ask them? Sent from my Mi Max Prime using Tapatalk Re: GSmartControl - any means to get smart data using terminal command - trinidad - 09-02-2019 https://www.smartmontools.org/ https://www.smartmontools.org/wiki/TocDoc#Manpages TC Re: GSmartControl - any means to get smart data using terminal command - Sprintrdriver - 09-03-2019 Ok, thanks. I haven't asked the developers. However, following the links provided by trinidad, I found that the command to use is sudo smartctl -x /dev/sda To get the output of the attributes only, I figured to use grep: sudo smartctl -x /dev/sda | grep ATTRIBUTE_NAME -A19 But - if this particular disk makes smartctl output 19 attributes, another disk model may have more. The first line after the attributes always contains the phrase "auto-keep" I wonder ig there is possible to make grep take account for that so the command isn't all static. To solve that, solution may be stupidly complex or need a bash file. But if anyone know about a nice solution I'm eager to learn. |