wire / wire-format / scsi-cdb

SCSI CDB (Command Descriptor Block)

A SCSI CDB is the command structure used to communicate with SCSI devices. CDB sizes: 6, 10, 12, 16, or 32 bytes. Common commands: 0x00 TEST UNIT READY, 0x03 REQUEST SENSE, 0x12 INQUIRY, 0x1A MODE SENSE (6), 0x25 READ CAPACITY (10), 0x28 READ (10), 0x2A WRITE (10), 0x35 SYNCHRONIZE CACHE, 0x4D LOG SENSE, 0xA0 REPORT LUNS, 0x88 READ (16), 0x8A WRITE (16), 0x9E READ CAPACITY (16).

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: SCSI CDB (Command Descriptor Block)

wire format

spec: SCSI specification

A SCSI CDB is the command structure used to communicate with SCSI devices. CDB sizes: 6, 10, 12, 16, or 32 bytes. Common commands: 0x00 TEST UNIT READY, 0x03 REQUEST SENSE, 0x12 INQUIRY, 0x1A MODE SENSE (6), 0x25 READ CAPACITY (10), 0x28 READ (10), 0x2A WRITE (10), 0x35 SYNCHRONIZE CACHE, 0x4D LOG SENSE, 0xA0 REPORT LUNS, 0x88 READ (16), 0x8A WRITE (16), 0x9E READ CAPACITY (16).

fieldsizemeaning
6-byte CDB6 bytesOpcode (1) + LUN (3 bits) + flags (5 bits) + LBA/params (3 bytes) + transfer length (1 byte) + control (1 byte). Used for simple commands (TEST UNIT READY, REQUEST SENSE, INQUIRY, READ/WRITE 6).
10-byte CDB10 bytesOpcode (1) + flags/LUN (1) + LBA (4) + reserved (1) + transfer length (2) + control (1). Used for READ (10), WRITE (10), READ CAPACITY (10).
12-byte CDB12 bytesOpcode (1) + flags (1) + LBA (4) + transfer length (4) + reserved (1) + control (1). Used for READ (12), WRITE (12).
16-byte CDB16 bytesOpcode (1) + flags (1) + LBA (8) + transfer length (4) + reserved (1) + control (1). Used for READ (16), WRITE (16), READ CAPACITY (16).
Opcode1 byteCommand code: 0x00 TEST UNIT READY, 0x03 REQUEST SENSE, 0x12 INQUIRY, 0x1A MODE SENSE, 0x25 READ CAPACITY (10), 0x28 READ (10), 0x2A WRITE (10), 0x35 SYNCHRONIZE CACHE, 0x88 READ (16), 0x8A WRITE (16), 0x9E READ CAPACITY (16), 0xA0 REPORT LUNS.
Control byte1 byteBit 0 = linked command, bit 1 = (obsolete), bits 2-4 = task attribute (simple, ordered, head of queue, ACA), bits 5-7 = (reserved/NACA).

example:

00 00 00 00 00 00 00 00 00 00

SCSI CDB (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/scsi-cdb or /wire-format/scsi-cdb.json