From: Richard F. <ric...@gm...> - 2010-03-01 23:08:43
|
Hi, I noticed some weird behavior when querying SMART attributes without admin rights. I am using x64 build of latest SVN ("smartctl 5.40 2010-02-27 r3070M [x86_64-pc-mingw32-win7] (local build))". When I execute "smartctl.exe --attributes C:" the THRESH column consists of all "---" and the attribute table is prefixed with: "Warning: Limited functionality due to missing admin rights Error SMART Thresholds Read failed: Function not implemented Smartctl: SMART Read Thresholds failed." The behavior is different under latest stable release (32bit "smartctl 5.39.1 2010-01-28 r3054"). Here the warning messages are absent but the THRESH column is all "000", implying silent failure. I realize that the program may well be correct with its "Limited functionality due to missing admin rights" warning, but it seems so strange that just this one attribute is broken. Is this a bug or is there some reason why this threshold value is special? Thanks, Richard |
From: Christian F. <Chr...@t-...> - 2010-03-02 06:22:50
|
Richard Flint wrote: > Hi, > > I noticed some weird behavior when querying SMART attributes without > admin rights. I am using x64 build of latest SVN ("smartctl 5.40 > 2010-02-27 r3070M [x86_64-pc-mingw32-win7] (local build))". > > When I execute "smartctl.exe --attributes C:" the THRESH column > consists of all "---" and the attribute table is prefixed with: > > "Warning: Limited functionality due to missing admin rights > Error SMART Thresholds Read failed: Function not implemented > Smartctl: SMART Read Thresholds failed." > > The behavior is different under latest stable release (32bit "smartctl > 5.39.1 2010-01-28 r3054"). Here the warning messages are absent but > the THRESH column is all "000", implying silent failure. > I realize that the program may well be correct with its "Limited > functionality due to missing admin rights" warning, but it seems so > strange that just this one attribute is broken. > > Is this a bug or is there some reason why this threshold value is special? This is intentional. Without admin rights, only SMART DATA and parts of IDENTIFY can be read. SMART DATA does not include the thresholds. In the past, smartctl prints false thresholds 0 if thresholds cannot be read. This is now fixed. Thanks, Christian |