Inquiry Command (12h)

The Inquiry command (12h) requests that the library send to the initiator information regarding the library's parameters.

Note:

The Inquiry command returns check condition status only when the requested data cannot be returned. This command will not clear any pending unit attention conditions.

Figure 3-7 Descriptor Block - Inquiry Command (12h)

Description of Figure 3-7 follows
Description of "Figure 3-7 Descriptor Block - Inquiry Command (12h)"
CmdDt

The library returns a value of 0, indicating command support data is not supported.

EVPD

The enable vital product data bit indicates the type of inquiry data the initiator is requesting. Supported values are:

  • 0 = Request for normal inquiry data

  • 1 = Request for vital support product data page

Page Code

If the EVPD value is 0, this field must be 00h.

If the EVPD value is 1, this field must be:

  • 00h = Supported vital product pages

  • 80h = Unit serial number page

  • 83h = Device identification page (Fibre only)

Allocation Length

The allocation length field specifies the number of bytes the initiator has allocated for data returned from the Inquiry command.

A value of 0 indicates that no inquiry data is to be transferred. This condition is not considered an error.

The library terminates the Data In phase when it has transferred either the number of bytes specified by the Allocation Length field or all of the available inquiry data, whichever is less.

The data length for the normal inquiry data the library returns is 24h (36d) bytes. The data length for page 0 is 07h (7d). The data length for the unit serial number page (80h) is 0fh (15d) bytes. The data length for the device identification page (83h) is 18h (24d).

Normal Inquiry Data Definition

For the Inquiry command, the library returns 24h (36d) bytes of data in the format shown below.

Error Conditions: The library returns Check Condition status for the Inquiry command only when a severe error occurs. To recover from a Check Condition status report on the Inquiry command, verify that the Inquiry CDB is OK, and retry the Inquiry command.

Figure 3-8 Descriptor Block - Normal Inquiry Data Definition

Description of Figure 3-8 follows
Description of "Figure 3-8 Descriptor Block - Normal Inquiry Data Definition"
Peripheral Qualifier

The library returns a value of 000b, which indicates that the library is a single logical unit number (LUN). If a logical library is not currently mapped to the lun, this field is set to 011b.

Peripheral Device Type

The library returns a value of 8h, which indicates that the library is a medium changer device. If a logical library is not currently mapped to the lun, this field is set to 1fh.

RMB

Removable Medium; a value of 1 indicates the medium is removable.

Device-Type Modifier

A value of 0 indicates there are no modifiers for the library.

Version

The library returns a value of 5h, which indicates compliance to SCSI-3.

NormACA

The Normal Auto Contingent Allegiance (NACA) bit controls the rules for handling an auto contingent condition caused by a command.

The library returns a value of 0, indicating it does not support setting the NACA bit to one.

HiSup

The library returns a value of 1, indicating it uses the hierarchical addressing model to assign LUNs to logical units.

Response Data Format

A value of 2 indicates the data found is in accordance with the SCSI-3 specification.

Additional Length

A value of 1fh indicates there are 24h (36) bytes of Inquiry data available to the initiator.

SCCS

The library returns a value of 0, indicating the library does not contain an embedded storage array controller component.

ACC

The library returns a value of 0, indicating it does not contain an access control coordinator that may be addressed through this logical unit.

ALUA

The library returns a value of 0 for the asymmetrical logical unit access field, indicating asymmetric logical unit access is not supported.

3PC

The library returns a value of 0, indicating third-party commands are not supported.

BQUE

The library returns a value of 0, indicating basic queuing is not supported.

VS

Vendor Specific bit is set to 0, indicating there is no vendor-specific information with this command.

MultiP

The library returns a value of 0, indicating multi-port attachments are not supported.

MChngr

The library is not embedded in or attached to a medium transport element and returns a value of 0.

RelAdr

The library returns a value of 0 for the relative addressing bit, indicating relative addressing is not supported.

LINKED

The library returns a value of 0 for the LINKED command bit, indicating linked commands are not supported.

CmdQue

The library returns a value of 0, indicating Command Queing is not supported.

SftRe

The library returns a value of 0, indicating Soft Reset is not supported.

Vendor Identification

Contains the ASCII character sequence “SUN" followed by blanks. If the specified logical unit is not supported, this field contains all blanks.

Product Identification

This field contains the ASCII character sequence “ACSLS-SCSI" followed by blanks.

Product Revision Level

For ACSLS, the initial product revision level is 1000.

Supported Pages Definition

The library returns 7d bytes of supported page data in the format shown below.

Figure 3-9 Descriptor Block - Supported Pages Definition

Description of Figure 3-9 follows
Description of "Figure 3-9 Descriptor Block - Supported Pages Definition"
Peripheral Qualifier

The library returns a value of 000b, which indicates that the library is a single logical unit number (LUN). If a logical library is not currently mapped to the LUN, this field is set to 011b.

Peripheral Device Type

The library returns a value of 8h, which indicates that the library is a medium changer device. If a logical library is not currently mapped to the LUN, this field is set to 1fh.

Page Code

Identifies the page as the supported pages (00h).

Page Length

Indicates that three vital pages are supported (03h).

Supported Page

The first supported page value is set to:

Unit Serial Number Page Definition

Figure 3-10 Descriptor Block - Unit Serial Number Page Definition

Description of Figure 3-10 follows
Description of "Figure 3-10 Descriptor Block - Unit Serial Number Page Definition"
Peripheral Qualifier

The library returns a value of 000b, which indicates that the library is a single logical unit number (LUN). If a logical library is not currently mapped to the lun, this field is set to 011b.

Peripheral Device Type

The library returns a value of 8h, which indicates that the library is a medium changer device. If a logical library is not currently mapped to the lun, this field is set to 1fh.

Page Code

This field is set to 80h, identifying the page as the unit serial number page.

Additional Page Length

This field is set to 0Ch, the number of bytes in the product serial number.

Unit Serial Number

Serial numbers for logical libraries consist of 12 ASCII numeric (0-9) characters that uniquely identify the library. The format is SSSSSSSSNNN where:

  • SSSSSSSS is the unique software serial number of the system.

  • NNNN is the ID of the logical library partition within the system (0-9999).

Device Identification Page (Fibre Only)

The library returns 24 bytes of device identification page data (page 83h) in the format shown below.

Figure 3-11 Descriptor Block - Device Identification Page (Fibre Only)

Description of Figure 3-11 follows
Description of "Figure 3-11 Descriptor Block - Device Identification Page (Fibre Only)"

VPD page 83h returns a NAA type 6 IEEE Registered Extended identifier to uniquely identify the logical library.

Code Set

1h = Identifier field contains binary values

Association

0h = Identifier field is associated with the addressed logical unit

Identifier Type

3h = Identifier field contains an NAA type identifier that is compatible with a Name_Identifier defined in FC-FS

Identifier Length

10h = NAA type 6h identifier, IEEE Registered Extended, has a fixed length of 16 bytes

IEEE Company ID

This field contains the 24 bit canonical form Object Unique Identifier (OUI) for StorageTek assigned by the IEEE, i.e. 00104Fh.

Vendor Specific ID

The VSID encoding is 0000004A6h, which is the hexadecimal representation of the company unique product code within StorageTek for StorageTek ACSLS 8.x, i.e. 1190d.

Vendor Specific ID Extension

This field contains a hexadecimal encoding of the serial number. Each character of the serial number is represented in a 4 bit nibble. For example, a library with serial number “000012400002" the VSID Extension encoding would be 0000000012400002h.