Re: scsi output similar to atactl identify

Previous thread: BCM4312 is supported by OpenBSD? by Cortex on Monday, January 4, 2010 - 6:39 am. (1 message)

Next thread: PCMCIA serial port not working by Theodore Wynnychenko on Monday, January 4, 2010 - 7:02 am. (1 message)
From: Brad Tilley
Date: Monday, January 4, 2010 - 7:19 am

Is there a way to get scsi output data similar to 'atactl device identify' output? 

# atactl /dev/rwd0c identify
Model: Kingston SSDNow V Series 64GB, Rev: B090522a, Serial #: 06J990030232
Device type: ATA, fixed
Cylinders: 16383, heads: 16, sec/track: 63, total sectors: 125045424
Device capabilities:
        ATA standby timer values
        IORDY operation
        IORDY disabling
Device supports the following standards:
ATA-4 ATA-5 ATA-6 ATA-7 
Master password revision code 0xfffe
Device supports the following command sets:
        READ BUFFER command
        WRITE BUFFER command
        Write cache
        Power Management feature set
        Security Mode feature set
        SMART feature set
        Flush Cache command
Device has enabled the following command sets/features:
        READ BUFFER command
        WRITE BUFFER command
        Write cache
        Power Management feature set
        SMART feature set
        Flush Cache command


Reading the scsi manpage, the inquiry command: scsi -f /dev/rsd2c -c "12 0 0 0 64 0" -i 0x64 "s8 z8 z16 z4" outputs the name of the controller "DELL PERC 5/i 1.03" but no info about the drives connected to it.

Brad

From: Jonathan Gray
Date: Monday, January 4, 2010 - 7:46 am

For raid controllers like your mfi, you can use bioctl(8) to list some information
about the individual drives.


From: Brad Tilley
Date: Monday, January 4, 2010 - 9:34 am

Not quite as informative as atactl... adding a -q breaks it:

# bioctl -ihv sd0 
Volume  Status               Size Device  
 mfi0 0 Online              67.8G sd0     RAID1
      0 Online              68.4G 1:0.0   noencl <FUJITSU MAY2073RC       D108>
                                                 'unknown serial'
      1 Online              68.4G 1:1.0   noencl <FUJITSU MAY2073RC       D108>
                                                 'unknown serial'

# bioctl -ihvq sd0
bioctl: DIOCINQ: Invalid argument


From the bioctl man page:

-q      Show vendor, product, revision, and serial number for the given disk.

Previous thread: BCM4312 is supported by OpenBSD? by Cortex on Monday, January 4, 2010 - 6:39 am. (1 message)

Next thread: PCMCIA serial port not working by Theodore Wynnychenko on Monday, January 4, 2010 - 7:02 am. (1 message)