zhmcActivateLpar function


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-function

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 RDL2 object containing the job URI or false if an error occurred.

Example

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*