zhmcActivateLpar


zhmcActivateLpar

zhmcActivateLpar (hmcname, lpar, profileName, force)

Issues an Activate Logical Partition to the HMC.

Parameters:

hmcname

The HMC session name.

lpar

The LPAR object as returned from zhmcGetLpars

profilename

The activation profile name to be used, or false if the default profile should be used

force

true if the operation should be performed when the LPAR is not in an appropriate state

Returns:

An RDL object containing the job URI or false if an error occurred.


status = false

lpar = findLpar("IOC2")

if lpar != false then

status = zhmcActivateLpar("HMC4", lpar, "IOC2", false)

if status == false then

trace("Error: ActivateLpar failed: " & hmcGetLastError(), RED)

else

trace("ActivateLpar sent for lpar IOC2 " returned " & status, RED)

endif

else

trace("Error: lpar IOC2 not found", RED)

endif


 

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