[smartmontools-support] Help with vendor-specific raw value print FORMAT

Christian Franke Christian.Franke at t-online.de
Sat Sep 25 12:54:16 CEST 2021


Serguei E. Leontiev wrote:
> Hi,
>
> I need to print value:
>
> +-----+---------------------------------+---------------------------------------------------------------+
> | ID  |      ATTRIBUTE_NAME             |                  DATA ADDRESS (Byte)                          |
> +     |                                 +------+------+------+-------+------------------+---------------+
> |     |                                 |  10  |  9   |  8   |  7    |        6         |       5       |
> +-----+---------------------------------+------+------+------+-------+------------------+---------------+
> | AFh | Power Failure Protection Status | Voltage Stabilizer Trigger | Guaranteed Flush | Drive Status  |
> |     |                                 |           Count            |  (0x01 Enable)   | (0x00 Normal) |
> +-----+---------------------------------+----------------------------+------------------+---------------+
>          Advantech, SQFlash SMART ID Definition (SATA), #1.0, 2020/01/15
>          https://www.advantech.com/support/details/manual?id=1-1YC6U5N
>
>
> But I can't find anything more reliable than:
>      "-v 175,hex48,Power_Failure_Prot_Sts "
>
> The variant "-v 175,raw24(raw8):105432,Power_Failure_Prot_Sts " is quite close to the required format, but prints the highest byte of the counter separately from the three lowest ones.
>
> Am I missing out on any other opportunities?

Sorry, no. This would require some "raw32..." format which does not exist.

Regards,
Christian



More information about the Smartmontools-support mailing list