Changes between Initial Version and Version 1 of attributelog


Ignore:
Timestamp:
Oct 22, 2009, 11:39:05 PM (15 years ago)
Author:
Gabriele Pohl
Comment:

page about new feature --attributelog

Legend:

Unmodified
Added
Removed
Modified
  • attributelog

    v1 v1  
     1=== New feature: attribute logging in smartmontools ===
     2
     3Manfred Schwarb on 2009-08-02:
     4
     5{{{
     6I just have added a new experimental feature to the smartmontools
     7development version: attribute logging.
     8 
     9You can now log all normalized and raw attribute values at each
     10check interval into a file (per drive), so you can track the change of
     11values over time.
     12
     13As some vendors seem to overload some raw values (e.g. for rate
     14information, storing the count of events in the high bits and the count
     15of failed events in the low bits, instead of only storing one value),
     16this feature may help to decipher things, as
     17we can see which bits evolve at what rate, and how this reflects
     18in the normalized values (these are computed in the hard disk chip).
     19 
     20You can also use this feature to visualize things more easily, e.g.
     21monitoring tools can only parse the log files instead of periodically
     22polling smartctl. But please don't rely on this feature for now, we
     23will see how it proves in practice.
     24 
     25The log file format is as follows:
     26Timestamp;    Attribute-ID;Attribute-norm-value;Attribute-raw-value; ...
     27 
     28e.g.:
     292009-07-31 09:39:47;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3681;      10;100;0;
     302009-07-31 09:41:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3681;      10;100;0;
     312009-07-31 10:11:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3682;      10;100;0;
     322009-07-31 10:41:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3682;      10;100;0;
     332009-07-31 11:11:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3683;      10;100;0;
     342009-07-31 11:41:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3683;      10;100;0;
     352009-07-31 12:11:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3684;      10;100;0;
     362009-07-31 12:41:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3684;      10;100;0;
     372009-07-31 13:11:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3685;      10;100;0;
     382009-07-31 13:41:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3685;      10;100;0;
     392009-07-31 14:11:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3686;      10;100;0;
     402009-07-31 14:41:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3686;      10;100;0;
     412009-07-31 15:11:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3687;      10;100;0;
     422009-07-31 15:41:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3687;      10;100;0;
     432009-07-31 16:11:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3688;      10;100;0;
     442009-07-31 16:41:07;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3688;      10;100;0;
     452009-07-31 17:11:08;    1;200;0;        3;239;1025;     4;100;8;        5;200;0;        7;200;0;        9;95;3689;      10;100;0;
     46 
     47 
     48smartd has a new option -A PREFIX / --attributelog=PREFIX; if PREFIX is
     49set logging is activated, and the log files are stored at a location
     50indicated by PREFIX. For details see "man smartd".
     51
     52There are 2 configure options so you can enable logging per default,
     53see "configure --help" for details.
     54 
     55So I would like to invite everybody to test this new feature, and
     56perhaps even help to decipher some of these strange raw values.
     57 
     58Note that we have switched to SVN, so the procedure to check out the
     59development version has changed, see our homepage for details.
     60}}
     61
     62Manfred Schwarb on 2009-08-22:
     63
     64{{{
     65I tried to keep the output as simple as possible and therefore I opted
     66for decimal output. However, I recently found myself often
     67converting the raw values into hex, as it is sometimes more meaningful.
     68
     69It's very easy of course, e.g. with something like
     70
     71awk -F";" '{ printf "%s",$1; for(i=2; i<=NF; i=i+3) { printf \
     72";%s;%s;0x%012x",$(i),$(i+1),$(i+2) }; printf "\n" }' attrlog.*
     73
     74}}}