zhmcUpdateCpcProperties function


zhmcUpdateCpcProperties (hmcname, newCpcProps)

Updates the CPC object properties.

Parameters:

hmcname

The HMC session name.

newCpcProps

An object containing the new properties.

Returns:

true if the operation succeeded, false otherwise

Example

hmc = "HMC1"
cpcs = zhmcGetCpcs(hmc)
 
do i = 0 to cpcs.size() - 1
    if cpcs[i].name == "BBL1" then
        props = zhmcGetCpcProperties(hmc, cpcs[i])
        props.description = "Branchburg Processor 1"
        zhmcUpdateCpcProperties(hmc, props)
    endif
end

 

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