A SCSI command code quick reference
http://www.tldp.org/HOWTO/archived/SCSI-Programming-HOWTO/SCSI-Programming-HOWTO-23.html
23. A SCSI command code quick reference Table 365 is a numerical order listing of the command operation codes. Table 365: SCSI-2 Operation Codes +=============================================================================+ | D - DIRECT ACCESS DEVICE Device Column Key | | |T - SEQUENTIAL ACCESS DEVICE M = Mandatory | | ||L - PRINTER DEVICE O = Optional | | |||P - PROCESSOR DEVICE V = Vendor Specific| | ||||W - WRITE ONCE READ MULTIPLE DEVICE R = Reserved | | |||||R - READ ONLY (CD-ROM) DEVICE | | ||||||S - SCANNER DEVICE | | |||||||O - OPTICAL MEMORY DEVICE | | ||||||||M - MEDIA CHANGER DEVICE | | |||||||||C - COMMUNICATION DEVICE | | |||||||||| | | OP DTLPWRSOMC Description | |----------+----------+-------------------------------------------------------| | 00 MMMMMMMMMM TEST UNIT READY | | 01 M REWIND | | 01 O V OO OO REZERO UNIT | | 02 VVVVVV V | | 03 MMMMMMMMMM REQUEST SENSE | | 04 O FORMAT | | 04 M O FORMAT UNIT | | 05 VMVVVV V READ BLOCK LIMITS | | 06 VVVVVV V | | 07 O INITIALIZE ELEMENT STATUS | | 07 OVV O OV REASSIGN BLOCKS | | 08 M GET MESSAGE(06) | | 08 OMV OO OV READ(06) | | 08 O RECEIVE | | 09 VVVVVV V | | 0A M PRINT | | 0A M SEND MESSAGE(06) | | 0A M SEND(06) | | 0A OM O OV WRITE(06) | | 0B O OO OV SEEK(06) | | 0B O SLEW AND PRINT | | 0C VVVVVV V | | 0D VVVVVV V | | 0E VVVVVV V | | 0F VOVVVV V READ REVERSE | | 10 O O SYNCHRONIZE BUFFER | | 10 VM VVV WRITE FILEMARKS | | 11 VMVVVV SPACE | | 12 MMMMMMMMMM INQUIRY | | 13 VOVVVV VERIFY(06) | | 14 VOOVVV RECOVER BUFFERED DATA | | 15 OMO OOOOOO MODE SELECT(06) | | 16 M MM MO RESERVE | | 16 MM M RESERVE UNIT | | 17 M MM MO RELEASE | | 17 MM M RELEASE UNIT | | 18 OOOOOOOO COPY | | 19 VMVVVV ERASE | | 1A OMO OOOOOO MODE SENSE(06) | | 1B O LOAD UNLOAD | | 1B O SCAN | | 1B O STOP PRINT | | 1B O OO O STOP START UNIT | | 1C OOOOOOOOOO RECEIVE DIAGNOSTIC RESULTS | | 1D MMMMMMMMMM SEND DIAGNOSTIC | | 1E OO OO OO PREVENT ALLOW MEDIUM REMOVAL | | 1F | | 20 V VV V | | 21 V VV V | | 22 V VV V | | 23 V VV V | | 24 V VVM SET WINDOW | | 25 O GET WINDOW | | 25 M M M READ CAPACITY | | 25 M READ CD-ROM CAPACITY | | 26 V VV | | 27 V VV | | 28 O GET MESSAGE(10) | | 28 M MMMM READ(10) | | 29 V VV O READ GENERATION | | 2A O SEND MESSAGE(10) | | 2A O SEND(10) | | 2A M M M WRITE(10) | | 2B O LOCATE | | 2B O POSITION TO ELEMENT | | 2B O OO O SEEK(10) | | 2C V O ERASE(10) | | 2D V O O READ UPDATED BLOCK | | 2E O O O WRITE AND VERIFY(10) | | 2F O OO O VERIFY(10) | | 30 O OO O SEARCH DATA HIGH(10) | | 31 O OBJECT POSITION | | 31 O OO O SEARCH DATA EQUAL(10) | | 32 O OO O SEARCH DATA LOW(10) | | 33 O OO O SET LIMITS(10) | | 34 O GET DATA BUFFER STATUS | | 34 O OO O PRE-FETCH | | 34 O READ POSITION | | 35 O OO O SYNCHRONIZE CACHE | | 36 O OO O LOCK UNLOCK CACHE | | 37 O O READ DEFECT DATA(10) | | 38 O O MEDIUM SCAN | | 39 OOOOOOOO COMPARE | | 3A OOOOOOOO COPY AND VERIFY | | 3B OOOOOOOOOO WRITE BUFFER | | 3C OOOOOOOOOO READ BUFFER | | 3D O O UPDATE BLOCK | | 3E O OO O READ LONG | | 3F O O O WRITE LONG | | 40 OOOOOOOOOO CHANGE DEFINITION | | 41 O WRITE SAME | | 42 O READ SUB-CHANNEL | | 43 O READ TOC | | 44 O READ HEADER | | 45 O PLAY AUDIO(10) | | 46 | | 47 O PLAY AUDIO MSF | | 48 O PLAY AUDIO TRACK INDEX | | 49 O PLAY TRACK RELATIVE(10) | | 4A | | 4B O PAUSE RESUME | | 4C OOOOOOOOOO LOG SELECT | | 4D OOOOOOOOOO LOG SENSE | | 4E | | 4F | | 50 | | 51 | | 52 | | 53 | | 54 | | 55 OOO OOOOOO MODE SELECT(10) | | 56 | | 57 | | 58 | | 59 | | 5A OOO OOOOOO MODE SENSE(10) | | 5B | | 5C | | 5D | | 5E | | 5F | | A0 | | A1 | | A2 | | A3 | | A4 | | A5 M MOVE MEDIUM | | A5 O PLAY AUDIO(12) | | A6 O EXCHANGE MEDIUM | | A7 | | A8 O GET MESSAGE(12) | | A8 OO O READ(12) | | A9 O PLAY TRACK RELATIVE(12) | | AA O SEND MESSAGE(12) | | AA O O WRITE(12) | | AB | | AC O ERASE(12) | | AD | | AE O O WRITE AND VERIFY(12) | | AF OO O VERIFY(12) | | B0 OO O SEARCH DATA HIGH(12) | | B1 OO O SEARCH DATA EQUAL(12) | | B2 OO O SEARCH DATA LOW(12) | | B3 OO O SET LIMITS(12) | | B4 | | B5 | | B5 O REQUEST VOLUME ELEMENT ADDRESS | | B6 | | B6 O SEND VOLUME TAG | | B7 O READ DEFECT DATA(12) | | B8 | | B8 O READ ELEMENT STATUS | | B9 | | BA | | BB | | BC | | BD | | BE | | BF | +=============================================================================+
http://www.t10.org/lists/op-num.txt
File: OP-NUM.TXT SCSI Operation Codes Numeric Sorted Listing as of 5/10/12 D - DIRECT ACCESS DEVICE (SBC-3) device column key .T - SEQUENTIAL ACCESS DEVICE (SSC-3) ------------------- . L - PRINTER DEVICE (SSC) M = Mandatory . P - PROCESSOR DEVICE (SPC-2) O = Optional . .W - WRITE ONCE READ MULTIPLE DEVICE (SBC) V = Vendor specific . . R - C/DVD DEVICE (MMC-6) Z = Obsolete . . O - OPTICAL MEMORY DEVICE (SBC) . . .M - MEDIA CHANGER DEVICE (SMC-3) . . . A - STORAGE ARRAY DEVICE (SCC-2) . . . .E - ENCLOSURE SERVICES DEVICE (SES-2) . . . .B - SIMPLIFIED DIRECT-ACCESS DEVICE (RBC) . . . . K - OPTICAL CARD READER/WRITER DEVICE (OCRW) . . . . V - AUTOMATION/DRIVE INTERFACE (ADC-2) . . . . .F - OBJECT-BASED STORAGE (OSD-2) OP DTLPWROMAEBKVF Description -- -------------- ---------------------------------------------------- 00 MMMMMMMMMMMMMM TEST UNIT READY 01 M REWIND 01 Z V ZZZZ REZERO UNIT 02 VVVVVV V 03 MMMMMMMMMMOMMM REQUEST SENSE 04 M OO FORMAT UNIT 04 O FORMAT MEDIUM 04 O FORMAT 05 VMVVVV V READ BLOCK LIMITS 06 VVVVVV V 07 OVV O OV REASSIGN BLOCKS 07 O INITIALIZE ELEMENT STATUS 08 ZMV O OV READ(6) 08 O RECEIVE 08 GET MESSAGE(6) 09 VVVVVV V 0A ZO O OV WRITE(6) 0A M SEND(6) 0A SEND MESSAGE(6) 0A M PRINT 0B Z ZOZV SEEK(6) 0B O SET CAPACITY 0B O SLEW AND PRINT 0C VVVVVV V 0D VVVVVV V 0E VVVVVV V 0F VOVVVV V READ REVERSE(6) 10 VM VVV WRITE FILEMARKS(6) 10 O SYNCHRONIZE BUFFER 11 VMVVVV SPACE(6) 12 MMMMMMMMMMMMMM INQUIRY 13 V VVVV 13 O VERIFY(6) 14 VOOVVV RECOVER BUFFERED DATA 15 OMO O OOOO OO MODE SELECT(6) 16 ZZMZO OOOZ O RESERVE(6) 16 Z RESERVE ELEMENT(6) 17 ZZMZO OOOZ O RELEASE(6) 17 Z RELEASE ELEMENT(6) 18 ZZZZOZO Z COPY 19 VMVVVV ERASE(6) 1A OMO O OOOO OO MODE SENSE(6) 1B O OOO O MO O START STOP UNIT 1B O M LOAD UNLOAD 1B SCAN 1B O STOP PRINT 1B O OPEN/CLOSE IMPORT/EXPORT ELEMENT 1C OOOOO OOOM OOO RECEIVE DIAGNOSTIC RESULTS 1D MMMMM MMOM MMM SEND DIAGNOSTIC 1E OO OOOO O O PREVENT ALLOW MEDIUM REMOVAL 1F 20 V VVV V 21 V VVV V 22 V VVV V 23 V V V V 23 O READ FORMAT CAPACITIES 24 V VV SET WINDOW 25 M M M M READ CAPACITY(10) 25 O READ CAPACITY 25 M READ CARD CAPACITY 25 GET WINDOW 26 V VV 27 V VV 28 M MOM MM READ(10) 28 GET MESSAGE(10) 29 V VVO READ GENERATION 2A O MOM MO WRITE(10) 2A SEND(10) 2A SEND MESSAGE(10) 2B Z OOO O SEEK(10) 2B M LOCATE(10) 2B O POSITION TO ELEMENT 2C V OO ERASE(10) 2D O READ UPDATED BLOCK 2D V 2E O OOO MO WRITE AND VERIFY(10) 2F O OOO VERIFY(10) 30 Z ZZZ SEARCH DATA HIGH(10) 31 Z ZZZ SEARCH DATA EQUAL(10) 31 OBJECT POSITION 32 Z ZZZ SEARCH DATA LOW(10) 33 Z OZO SET LIMITS(10) 34 O O O O PRE-FETCH(10) 34 M READ POSITION 34 GET DATA BUFFER STATUS 35 O OOO MO SYNCHRONIZE CACHE(10) 36 Z O O O LOCK UNLOCK CACHE(10) 37 O O READ DEFECT DATA(10) 37 O INITIALIZE ELEMENT STATUS WITH RANGE 38 O O O MEDIUM SCAN 39 ZZZZOZO Z COMPARE 3A ZZZZOZO Z COPY AND VERIFY 3B OOOOOOOOOOMOOO WRITE BUFFER 3C OOOOOOOOOO OOO READ BUFFER 3D O UPDATE BLOCK 3E O O O READ LONG(10) 3F O O O WRITE LONG(10) 40 ZZZZOZOZ CHANGE DEFINITION 41 O WRITE SAME(10) 42 O UNMAP 42 O READ SUB-CHANNEL 43 O READ TOC/PMA/ATIP 44 M M REPORT DENSITY SUPPORT 44 READ HEADER 45 O PLAY AUDIO(10) 46 M GET CONFIGURATION 47 O PLAY AUDIO MSF 48 O O SANITIZE 49 4A M GET EVENT STATUS NOTIFICATION 4B O PAUSE/RESUME 4C OOOOO OOOO OOO LOG SELECT 4D OOOOO OOOO OMO LOG SENSE 4E O STOP PLAY/SCAN 4F 50 Z XDWRITE(10) 51 O XPWRITE(10) 51 O READ DISC INFORMATION 52 Z XDREAD(10) 52 O READ TRACK INFORMATION 53 O XDWRITEREAD(10) 53 O RESERVE TRACK 54 O SEND OPC INFORMATION 55 OOO OMOOOOMOMO MODE SELECT(10) 56 ZZMZO OOOZ RESERVE(10) 56 Z RESERVE ELEMENT(10) 57 ZZMZO OOOZ RELEASE(10) 57 Z RELEASE ELEMENT(10) 58 O REPAIR TRACK 59 5A OOO OMOOOOMOMO MODE SENSE(10) 5B O CLOSE TRACK/SESSION 5C O READ BUFFER CAPACITY 5D O SEND CUE SHEET 5E OMOOO OOOO M PERSISTENT RESERVE IN 5F OMOOO OOOO M PERSISTENT RESERVE OUT 7E OO O OOOO O extended CDB 7F O M variable length CDB (more than 16 bytes) 80 Z XDWRITE EXTENDED(16) 80 M WRITE FILEMARKS(16) 81 Z REBUILD(16) 81 O READ REVERSE(16) 82 Z REGENERATE(16) 82 O ALLOW OVERWRITE 83 OOOOO O OO Third-party Copy OUT 84 OOOOO O OO Third-party Copy IN 85 O O ATA PASS-THROUGH(16) 86 OO OO OOOOOOO ACCESS CONTROL IN 87 OO OO OOOOOOO ACCESS CONTROL OUT 88 MO O O O READ(16) 89 O COMPARE AND WRITE 8A OO O O O WRITE(16) 8B O ORWRITE 8C OO O OO O M READ ATTRIBUTE 8D OO O OO O O WRITE ATTRIBUTE 8E O O O O WRITE AND VERIFY(16) 8F OO O O O VERIFY(16) 90 O O O O PRE-FETCH(16) 91 O O O O SYNCHRONIZE CACHE(16) 91 O SPACE(16) 92 Z O O LOCK UNLOCK CACHE(16) 92 M LOCATE(16) 93 O WRITE SAME(16) 93 M ERASE(16) 94 [usage proposed by SCSI Socket Services project] 95 [usage proposed by SCSI Socket Services project] 96 [usage proposed by SCSI Socket Services project] 97 [usage proposed by SCSI Socket Services project] 98 99 9A 9B 9C 9D SERVICE ACTION BIDIRECTIONAL 9E SERVICE ACTION IN(16) 9F M SERVICE ACTION OUT(16) A0 MMOOO OMMM OMO REPORT LUNS A1 O BLANK A1 O O ATA PASS-THROUGH(12) A2 OO O O SECURITY PROTOCOL IN A3 OOO O OOMOOOM MAINTENANCE IN A3 O SEND KEY A4 OOO O OOOOOOO MAINTENANCE OUT A4 O REPORT KEY A5 Z O OM MOVE MEDIUM A5 O PLAY AUDIO(12) A6 O EXCHANGE MEDIUM A6 O LOAD/UNLOAD C/DVD A7 ZZ O O MOVE MEDIUM ATTACHED A7 O SET READ AHEAD A8 O OOO READ(12) A8 GET MESSAGE(12) A9 O SERVICE ACTION OUT(12) AA O OOO WRITE(12) AA SEND MESSAGE(12) AB O O SERVICE ACTION IN(12) AC O ERASE(12) AC O GET PERFORMANCE AD O READ DVD STRUCTURE AE O O O WRITE AND VERIFY(12) AF O O O VERIFY(12) B0 ZZZ SEARCH DATA HIGH(12) B1 ZZZ SEARCH DATA EQUAL(12) B2 ZZZ SEARCH DATA LOW(12) B3 Z OZO SET LIMITS(12) B4 ZZ OZO READ ELEMENT STATUS ATTACHED B5 OO O O SECURITY PROTOCOL OUT B5 O REQUEST VOLUME ELEMENT ADDRESS B6 O SEND VOLUME TAG B6 O SET STREAMING B7 O O READ DEFECT DATA(12) B8 Z OZOM READ ELEMENT STATUS B9 O READ CD MSF BA O O OOMO REDUNDANCY GROUP (IN) BA O SCAN BB O O OOOO REDUNDANCY GROUP (OUT) BB O SET CD SPEED BC O O OOMO SPARE (IN) BD O O OOOO SPARE (OUT) BD O MECHANISM STATUS BE O O OOMO VOLUME SET (IN) BE O READ CD BF O O OOOO VOLUME SET (OUT) BF O SEND DVD STRUCTURE
File: OP-ALPH.TXT SCSI Operation Codes Alphabetic Sorted Listing as of 5/10/12 D - DIRECT ACCESS DEVICE (SBC-3) device column key .T - SEQUENTIAL ACCESS DEVICE (SSC-3) ------------------- . L - PRINTER DEVICE (SSC) M = Mandatory . P - PROCESSOR DEVICE (SPC-2) O = Optional . .W - WRITE ONCE READ MULTIPLE DEVICE (SBC) V = Vendor specific . . R - C/DVD DEVICE (MMC-6) Z = Obsolete . . O - OPTICAL MEMORY DEVICE (SBC) . . .M - MEDIA CHANGER DEVICE (SMC-3) . . . A - STORAGE ARRAY DEVICE (SCC-2) . . . E - ENCLOSURE SERVICES DEVICE (SES-2) . . . .B - SIMPLIFIED DIRECT-ACCESS DEVICE (RBC) . . . . K - OPTICAL CARD READER/WRITER DEVICE (OCRW) . . . . V - AUTOMATION/DEVICE INTERFACE (ADC-2) . . . . .F - OBJECT-BASED STORAGE (OSD-2) OP DTLPWROMAEBKVF Description -- -------------- ---------------------------------------------------- 82 O ALLOW OVERWRITE 85 O O ATA PASS-THROUGH(16) 86 OO OO OOOOOOO ACCESS CONTROL IN 87 OO OO OOOOOOO ACCESS CONTROL OUT A1 O O ATA PASS-THROUGH(12) A1 O BLANK 18 ZZZZOZO Z COPY 39 ZZZZOZO Z COMPARE 3A ZZZZOZO Z COPY AND VERIFY 40 ZZZZOZOZ CHANGE DEFINITION 5B O CLOSE TRACK/SESSION 89 O COMPARE AND WRITE 19 VMVVVV ERASE(6) 2C V OO ERASE(10) 93 M ERASE(16) A6 O EXCHANGE MEDIUM AC O ERASE(12) 04 M OO FORMAT UNIT 04 O FORMAT MEDIUM 04 O FORMAT 08 GET MESSAGE(6) 25 GET WINDOW 28 GET MESSAGE(10) 34 GET DATA BUFFER STATUS 46 M GET CONFIGURATION 4A M GET EVENT STATUS NOTIFICATION A8 GET MESSAGE(12) AC O GET PERFORMANCE 07 O INITIALIZE ELEMENT STATUS 12 MMMMMMMMMMMMMM INQUIRY 37 O INITIALIZE ELEMENT STATUS WITH RANGE 1B O M LOAD UNLOAD 2B M LOCATE(10) 36 Z O O O LOCK UNLOCK CACHE(10) 4C OOOOO OOOO OOO LOG SELECT 4D OOOOO OOOO OMO LOG SENSE 92 Z O O LOCK UNLOCK CACHE(16) 92 M LOCATE(16) A6 O LOAD/UNLOAD C/DVD 15 OMO O OOOO OO MODE SELECT(6) 1A OMO O OOOO OO MODE SENSE(6) 38 O O O MEDIUM SCAN 55 OOO OMOOOOMOMO MODE SELECT(10) 5A OOO OMOOOOMOMO MODE SENSE(10) A3 OOO O OOMOOOM MAINTENANCE IN A4 OOO O OOOOOOO MAINTENANCE OUT A5 Z O OM MOVE MEDIUM A7 ZZ O O MOVE MEDIUM ATTACHED BD O MECHANISM STATUS 1B O OPEN/CLOSE IMPORT/EXPORT ELEMENT 31 OBJECT POSITION 8B O ORWRITE 0A M PRINT 1E OO OOOO O O PREVENT ALLOW MEDIUM REMOVAL 2B O POSITION TO ELEMENT 34 O O O O PRE-FETCH(10) 45 O PLAY AUDIO(10) 47 O PLAY AUDIO MSF 4B O PAUSE/RESUME 5E OMOOO OOOO M PERSISTENT RESERVE IN 5F OMOOO OOOO M PERSISTENT RESERVE OUT 90 O O O O PRE-FETCH(16) A5 O PLAY AUDIO(12) 01 M REWIND 01 Z V ZZZZ REZERO UNIT 03 MMMMMMMMMMOMMM REQUEST SENSE 05 VMVVVV V READ BLOCK LIMITS 07 OVV O OV REASSIGN BLOCKS 08 ZMV O OV READ(6) 08 O RECEIVE 0F VOVVVV V READ REVERSE(6) 14 VOOVVV RECOVER BUFFERED DATA 16 ZZMZO OOOZ O RESERVE(6) 16 Z RESERVE ELEMENT(6) 17 ZZMZO OOOZ O RELEASE(6) 17 Z RELEASE ELEMENT(6) 1C OOOOO OOOM OOO RECEIVE DIAGNOSTIC RESULTS 23 O READ FORMAT CAPACITIES 25 M M M M READ CAPACITY(10) 25 O READ CAPACITY 25 M READ CARD CAPACITY 28 M MOM MM READ(10) 29 V VVO READ GENERATION 2D O READ UPDATED BLOCK 34 M READ POSITION 37 O O READ DEFECT DATA(10) 3C OOOOOOOOOO OOO READ BUFFER 3E O O O READ LONG(10) 42 O READ SUB-CHANNEL 43 O READ TOC/PMA/ATIP 44 M M REPORT DENSITY SUPPORT 44 READ HEADER 51 O READ DISC INFORMATION 52 O READ TRACK INFORMATION 53 O RESERVE TRACK 56 ZZMZO OOOZ RESERVE(10) 56 Z RESERVE ELEMENT(10) 57 ZZMZO OOOZ RELEASE(10) 57 Z RELEASE ELEMENT(10) 58 O REPAIR TRACK 5C O READ BUFFER CAPACITY 81 Z REBUILD(16) 81 O READ REVERSE(16) 82 Z REGENERATE(16) 88 MO O O O READ(16) 8C OO O OO O M READ ATTRIBUTE A0 MMOOO OMMM OMO REPORT LUNS A4 O REPORT KEY A8 O OOO READ(12) AD O READ DVD STRUCTURE B4 ZZ OZO READ ELEMENT STATUS ATTACHED B5 O REQUEST VOLUME ELEMENT ADDRESS B7 O O READ DEFECT DATA(12) B8 Z OZOM READ ELEMENT STATUS B9 O READ CD MSF BA O O OOMO REDUNDANCY GROUP (IN) BB O O OOOO REDUNDANCY GROUP (OUT) BE O READ CD 0A M SEND(6) 0A SEND MESSAGE(6) 0B Z ZOZV SEEK(6) 0B O SET CAPACITY 0B O SLEW AND PRINT 10 O SYNCHRONIZE BUFFER 11 VMVVVV SPACE(6) 1B O OOO O MO O START STOP UNIT 1B SCAN 1B O STOP PRINT 1D MMMMM MMOM MMM SEND DIAGNOSTIC 24 V VV SET WINDOW 2A SEND(10) 2A SEND MESSAGE(10) 2B Z OOO O SEEK(10) 30 Z ZZZ SEARCH DATA HIGH(10) 31 Z ZZZ SEARCH DATA EQUAL(10) 32 Z ZZZ SEARCH DATA LOW(10) 33 Z OZO SET LIMITS(10) 35 O OOO MO SYNCHRONIZE CACHE(10) 48 O O SANITIZE 4E O STOP PLAY/SCAN 54 O SEND OPC INFORMATION 5D O SEND CUE SHEET 91 O O O O SYNCHRONIZE CACHE(16) 91 O SPACE(16) 9D SERVICE ACTION BIDIRECTIONAL 9E SERVICE ACTION IN(16) 9F M SERVICE ACTION OUT(16) A2 OO O O SECURITY PROTOCOL IN A3 O SEND KEY A7 O SET READ AHEAD A9 O SERVICE ACTION OUT(12) AA SEND MESSAGE(12) AB O O SERVICE ACTION IN(12) B0 ZZZ SEARCH DATA HIGH(12) B1 ZZZ SEARCH DATA EQUAL(12) B2 ZZZ SEARCH DATA LOW(12) B3 Z OZO SET LIMITS(12) B5 OO O O SECURITY PROTOCOL OUT B6 O SEND VOLUME TAG B6 O SET STREAMING BA O SCAN BB O SET CD SPEED BC O O OOMO SPARE (IN) BD O O OOOO SPARE (OUT) BF O SEND DVD STRUCTURE 00 MMMMMMMMMMMMMM TEST UNIT READY 83 OOOOO O OO Third-party Copy OUT 84 OOOOO O OO Third-party Copy IN 3D O UPDATE BLOCK 42 O UNMAP 13 O VERIFY(6) 2F O OOO VERIFY(10) 8F OO O O O VERIFY(16) AF O O O VERIFY(12) BE O O OOMO VOLUME SET (IN) BF O O OOOO VOLUME SET (OUT) 0A ZO O OV WRITE(6) 10 VM VVV WRITE FILEMARKS(6) 2A O MOM MO WRITE(10) 2E O OOO MO WRITE AND VERIFY(10) 3B OOOOOOOOOOMOOO WRITE BUFFER 3F O O O WRITE LONG(10) 41 O WRITE SAME(10) 80 M WRITE FILEMARKS(16) 8A OO O O O WRITE(16) 8D OO O OO O O WRITE ATTRIBUTE 8E O O O O WRITE AND VERIFY(16) 93 O WRITE SAME(16) AA O OOO WRITE(12) AE O O O WRITE AND VERIFY(12) 50 Z XDWRITE(10) 51 O XPWRITE(10) 52 Z XDREAD(10) 53 O XDWRITEREAD(10) 80 Z XDWRITE EXTENDED(16) 94 [usage proposed by SCSI Socket Services project] 95 [usage proposed by SCSI Socket Services project] 96 [usage proposed by SCSI Socket Services project] 97 [usage proposed by SCSI Socket Services project] 7E OO O OOOO O extended CDB 7F O M variable length CDB (more than 16 bytes)
SCSI Operation Codes Numeric Sorted Listing as of 5/10/12 Operation Codes by Group Group 0 - Six-byte commands (00 to 1F) Group 1 - Ten-byte commands (20 to 3F) Group 2 - Ten-byte commands (40 to 5F) Group 3 - reserved Group 4 - Sixteen-byte commands (80 to 9F) Group 5 - Twelve-byte commands (A0 to BF) Group 6 - vendor specific Group 7 - vendor specific Complete Operation Codes Listing D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description 00 MMMMMMMMMMMMMM TEST UNIT READY 01 M REWIND 01 Z V ZZZZ REZERO UNIT [SBC] 02 VVVVVV V 03 MMMMMMMMMMOMMM REQUEST SENSE 04 M OO FORMAT UNIT 04 O FORMAT MEDIUM 04 O FORMAT 05 VMVVVV V READ BLOCK LIMITS 06 VVVVVV V 07 OVV O OV REASSIGN BLOCKS 07 O INITIALIZE ELEMENT STATUS 08 ZMV O OV READ(6) 08 O RECEIVE 08 GET MESSAGE(6) OP DTLPWROMAEBKVF Description 09 VVVVVV V 0A ZO O OV WRITE(6) 0A M SEND(6) 0A SEND MESSAGE(6) 0A M PRINT 0B Z ZOZV SEEK(6) [SBC] 0B O SET CAPACITY 0B O SLEW AND PRINT 0C VVVVVV V 0D VVVVVV V 0E VVVVVV V 0F VOVVVV V READ REVERSE(6) 10 VM VVV WRITE FILEMARKS(6) 10 O SYNCHRONIZE BUFFER 11 VMVVVV SPACE(6) OP DTLPWROMAEBKVF Description 12 MMMMMMMMMMMMMM INQUIRY 13 V VVVV 13 O VERIFY(6) 14 VOOVVV RECOVER BUFFERED DATA 15 OMO O OOOO OO MODE SELECT(6) 16 ZZMZO OOOZ O RESERVE(6) [SPC-2] 16 Z RESERVE ELEMENT(6) [SMC] 17 ZZMZO OOOZ O RELEASE(6) [SPC-2] 17 Z RELEASE ELEMENT(6) [SMC] 18 ZZZZOZO Z COPY [SPC] 19 VMVVVV ERASE(6) 1A OMO O OOOO OO MODE SENSE(6) 1B O OOO O MO O START STOP UNIT 1B O M LOAD UNLOAD 1B SCAN OP DTLPWROMAEBKVF Description 1B O STOP PRINT 1B O OPEN/CLOSE IMPORT/EXPORT ELEMENT 1C OOOOO OOOM OOO RECEIVE DIAGNOSTIC RESULTS 1D MMMMM MMOM MMM SEND DIAGNOSTIC 1E OO OOOO O O PREVENT ALLOW MEDIUM REMOVAL 1F top - bottom D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description 20 V VVV V 21 V VVV V 22 V VVV V 23 V V V V 23 O READ FORMAT CAPACITIES 24 V VV SET WINDOW 25 M M M M READ CAPACITY(10) 25 O READ CAPACITY 25 M READ CARD CAPACITY 25 GET WINDOW 26 V VV 27 V VV 28 M MOM MM READ(10) 28 GET MESSAGE(10) 29 V VVO READ GENERATION OP DTLPWROMAEBKVF Description 2A O MOM MO WRITE(10) 2A SEND(10) 2A SEND MESSAGE(10) 2B Z OOO O SEEK(10) [SBC] 2B M LOCATE(10) 2B O POSITION TO ELEMENT 2C V OO ERASE(10) 2D O READ UPDATED BLOCK 2D V 2E O OOO MO WRITE AND VERIFY(10) 2F O OOO VERIFY(10) 30 Z ZZZ SEARCH DATA HIGH(10) [SBC] 31 Z ZZZ SEARCH DATA EQUAL(10) [SBC] 31 OBJECT POSITION 32 Z ZZZ SEARCH DATA LOW(10) [SBC] OP DTLPWROMAEBKVF Description 33 Z OZO SET LIMITS(10) [SBC] 34 O O O O PRE-FETCH(10) 34 M READ POSITION 34 GET DATA BUFFER STATUS 35 O OOO MO SYNCHRONIZE CACHE(10) 36 Z O O O LOCK UNLOCK CACHE(10) [SBC] 37 O O READ DEFECT DATA(10) 37 O INITIALIZE ELEMENT STATUS WITH RANGE 38 O O O MEDIUM SCAN 39 ZZZZOZO Z COMPARE [SPC] 3A ZZZZOZO Z COPY AND VERIFY [SPC] 3B OOOOOOOOOOMOOO WRITE BUFFER 3C OOOOOOOOOO OOO READ BUFFER 3D O UPDATE BLOCK 3E O O O READ LONG(10) OP DTLPWROMAEBKVF Description 3F O O O WRITE LONG(10) top - bottom D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description 40 ZZZZOZOZ CHANGE DEFINITION [SPC] 41 O WRITE SAME(10) 42 O UNMAP 42 O READ SUB-CHANNEL 43 O READ TOC/PMA/ATIP 44 M M REPORT DENSITY SUPPORT 44 READ HEADER 45 O PLAY AUDIO(10) 46 M GET CONFIGURATION 47 O PLAY AUDIO MSF 48 O O SANITIZE 49 4A M GET EVENT STATUS NOTIFICATION 4B O PAUSE/RESUME 4C OOOOO OOOO OOO LOG SELECT OP DTLPWROMAEBKVF Description 4D OOOOO OOOO OMO LOG SENSE 4E O STOP PLAY/SCAN 4F 50 Z XDWRITE(10) [SBC-2] 51 O XPWRITE(10) 51 O READ DISC INFORMATION 52 Z XDREAD(10) [SBC-2] 52 O READ TRACK INFORMATION 53 O XDWRITEREAD(10) 53 O RESERVE TRACK 54 O SEND OPC INFORMATION 55 OOO OMOOOOMOMO MODE SELECT(10) 56 ZZMZO OOOZ RESERVE(10) [SPC-2] 56 Z RESERVE ELEMENT(10) [SMC] 57 ZZMZO OOOZ RELEASE(10) [SPC-2] OP DTLPWROMAEBKVF Description 57 Z RELEASE ELEMENT(10) [SMC] 58 O REPAIR TRACK 59 5A OOO OMOOOOMOMO MODE SENSE(10) 5B O CLOSE TRACK/SESSION 5C O READ BUFFER CAPACITY 5D O SEND CUE SHEET 5E OMOOO OOOO M PERSISTENT RESERVE IN 5F OMOOO OOOO M PERSISTENT RESERVE OUT top - bottom D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description 7E OO O OOOO O extended CDB 7F O M variable length CDB (more than 16 bytes) top - bottom D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description 80 Z XDWRITE EXTENDED(16) [SBC] 80 M WRITE FILEMARKS(16) 81 Z REBUILD(16) [SBC] 81 O READ REVERSE(16) 82 Z REGENERATE(16) [SBC] 82 O ALLOW OVERWRITE 83 OOOOO O OO Third-party Copy OUT 84 OOOOO O OO Third-party Copy IN 85 O O ATA PASS-THROUGH(16) 86 OO OO OOOOOOO ACCESS CONTROL IN 87 OO OO OOOOOOO ACCESS CONTROL OUT 88 MO O O O READ(16) 89 O COMPARE AND WRITE 8A OO O O O WRITE(16) 8B O ORWRITE OP DTLPWROMAEBKVF Description 8C OO O OO O M READ ATTRIBUTE 8D OO O OO O O WRITE ATTRIBUTE 8E O O O O WRITE AND VERIFY(16) 8F OO O O O VERIFY(16) 90 O O O O PRE-FETCH(16) 91 O O O O SYNCHRONIZE CACHE(16) 91 O SPACE(16) 92 Z O O LOCK UNLOCK CACHE(16) [SBC] 92 M LOCATE(16) 93 O WRITE SAME(16) 93 M ERASE(16) 94 [usage proposed by SCSI Socket Services project] 95 [usage proposed by SCSI Socket Services project] 96 [usage proposed by SCSI Socket Services project] 97 [usage proposed by SCSI Socket Services project] OP DTLPWROMAEBKVF Description 98 99 9A 9B 9C 9D SERVICE ACTION BIDIRECTIONAL 9E SERVICE ACTION IN(16) 9F M SERVICE ACTION OUT(16) top - bottom D - Direct Access Block Device (SBC-3) Device Column key .T - Sequential Access Device (SSC-3) --------------------- . L - Printer Device (SSC) M = Mandatory . P - Processor Device (SPC-2) O = Optional . .W - Write Once Block Device (SBC) V = Vendor specific . . R - C/DVD Device (MMC-6) Z = Obsolete -- with . . O - Optical Memory Block Device (SBC) [std] identifying . . .M - Media Changer Device (SMC-3) last standard . . . A - Storage Array Device (SCC-2) . . . E - SCSI Enclosure Services device (SES-2) . . . .B - Simplified Direct-Access (Reduced Block) device (RBC) . . . . K - Optical Card Reader/Writer device (OCRW) . . . . V - Automation/Device Interface device (ADC-2) . . . . .F - Object-based Storage Device (OSD-2) . . . . . OP DTLPWROMAEBKVF Description A0 MMOOO OMMM OMO REPORT LUNS A1 O BLANK A1 O O ATA PASS-THROUGH(12) A2 OO O O SECURITY PROTOCOL IN A3 OOO O OOMOOOM MAINTENANCE IN A3 O SEND KEY A4 OOO O OOOOOOO MAINTENANCE OUT A4 O REPORT KEY A5 Z O OM MOVE MEDIUM [SMC-2] A5 O PLAY AUDIO(12) A6 O EXCHANGE MEDIUM A6 O LOAD/UNLOAD C/DVD A7 ZZ O O MOVE MEDIUM ATTACHED [SMC-2] A7 O SET READ AHEAD A8 O OOO READ(12) OP DTLPWROMAEBKVF Description A8 GET MESSAGE(12) A9 O SERVICE ACTION OUT(12) AA O OOO WRITE(12) AA SEND MESSAGE(12) AB O O SERVICE ACTION IN(12) AC O ERASE(12) AC O GET PERFORMANCE AD O READ DVD STRUCTURE AE O O O WRITE AND VERIFY(12) AF O O O VERIFY(12) B0 ZZZ SEARCH DATA HIGH(12) [SBC] B1 ZZZ SEARCH DATA EQUAL(12) [SBC] B2 ZZZ SEARCH DATA LOW(12) [SBC] B3 Z OZO SET LIMITS(12) [SBC] B4 ZZ OZO READ ELEMENT STATUS ATTACHED [SMC-2] OP DTLPWROMAEBKVF Description B5 OO O O SECURITY PROTOCOL OUT B5 O REQUEST VOLUME ELEMENT ADDRESS B6 O SEND VOLUME TAG B6 O SET STREAMING B7 O O READ DEFECT DATA(12) B8 Z OZOM READ ELEMENT STATUS [SMC-2] B9 O READ CD MSF BA O O OOMO REDUNDANCY GROUP (IN) BA O SCAN BB O O OOOO REDUNDANCY GROUP (OUT) BB O SET CD SPEED BC O O OOMO SPARE (IN) BD O O OOOO SPARE (OUT) BD O MECHANISM STATUS BE O O OOMO VOLUME SET (IN) OP DTLPWROMAEBKVF Description BE O READ CD BF O O OOOO VOLUME SET (OUT) BF O SEND DVD STRUCTURE top - bottom Return to the SCSI Common Codes & Values page Return to the T10 Home Page
SCSI Operation Code Table Format Explanation The following shows several a small section of operation code table entries with each column of the table identified in detail. |-> Operation Code value (in hexadecimal) || || |-> Codes identifying how devices the operation code || |-> value. (See detailed description below.) || | || | | |-> SCSI Command represented by the operation code || |------------| |-------------------------------------------------| DTLPWROMAEBKVF 00 MMMMMMMMMMMMMM TEST UNIT READY 02 VVVVVV V 04 M O O FORMAT UNIT 04 O FORMAT MEDIUM The DTLPWROMAEBKVF letters head one column each for the several standardized SCSI device types. In the hyper-text tables, you will note that the DTLPWRSOMCAEBK column heading letters are repeated frequently. This should help you correlate column entries with the SCSI device types that the represent. The DTLPWROMAEBKVF letters stand for specific SCSI device types as follows: D - Direct Access Device (SBC) T - Sequential Access Device (SSC-2) L - Printer Device (SSC) P - Processor Device (SPC-2) W - Write Once Read Multiple Device (SBC) R - C/DVD Device (MMC-3) O - Optical Memory Device (SBC) M - Media Changer Device (SMC-2) A - Storage Array Device (SCC-2) E - Enclosure Services Device (SES) B - Simplified Direct-Access Device (RBC) K - Optical Card Reader/Writer Device (OCRW) V - Automation/Drive Interface (ADC) F - Object-based Storage (OSD) In each DTLPWROMAEBKVF column, a letter (or blank) indicates the usage of the listed operation code by each specific SCSI device type. A blank in a column indicates that the listed operation code does not represent the listed command for the specific SCSI device type. One operation code can represent different SCSI commands for different SCSI device types. The example shows this for the FORMAT UNIT and FORMAT MEDIUM commands. The FORMAT UNIT command uses operation code 04h for disk devices, while the FORMAT MEDIUM command uses operation code 04h for tape devices. The letters in the DTLPWROMAEBKVF columns describe the requirements placed on the specific SCSI device type for the listed operation code and SCSI command. The following letters are used and have the noted meanings: M - Mandatory O - Optional V - Vendor specific Z - Obsolete