Retrieve Hardware Resource Information (QGYRHRI, QgyRtvHdwRscInfo) API


  Required Parameter Group:


  Service Program Name: QGYRHR

  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Hardware Resource Information (OPM, QGYRHRI; ILE, QgyRtvHdwRscInfo) API retrieves hardware resource information fields that, together with the output from the Retrieve Hardware Resource List (OPM, QGYRHRL; ILE, QgyRtvHdwRscList) API, provides a detailed description of the resource identified by the resource name parameter. This API is meant to be used after obtaining a list of resource names with the Retrieve Hardware Resource List API.


Authorities and Locks

API Public Authority
*USE

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 that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of 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. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The content and format of the information that is returned. The possible format names are as follows:


Resource name
INPUT; CHAR(10)

The name of the hardware resource for which information is to be returned.

Error code
I/O; CHAR(*)

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


RHRI0100 Format



RHRI0200 Format



RHRI0300 Format



RHRI0400 Format



RHRI0410 Format



RHRI0500 Format



RHRI0600 Format



Field Descriptions

Adapter address. The adapter address of the resource. A value of -1 means that this field does not apply to the resource.

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Card position. The physical location where the device or feature is plugged into the bus. This field will be set to blanks if the value does not apply to the resource.

Controller address. The controller address of the resource. A value of -1 means that this field does not apply to the resource.

Device address. The device address of the resource. A value of -1 means that this field does not apply to the resource.

Device position. The relative device position of the resource. This field will be set to blanks if the value does not apply to the resource.

Expanded serial number. The expanded manufacturing sequence number of designation for the resource.

Frame ID. The identifier of a frame resource. This field will be set to blanks if the value does not apply to the resource.

Interactive feature code. The interactive feature of the system. This feature defines the portion of the processor that can be used to perform interactive work.

I/O bus address. The I/O bus address of the resource. A value of -1 means that this field does not apply to the resource.

LAN speed. The LAN speed for communications ports. A value of all X'FF' means this field does not apply to the resource. Possible values are as follows:

Location code. The physical location of the hardware resource in the system. This field is available only if the system supports the location code format and if the value applies for the resource; otherwise will be set to blanks. The location code field is a sequence of 0 or more location labels that when followed in order, lead to the resource location. This is the place someone could go to view, remove, or replace the piece of hardware. Location labels are etched, silk screened, or marked in other ways on hardware. The following location labels might be shown in the location code field (n represents a numerical or alphabetical identifier):

Following are the descriptions of the location labels:

Part number. A manufacturing identifier that represents similar types of hardware. This field will be set to blanks if the value does not apply to the resource.

Port number. The port number of the resource. A value of -1 means that this field does not apply to the resource.

Processor feature code. The processor feature, which corresponds to the processor capacity of the system.

Serial number. The manufacturing sequence number of designation for the resource.

Shared session number. The shared session number of the resource. A value of -1 means that this field does not apply to the resource.

Supports link aggregation. Whether ports can be aggregated to compose an aggregate line. A value of X'01' means link aggregation is supported. A value of X'02' means link aggregation is not supported. A value of X'FF' means this field does not apply to the resource.

System board number. A numerical representation of a section of the bus into which the card is plugged. A value of -1 means that this field does not apply to the resource.

System bus number. A numerical representation of the path connection of the system processor to the card. A value of -1 means that this field does not apply to the resource.

System card number. A numerical representation of the location of the card on the bus. A value of -1 means that this field does not apply to the resource.

System processor feature code. The processor feature code level of the system. A value is returned for this field only if the Kind 3 value of the hardware resource indicates that the resource provides system information (X'0000000000080000'). The Kind 3 value is returned in the "Resource kind" field by the Retrieve Hardware Resource List API.


Error Messages



API introduced: V3R7

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