Hi,
As far as I know, you unfortunately have to send back the entire page
when it comes to SES.
Ben.
Jeff Johnson wrote:
Greetings,
I am using sg_ses to poll a SAS JBOD for locate and fault led
status and light leds if needed. So far the only method I can figure
out how to accomplish this is by reading page 2 of the SES management
device in the jbod chassis, dumping the raw hex output to a file,
setting the select and RQST IDENT or RQST FAULT bits and sending back
the entire 480 bytes with modified bits.
Turn locate led on:
sg_ses --page=0x2 /dev/sg18 -f --raw > /tmp/out
...twittle bits in /tmp/out with editor of choice...
sg_ses --control --page=2 -d - /dev/sg18 < /tmp/out
Is there a utility, a '--element=' arg or another method by which
only the four bytes of the element control diag page can be sent
instead of all 480 bytes?
--Jeff
--
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