Perform Hardware Configuration Operation (QYHCHCOP) API


  Required Parameter Group:


Start of change
  Optional Parameter Group:

End of change

  Default Public Authority: *EXCLUDE

  Threadsafe: Yes

The Perform Hardware Configuration Operation (QYHCHCOP) API allows for viewing, changing, and checking the status of certain parts of the system's hardware configuration. This API allows the following activities:


Start of change Note: The logical partition configuration activities of this API cannot be performed on systems that use POWER5 processors or newer systems. End of change

Authorities and Locks

This API is shipped with *EXCLUDE public authority.

To use this API you must:

The port name "as-sts" must be unblocked and enabled for this API to process successfully. If the port name is not unblocked, this API will return a CPFBA03 message.

The service authority required to perform an operation depends on the operation you are trying to perform. To see what authority a specific operation requires, consult the logical partition configuration markup language document or the disk management configuration markup language document. The following table summarizes the authority required for various operations.



Required Parameter Group

Hardware Configuration Request
INPUT; CHAR(*)

The information for the request. The type of information provided is described in the request type parameter.

Hardware Configuration Request Length
INPUT; BINARY(4) Unsigned

The length of the hardware configuration request buffer.

Request type
INPUT; BINARY(4) Unsigned

The type of request being made. The following constants are defined for the request type.

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that is to receive the response from the hardware configuration request. The format of this variable is determined by the type of hardware configuration request submitted.

Length of receiver variable
INPUT; BINARY(4) Unsigned

The length of the receiver variable, in bytes.

Bytes of return data available
OUTPUT; BINARY(4) Unsigned

The number of bytes that is available for return. If this value is larger than the receiver variable, some of the return data was lost.

Error code
I/O; CHAR(*)

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


Start of changeOptional Parameter Group

Requesting service tools user ID
INPUT; CHAR(*)

The service tools user ID requesting the hardware configuration operation. This value is converted to uppercase.

Length of requesting service tools user ID password
INPUT; BINARY(4) Unsigned

The length, in bytes, of the password contained in the requesting service tools user ID password parameter. The requesting service tools user ID password parameter should be padded with trailing blank characters, if necessary, to the size specified by this parameter. This parameter accepts values from 1 to 512. However, values greater than 128 should only be used if multi-byte characters are specified for the service tools user ID password. The number of characters, as interpreted by the CCSID of the service tools user ID password parameter, cannot exceed 128.

CCSID of requesting service tools user ID password
INPUT; BINARY(4)

The valid values are:

Error Messages



API introduced: V5R1

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