From: Jeff Johnson <jeff.johnson@aeoncomputing.com>
To: linux-scsi@vger.kernel.org
Subject: Best approach for using sg_ses to control locate/fault leds?
Date: Wed, 09 Jun 2010 15:35:30 -0700 [thread overview]
Message-ID: <4C101732.9010304@aeoncomputing.com> (raw)
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
--
------------------------------
Jeff Johnson
Manager
Aeon Computing
jeff.johnson@aeoncomputing.com
www.aeoncomputing.com
t: 858-412-3810 f: 858-412-3845
m: 619-204-9061
4905 Morena Boulevard, Suite 1313 - San Diego, CA 92117
next reply other threads:[~2010-06-09 22:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 22:35 Jeff Johnson [this message]
2010-06-10 15:52 ` Best approach for using sg_ses to control locate/fault leds? Benjamin ESTRABAUD
2010-06-10 16:42 ` Douglas Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C101732.9010304@aeoncomputing.com \
--to=jeff.johnson@aeoncomputing.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.