Mode Sense 6-byte (1Ah) and Mode Sense 10-byte (5Ah)

The Mode Sense commands return information about the library's operating mode parameters. The data can be truncated to the length specified in the allocation length field.

Mode Sense 10-byte Command

Command Definitions

LLBA (10-byte only)

Set this to 0. The library will return 0 for LONGBLA in the parameter data.

DBD (Disable Block Descriptor)

The library ignores this field.

Page Control

0h (00b) = Current Values. The library returns the requested pages with each supported parameter set to its current value.

1h (01b) = Changeable Parameter Values. The library returns the requested pages indicating which parameters the initiator can change (1 indicates a changeable parameters and 0 indicates an unchangeable parameter).

Note:

The library does not support any changeable mode values.

2h (10b) = Default Values. The library returns the requested pages with each supported parameter set to its default. The default values are the same as the current values.

3h (11b) = Saved Values. The library does not support any savable pages. If you request Saved Values, the library returns a check condition.

Page Code

18h = Fibre Channel Logical Unit page

19h = Fibre Channel Port Control page

1Dh = Element Address Assignment page

1Eh = Transport Geometry page

1Fh = Device Capabilities page

3Fh = All pages (in the above order)

SubPage Code (not supported)

Set this to 0.

Allocation Length

The length of the parameter list returned by the library. The maximum length for Mode Sense 6-byte is 40h (64d) bytes. The maximum length for Mode Sense 10-byte is 44h (68d) bytes.

The library transfers the number of bytes specified by the Allocation Length or the available Mode Sense data, whichever is less. The length varies based on the Page Code selected:

  • 4 bytes (for Mode Sense 6-byte) or 8 bytes (for Mode Sense 10-byte) for the parameter list header which is always present.
  • 8 additional bytes for the Fibre Channel Logical Unit Control page
  • 8 additional bytes for the Fibre Channel Port Control page
  • 20 additional bytes for the Element Address Assignment page
  • 4 additional bytes for the Transport Geometry page
  • 20 additional bytes for the Device Capabilities page

Mode Sense Parameter Header

Mode Sense 6-byte Parameter Header

Mode Sense 10-byte Parameter Header

Mode Data Length

The bytes of parameter information available regardless of the allocation length. This value excludes the Mode Data Length byte, but includes three additional bytes (for Mode Sense 6-byte) or six additional bytes (for Mode Sense 10-byte) and the length of any mode pages that follow.

Block Descriptor Length (not supported)

The library returns 0.

FC Logical Unit Control Page

PS (Parameters Saveable)

The library returns 0.

SPF (SubPage Format)

The library returns 0 to indicate page_0 format.

Protocol Identifier

0h = FC protocol.

EPDC (Enable Precise Delivery Checking)

The library returns 0.

FC Port Control Page

PS (Parameters Savable)

The library returns 0.

Protocol Identifier

0h = FC protocol.

DTFD (Disable Target Fabric Discovery)

0 = Public Loop supported

1 = Private Loop only supported

PLPB (Prevent Loop Port Bypass)

The library returns 0.

DDIS (Disable Discovery)

The library returns 0.

DLM (Disable Loop Master)

The library returns 0.

RHA (Require Hard Address)

The library returns 0.

ALWI (Allow Login without Loop Initialization)

The library returns 0.

DTIPE (Disable Target Initiated Port Enable)

The library returns 0.

DTOLI (Disable Target Originated Loop Initialization)

The library returns 0.

RR_TOV Units (Resource Recovery Timeout Units)

The library always returns 100b = 10 second units.

RR_TOV Values (Resource Recovery Timeout Value)

The library always returns 1Eh = 300 seconds.

Element Address Assignment Page

PS (Parameters Savable)

The library returns 0.

Page Code

1Dh = The Element Address Assignment mode page.

Parameter Length

12h = 18d bytes of parameter data following this byte

First Medium Transport Element Address

00h = The address of the robot in the library.

Number of Medium Transport Elements

The number of the robots in the library.

First Storage Element Address

7D0h (2000d) = The address of the first data cartridge cell in the library or partition.

Number of Storage Elements

The number of data cartridge cells in the library or partition.

First Import/Export Element Address

000Ah (10d) = The address of the first CAP in the library or partition.

Number of Import/Export Elements

The number of CAPs in the library or partition.

First Data Transfer Element Address

3E8h (1000d) = The address of the first drive or empty drive slot in the library or partition.

Number of Data Transfer Elements

The number of drives and empty drive slots in the library.

Transport Geometry Mode Page

PS (Parameters Savable)

The library returns 0.

Page Code

1Eh = the Transport Geometry mode page.

Page Length

The number of additional types of transport geometry descriptor data to follow the header. Each descriptor has two bytes of information.

02h = The library has one transport mechanism.

Rotate

0 = The library does not use multiple-sided media.

Member Number in Transport Element Set

Identifies the transport element in the system.

00h = The library has one transport element.

Device Capabilities Page

  • DT — Data Transfer Element (drive)

  • I/E — Import/Export Element (CAP cells)

  • ST — Storage Element (cartridge storage cell)

  • MT — Medium transport (robot hand)

PS (Parameters Savable)

The library returns 0.

Page Code

1Fh = The Device Capabilities mode page.

Page Length

12h = 18 bytes of device capabilities data to follow.

StorDT

1 = A tape drive can function as element storage.

StorI/E

1 = A CAP cell can function as element storage.

StorST

1 = A cartridge cell can function as element storage.

StorMT

0 = The robot hand cannot function as element storage. You cannot use the robot as the source or destination of a move.

MT > DT, MT > I/E, MT > ST, MT > MT, ST > MT, I/E > MT, DT > MT

0 = The robot hand (MT) cannot be the source or destination of a move.

ST > DT, ST > I/E, ST > ST, I/E > DT, I/E > I/E, I/E > ST, DT > DT, DT > I/E, DT > ST

1 = Tape drives (DT), CAP cells (I/E), and cartridge cells (ST) are valid sources or destinations for a move.

All <> Parameters

0 = The library does not support the exchange medium command.