zhmcGetLpars
Parameters:
hmcname | The HMC session name. |
cpc | The CPC where the LPARS reside. |
Returns:
An array of LPAR objects; false if the operation fails.
// 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
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*