Information

This site will undergo a brief period of maintenance on Friday, 18 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

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 acceptable status values.

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


 

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

BMC AMI Ops Console Management, BMC AMI Ops Console Automation, and BMC AMI Ops SecureHMC 4.1