zhmcGetCpcs function


zhmcGetCpcs

zhmcGetCpcs (hmcname)

Returns an array of CPCs managed by the HMC. Each element of the array contains the properties as summarized in the following table:

name

The CPC name.

description

The CPC description.

status

The current status.

acceptable_status

An array of strings with the acceptable status values.

Parameters:

hmcname

The HMC session name.

Returns:

An array of CPC objects.

Example

hmc = "HMC"
cpcs = zhmcGetCpcs(hmc)
do i = 0 to cpcs.size() - 1
    trace("CPC: " & cpcs[i].name, GREEN)
    trace(" name : " & cpcs[i].name, GREEN)
    trace(" status: " & cpcs[i].status, GREEN)
end

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*