zhmcGetLpars function


zhmcGetLpars

zhmcGetLpars (hmcname, cpc)

Obtains an array of LPAR objects for the CPC. Each element of the array contains the properties as summarized in the following table:

name

The LPAR name.

description

The LPAR description.

status

The current status.

acceptable_status

An array of strings with the acceptable status values.

Parameters:

hmcname

The HMC session name.

cpc

The CPC where the LPARS reside.

Returns:

An array of LPAR objects or false if the operation fails.

Example

// cpc is obtained from zhmcGetCpcs(...)
lpars = zhmcGetLpars(hmc, cpc)
if lpars != false then
trace('LPARS for CPC ' + cpc.name, GREEN)
do i = 0 to lpars.size() - 1
trace(' ' & lpar.name, GREEN)
end
else
trace('Error obtaining LPARS: ' & hmcGetLastError(), RED)
endif

 

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