On 10/21/2014 01:42 PM, Rich via illumos-discuss wrote:
> Hi all,
> I'm trying to manipulate SAS LED state on a nontrivial scale - e.g.
> enabling/disabling the locator/fault LED lights on all the devices
> attached to a system at the moment, or various programmatic subsets.
> 
> I've been using the LSI SAS{2,3}IRCU utilities for this, but that's
> not exactly efficient, since it can't batch commands, and it seems to
> rescan the bus every time it's run...
> 
> I'd like to make use of smp_{read,write}_gpio to manipulate this
> state, but when I try this on a recent (~Sep 24) illumos-gate,
> commands I expect to work give back:
> 
> # ./smp_read_gpio -E -t 3 -c 1 /dev/smp/expd1
> Read gpio register enhanced result: Unknown SMP function
> # ./smp_read_gpio -t 3 -c 1 /dev/smp/expd1
> Read gpio register result: Unknown SMP function
> 
> Something like smp_discover seems to work fine:
> 
> # ./smp_discover /dev/smp/expd1
>   phy   0:S:attached:[500062b2001fc080:03  i(SSP+STP+SMP)]  6 Gbps
>   phy   1:S:attached:[500062b2001fc080:02  i(SSP+STP+SMP)]  6 Gbps
>   phy   2:S:attached:[500062b2001fc080:01  i(SSP+STP+SMP)]  6 Gbps
>   phy   3:S:attached:[500062b2001fc080:00  i(SSP+STP+SMP)]  6 Gbps
>   phy   4:U:attached:[500304800148897f:00 exp t(SMP)]  6 Gbps
>   phy   5:U:attached:[500304800148897f:01 exp t(SMP)]  6 Gbps
>   phy   6:U:attached:[500304800148897f:02 exp t(SMP)]  6 Gbps
>   phy   7:U:attached:[500304800148897f:03 exp t(SMP)]  6 Gbps
>   phy  12:U:attached:[50030480014a444c:00  t(SATA)]  6 Gbps
>   phy  13:U:attached:[50030480014a444d:00  t(SATA)]  6 Gbps
>   phy  14:U:attached:[50030480014a444e:00  t(SATA)]  6 Gbps
>   phy  15:U:attached:[50030480014a444f:00  t(SATA)]  6 Gbps
>   phy  16:U:attached:[50030480014a4450:00  t(SATA)]  6 Gbps
>   phy  17:U:attached:[50030480014a4451:00  t(SATA)]  6 Gbps
>   phy  18:U:attached:[50030480014a4452:00  t(SATA)]  6 Gbps
>   phy  19:U:attached:[50030480014a4453:00  t(SATA)]  6 Gbps
>   phy  20:U:attached:[50030480014a4454:00  t(SATA)]  6 Gbps
>   phy  21:U:attached:[50030480014a4455:00  t(SATA)]  6 Gbps
>   phy  22:U:attached:[50030480014a4456:00  t(SATA)]  6 Gbps
>   phy  23:U:attached:[50030480014a4457:00  t(SATA)]  6 Gbps
>   phy  24:U:attached:[50030480014a4458:00  t(SATA)]  6 Gbps
>   phy  25:U:attached:[50030480014a4459:00  t(SATA)]  6 Gbps
>   phy  26:U:attached:[50030480014a445a:00  t(SATA)]  6 Gbps
>   phy  27:U:attached:[50030480014a445b:00  t(SATA)]  6 Gbps
>   phy  28:U:attached:[50030480014a445c:00  t(SATA)]  6 Gbps
>   phy  29:U:attached:[50030480014a445d:00  t(SATA)]  6 Gbps
>   phy  30:U:attached:[50030480014a445e:00  t(SATA)]  6 Gbps
>   phy  31:U:attached:[50030480014a445f:00  t(SATA)]  6 Gbps
>   phy  32:U:attached:[50030480014a4460:00  t(SATA)]  6 Gbps
>   phy  33:U:attached:[50030480014a4461:00  t(SATA)]  6 Gbps
>   phy  34:U:attached:[50030480014a4462:00  t(SATA)]  6 Gbps
>   phy  35:U:attached:[50030480014a4463:00  t(SATA)]  6 Gbps
>   phy  36:D:attached:[50030480014a447d:00  V i(SSP+SMP) t(SSP)]  6 Gbps
> 
> Has anyone made use of this toolkit (or another with similar tools?)
> successfully on illumos-derived platforms?

We don't use this toolkit to do any of this, but instead use FMA to do
the work. If you have a topo map you should be able to rig it up to
light the fault leds. At least, that's what we do at Joyent for machines
that have the LEDs directly wired over gpio.

robert


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to