I tried these commands, see the followings for outputs
I'm curious about how to blink the "red led" too.
what is the exact "sg_ses" command format to drive a led ?
=========== sg_ses output =============
#sg_ses
Usage: sg_ses [--byte1=B1] [--control] [--data=H,H...] [--filter] [--help]
[--hex] [--inner-hex] [--list] [--page=PG] [--raw] [--status]
[--verbose] [--version] DEVICE
# sg_ses /dev/es/ses0
LSI CORP SAS2X36 0417
enclosure services device
Supported diagnostic pages:
Supported diagnostic pages [0x0]
Configuration (SES) [0x1]
Enclosure status/control (SES) [0x2]
Element descriptor (SES) [0x7]
Additional element status (SES-2) [0xa]
Download microcode (SES-2) [0xe]
# sg_ses -p 0xa /dev/es/ses0
sg_ses -p 0xa /dev/es/ses0
LSI CORP SAS2X36 0417
enclosure services device
Additional element status diagnostic page:
generation code: 0x0
additional element status descriptor list
Element type: Array device, subenclosure id: 0
element index: 0 [0x0]
==>bay number
Transport protocol: SAS
number of phys: 1, not all phys: 0, bay number: 0
phy index: 0
device type: end device
initiator port for:
target port for: SSP
attached SAS address: 0x50030480003719ff
SAS address: 0x500605ba000f306e
phy identifier: 0x1
==>disk resence
=========== sestopo outputs ============
#/usr/lib/scsi/sestopo /dev/es/ses0
Element Type: ARRAY_DEVICE
nvlist version: 0
ses-element-index = 0x1
ses-element-only-index = 0x0
ses-element-class-index = 0x0
ses-element-type = 0x17
ses-status-code = 0x1
ses-swapped = 0
ses-disabled = 0
ses-failure-predicted = 0
ses-remap-rebuild-abort = 0
ses-remap-rebuild = 0
ses-in-failed-array = 0
ses-in-critical-array = 0
ses-consistency-check = 0
ses-hot-spare = 0
ses-reserved-device = 0
ses-ok = 0
ses-reported-via = 0
ses-identify = 0
ses-ready-to-remove = 0
ses-ready-to-insert = 0
ses-enclosure-bypassed-b = 0
ses-enclosure-bypassed-a = 0
ses-do-not-remove = 0
ses-app-client-bypassed-a = 0
ses-device-bypassed-b = 0
ses-device-bypassed-a = 0
ses-bypassed-b = 0
ses-bypassed-a = 0
ses-off = 0
ses-fault-requested = 0
ses-fault-sensed = 0
ses-app-client-bypassed-b = 0
ses-description = Slot 01
ses-sas-not-all-phys = 0
ses-bay-number = 0x0
ses-sas-phys = (array of embedded nvlists)
(start ses-sas-phys[0])
nvlist version: 0
ses-sas-device-type = 0x1
ses-sas-smp-initiator-port = 0
ses-sas-stp-initiator-port = 0
ses-sas-ssp-initiator-port = 0
ses-sas-sata-device = 0
ses-sas-smp-target-port = 0
ses-sas-stp-target-port = 0
ses-sas-ssp-target-port = 1
ses-sas-attached-address = 0x50030480003719ff
ses-sas-address = 0x500605ba000f306e
ses-sas-phy-identifier = 0x1
(end ses-sas-phys[0])
libses-element-type-name = ARRAY_DEVICE
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]