[smartmontools-support] Fwd: SAS Sense Data
Simon Fairweather
simon.n.fairweather at gmail.com
Tue Sep 15 15:19:28 CEST 2020
Hi,
I sent a request to have an enhancement logged. Since then I have updated
code to provide the following functions and tested with my test unraid
server. There are comments with my name at start/end of my changes.
1) added -n standby for SCSI drives as it does with ATA
2) added -s standby,now for SCSI drives as it does with ATA
3) added new option -s active to spin up a drives both ATA and SCSI
Regards
Simon.
Source code attached.
---------- Forwarded message ---------
From: Simon Fairweather <simon.n.fairweather at gmail.com>
Date: Tue, Sep 8, 2020 at 7:43 PM
Subject: SAS Sense Data
To: <smartmontools-support at listi.jpberlin.de>
Hi,
Would it be possible to use SAS sense data to enable the -n standby
function for SAS drives in addition to ATA?
sg_requests -v --hex -s /dev/sdd
00 70 00 00 00 00 00 00 18 00 00 00 00 5e 04 00 00
10 00 00 00 00 18 38 00 00 00 00 00 00 00 00 00 00
5e is the indicator of power mode.and the second byte is the detail.
{0x5E,0x00,"Low power condition on"},
{0x5E,0x01,"Idle condition activated by timer"},
{0x5E,0x02,"Standby condition activated by timer"},
{0x5E,0x03,"Idle condition activated by command"},
{0x5E,0x04,"Standby condition activated by command"},
{0x5E,0x05,"Idle_b condition activated by timer"},
{0x5E,0x06,"Idle_b condition activated by command"},
{0x5E,0x07,"Idle_c condition activated by timer"},
{0x5E,0x08,"Idle_c condition activated by command"},
{0x5E,0x09,"Standby_y condition activated by timer"},
{0x5E,0x0a,"Standby_y condition activated by command"},
{0x5E,0x41,"Power state change to active"},
{0x5E,0x42,"Power state change to idle"},
{0x5E,0x43,"Power state change to standby"},
{0x5E,0x45,"Power state change to sleep"},
{0x5E,0x47,"Power state change to device control"},
Regards
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20200915/f3e30d2f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changesforsmartctl.zip
Type: application/x-zip-compressed
Size: 113320 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20200915/f3e30d2f/attachment-0001.bin>
More information about the Smartmontools-support
mailing list