Retrieve ASP Copy Information (QYASRTVINF) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve ASP Copy Information (QYASRTVINF) API retrieves information about ASP copy descriptions or ASP sessions.


Authorities and Locks

To use this API, *USE authority is required to each ASP device description referenced by an ASP copy description.


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of the receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable.

Format name
INPUT; CHAR(8)

The format of the information being returned. You must specify one of the following:


Number of filters
INPUT; BINARY(4)

The number of filters provided in the filter information.

Filter information
INPUT; CHAR(*)

The information in this parameter is used to determine what to include in the returned format. See Format of Filter Information for a description of the layout of this parameter.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Format of Receiver Variable

The following tables describe the order and format of the data that is returned in the receiver variable.


YASH0100 Format



Field Descriptions

ASP copy description name. The name of an ASP copy description.

Bytes available. The number of bytes of data available to be returned.

Bytes returned. The number of bytes of data that were returned.

Number of available names. The number of ASP copy description names that match the filter criteria.

Number of names returned. The number of ASP copy description names that match the filter criteria and that fit within the receiver variable.

YASH0200 Format



Field Descriptions

ASP session name. The name assigned to an ASP session.

Bytes available. The number of bytes of data available to be returned.

Bytes returned. The number of bytes of data that were returned.

Number of available names. The number of ASP session names that match the filter criteria.

Number of names returned. The number of ASP session names that match the filter criteria and that fit within the receiver variable.

YASH0300 Format



Field Descriptions

ASP copy description name. The name assigned to an ASP copy description.

ASP device description name. The name of an ASP device description.

Bytes available. The number of bytes of data available to be returned.

Bytes returned. The number of bytes of data that were returned.

Cluster resource group name. The name of the cluster resource group (CRG) that manages the ASP copy.

Cluster resource group site name. The name of the cluster resource group (CRG) site that has the ASP copy.

Cluster node name. The name of the cluster node in the CRG recovery domain.

End of consistency group LUN range. The LUN number of the last LUN in a range that consists of consecutive LUN numbers to be used for the consistency group.

End of LUN range. The LUN number of the last LUN in a range that consists of consecutive LUN numbers.

Host identifier. The identifier for the host connection in the TotalStorage system.

Internet address. The internet address that is used to communicate with a storage host.

Internet address type. An indicator of the format of data returned within the Internet address field.

Node Location Name. The name of the node that owns the ASP copy. The name can be that of a cluster node or, if access to the ASP is managed by a CRG or CRG site, it can be *DEFAULT. If the copy defines the target of a flashcopy that will never be varied on, the Node Location Name will be *NONE.

Number of ASP copy descriptions. The number of ASP copy descriptions that were returned.

Number of consistency group ranges. The number of LUN ranges that identify LUNs used for global mirror consistency groups.

Number of internet addresses. The number of internet addresses that can be used to communicate with a storage host.

Number of LUN ranges. The number of LUN ranges that identify the LUNs that form a copy of an ASP.

Number of recovery domain descriptions. The number of CRG recovery domain descriptions for the ASP copy description.

Number of storage hosts. The number of storage hosts for an ASP copy.

Number of TotalStorage devices. The number of TotalStorage devices that contain the logical units (LUNs) for the ASP.

Number of TotalStorage host definitions. The number of total storage host definitions.

Offset to ASP copy descriptions. The offset from the beginning of the receiver variable to the ASP copy descriptions.

Offset to consistency group ranges. The offset from the beginning of the receiver variable to the LUN ranges that identify the LUNs used for global mirror consistency groups.

Offset to internet addresses. The offset from the beginning of the receiver variable to the internet addresses that can be used to communicate with a storage host.

Offset to LUN ranges. The offset from the beginning of the receiver variable to the LUN ranges that identify the LUNs that form a copy of an ASP.

>Offset to recovery domain descriptions. The offset from the beginning of the receiver variable to the descriptions that identify the CRG recovery domain nodes.

Offset to storage hosts. The offset from the beginning of the receiver variable to the storage host information.

Offset to TotalStorage devices. The offset from the beginning of the receiver variable to the TotalStorage device information.

Offset to TotalStorage host definitions. The offset from the beginning of the receiver variable to the total storage host definition information.

Reserved. Reserved field. This field is set to binary zero.

Resource name. The name of an IOA is used to perform disk read and write operations.

Start of consistency group LUN range. The LUN number of the first LUN in a range that consists of consecutive LUN numbers to be used for the consistency group.

Start of LUN range. The LUN number of the first LUN in a range that consists of consecutive LUN numbers.

Start of changeStorage host number. Which storage host the recovery domain client entry belongs to with zero being the first host and one being the second storage host.End of change

TotalStorage device name. The name of the TotalStorage device that contiains the LUNs that form an ASP.

User name. The user name that is used when authenticating user access to the storage host.

Volume group identifier The identifier for a volume group definition in a TotalStorage system.


YASH0400 Format



Field Descriptions

ASP copy description name. The name assigned to an ASP copy description.

ASP copy role. The role of the ASP copy. Possible values are:

Bytes available. The number of bytes of data available to be returned.

Bytes returned. The number of bytes of data that were returned.

Start of changeCopy progress. The percent of synchronization complete between source and target.End of change

Start of change Data out of sync. The amount of data that is currently being tracked (in megabytes). End of change

Start of change Data in transit. The amount of data that has been queued up to send to the mirror copy but has not yet been received by the mirror copy node. This indicates how far "back level" the mirror copy node is. This value is in megabytes.End of change

Data state. The data state of the ASP copy.

Start of changeDevice description name. The name of the device description.End of change

FlashCopy type. The type of FlashCopy. Possible values are:

Length of an ASP copy entry. The length of each ASP copy entry for the ASP copy role.

Length of an ASP copy role. The length of each ASP copy role. This length includes that of the ASP copy entries for the ASP copy role.

Local node role. The node's copy role. Possible values are:

Node. The name of the node that has affinity with the ASP copy. A node name of *CRG indicates that the copy is in the recovery domain of a CRG and has affinity to all the nodes in the recovery domain.

Number of ASP copy entries. The number of ASP copy entries for any ASP copy role is equal to the number of ASP devices assigned to the session.

Number of ASP copy roles. The number of ASP copy roles in the ASP session. All session types have two roles except for Global Mirror which has four roles.

Number of sectors copied. The number of sectors that have been copied.

Number of sectors still to copy. The number of sectors that are yet to be copied.

Offset to ASP copy roles. The offset from the beginning of the receiver variable to the first ASP copy role.

Persistent. The persistence of the relationship between the ASP copies.

Reserved. The field is not used and is set to binary zeroes.

Session mode. The mode of the session.

Session name. The name assigned to the session.

Session type. The type of session. Possible values are:

State. The state of the copy. Possible values are:

Suspend timeout. The number of seconds to wait for a communications response before suspending the ASP sesson.

Synchronization priority. The priority to be used during geographic mirroring synchronization. Possible values are:

Track option. The geographic mirroring tracking option.

Tracking space. The percent of the total potentially usable tracking space to actually reserve for tracking.

Start of change Tracking space allocated. Indicates the percent of the maximum assignable tracking space that has been reserved for tracking changes. The maximum assignable tracking space is one percent of the total space within an independent ASP. The allocated tracking space is used to track information about the changed data, not the changed data itself. A large amount of data can be tracked without requiring a large amount of tracking space.End of change

Start of change Tracking space used. The percentage of the reserved tracking space that has been used for tracking changes. When 100% of the reserved tracking space has been used, changes to the data stop being tracked and a full synchronization will be required.End of change


Format of Filter Information



Field Descriptions

Data. If there is no filter data because the number of filters is zero, all ASP copy description names are returned for format YASH0100 and all ASP session names are returned for format YASH0200. All other retrieves require the specification of a filter.

The filter data for the different filter keys have meanings as follow:

Data size. The size of the filter data. The size must be exactly the size specified in the key table.

Entry size. The combined size of all fields in the filter entry (key, entry size, data size, and data). The size must be exactly the size specified in the key table.

Key. The field to use to filter the list information. The filter key and its corresponding filter data length and filter data is:

Session type. The type of session. Possible values are:



Error Messages




API introduced: V6R1

[ Back to top | Configuration APIs | APIs by category ]