Re: understanding the sg_ses --raw output? so I can turn on the faulty light

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/02/11 16.40, James Bottomley wrote:
> On Mon, 2011-02-07 at 16:25 +0100, Jon Bendtsen wrote:
>> Hi
>>
>> There has earlier been 2 threads on sg_ses 21 may 2007 and 10 june 2010,
>> but unfortunately neither seemed to include information about how to
>> understand the --raw output from sg_ses.
> 
> It's a hex dump of the diagnostic mode page.

I know that. What I meant was which segments in the hex dump correlate
to which segments in the text version of the dianostic mode page?

How long are the segments? 8 bytes? The way it is formatted something
could hint that? Or is it just 4 bytes which another formatting suggests?


>> When I run this command
>> 	sg_ses --page=2 /dev/sg30 --raw
>>
>> I get output that looks like:
>>         00 00 00 00 00 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  01 00 00 00 01 00 00 00
>>         01 00 00 00 01 00 00 00  00 00 01 00 01 00 01 00
>>         00 00 00 40 06 00 00 47  06 00 00 47 06 00 00 47
>>         00 00 00 00 01 00 2c 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00  06 00 00 00 06 00 00 00
>>         06 00 00 00 06 00 00 00
>>
>> There are 26 segments starting with 01 00 00 00, and 27 with 06. I think
>> i have to use the 01 segments, but the number 26 does not fit with my
>> number of disks unless they count like this: controller, backplane + 24
>> disks or enclosure port A + port B + 24 disks.
>>
>> At first i figured i had to set 20 in the last field, but that did not
>> work. So i tried modifying a 01 00 00 00 to 01 00 02 20 based on this
>> webpage:
>> http://storagesecrets.org/2008/12/scsi-enclosure-services-ses-ses-2-management/
>>
>> I also tried with 06 00 00 00 to 06 00 02 20, still nothing.
>>
>> I set the data using
>> 	sg_ses --control --page=2 -d - /dev/sg30 < raw.test
> 
> So I don't really plan to parse a huge hex dump, but my instinct would
> be you got something wrong.

I probably do that, which is why I asked how to understand the hex dump.


> I'd firstly validate that your lights can be flashed with the ses
> driver ... if they can, then look for a mistake in the hex dump.

How can I validate that my lights can be flashed with the SES driver?



JonB
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux