1 | Hardware configuration request | Input | Char(*) |
2 | Hardware configuration request length | Input | Binary(4) Unsigned |
3 | Request type | Input | Binary(4) Unsigned |
4 | Receiver variable | Output | Char(*) |
5 | Length of receiver variable | Input | Binary(4) Unsigned |
6 | Bytes of return data available | Output | Binary(4) Unsigned |
7 | Error code | I/O | Char(*) |
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:
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 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.
Operation Type | Authority Required |
---|---|
View LPAR configuration | LPAR operator |
Check LPAR operation status | LPAR operator |
Perform LPAR operator operation | LPAR operator |
Perform LPAR administrator operation | LPAR administrator |
View disk configuration | None |
Check disk operation status | None |
Perform disk operator operation | Disk operator |
Perform disk administration operation | Disk administrator |
The information for the request. The type of information provided is described in the request type parameter.
The length of the hardware configuration request buffer.
The type of request being made. The following constants are defined for the request type.
LPARRequest = 1 | Change, view, or check the status of the logical partition configuration using the Logical Partition Markup Language. For the format of the markup language, see LPARConfigurationScript Specification, Version 10. |
DiskRequest = 2 | Change, view, or check the status of the disk and ASP configuration using the Disk Management Markup Language. For the format of the markup language, see DMConfigurationScript Specification, Version 30. |
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.
The length of the receiver variable, in bytes.
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.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
Message ID | Error Message Text |
---|---|
CPF2203 E | User profile &1 not correct. |
CPF2204 E | User profile &1 not found. |
CPF22E2 E | Password not correct for user profile &1. |
CPF22E3 E | User profile &1 is disabled. |
CPF22E4 E | Password for user profile &1 has expired. |
CPF22E5 E | No password associated with user profile &1. |
CPF24B4 E | Severe error while addressing parameter list. |
CPF3C24 E | Length of the receiver variable is not valid. |
CPF3C36 E | Number of parameters, &1 entered for this API was not valid. |
CPF3C4B E | Value not valid for field &1. |
CPF3CF1 E | Error code parameter not valid. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
CPFB0CE E | &1 special authority is required. |
CPFBA01 E | Incorrect authorization to perform operation. |
CPFBA02 E | Request typeout of range. |
CPFBA03 E | Error connecting to service. |
CPFBA04 E | Error sending request to service. |
CPFBA05 E | Error retrieving data from service. |
Top | Configuration APIs | APIs by category |