zhmcGetCpcEnergyManagementData function


zhmcGetCpcEnergyManagementData

zhmcGetCpcEnergyManagementData (hmcname, cpc)

Returns an array of energy management data. Each element in the array contains properties as summarized in the following table:

cpc_power_rating

The maximum power draw in watts for the CPC components.

cpc_power_consumption

The current power consumption in watts for the CPC and BladeCenters.

cpc_power_saving

The current power saving setting.

cpc_power_saving_state

The current power saving setting set by the user.

cpc_power_save_allowed

Indicates whether or not a power save operation is currently allowed.

cpc_power_capping_state

Specifies the current power capping setting.

cpc_power_cap_minimum

Specifies the CPC power cap minimum value in watts.

cpc_power_cap_manimum

Specifies the CPC power cap maximum value in watts.

cpc_power_cap_current

Specifies the CPC power cap current value in watts.

cpc_power_cap_allowed

Indicates whether or not a power capping operation is allowed.

zcpc_power_rating

The maximum power draw in watts for the zCPC.

zcpc_power_consumption

The current power draw in watts for the zCPC.

zcpc_power_saving

Specifies the current power saving setting for the zCPC.

zcpc_power_saving_state

Specifies the current power saving setting for the zCPC set by the user.

zcpc_power_saving_allowed

Indicates whether or not a power save operation is currently allowed.

zcpc_power_capping_state

Specifies the current power capping setting.

zcpc_power_cap_minimum

Specifies the zCPC power cap minimum value in watts.

zcpc_power_cap_manimum

Specifies the zCPC power cap maximum value in watts.

zcpc_power_cap_current

Specifies the zCPC power cap current value in watts.

zcpc_power_cap_allowed

Indicates whether or not a power capping operation is allowed for the zCPC.

zcpc_ambient_temperature

Specifies the air intake temperature in degrees Celsius.

zcpc_exhaust_temperature

Specifies the exhaust temperature in degrees Celsius.

zcpc_humidity

Specifies the relative humidity of the intake air temperature.

zcpc_dew_point

Specifies dew point in degrees Celsius.

zcpc_head_load

Specifies heat in BTU/hour removed from the system.

zcpc_head_load_forced_air

Specifies heat in BTU/hour removed from the system by forced air.

zcpc_head_load_water

Specifies heat in BTU/hour removed from the system by water.

zcpc_maximum_potential_power

The maximum potential power consumption in watts.

zcpc_maximum_head_load

The maximum potential head load in BTU/hour.

Parameters:

hmcname

The HMC session name.

cpc

An RDL2 object containing the CPC information.

Returns:

An array of energy management data objects.

Example

hmc = 'HMC'
cpcs = zhmcGetCpcs(hmc)
do i = 0 to cpcs.size() - 1
trace('CPC: ' & cpcs[i].name, GREEN)
energyData = zhmcGetCpcEnergyManagementData(hmc,cpcs[i])
do j = 0 to energyData.size() - 1
in_temp =
energyData[j].properties.zcpc_ambient_temperature
out_temp =
energyData[j].properties.zcpc_exhaust_temperature
humidity = energyData[j].properties.zcpc_humidity
trace('It's ' & in_temp & ' degrees data center', MAGENTA)
trace(' exhaust temp = ' & out_temp & ' degrees C', MAGENTA)
trace(' humidity = ' & humidity & '%', MAGENTA)
if in_temp > 40 then
trace('It's a HOT day in the data center', RED)
else
if in_temp > 30 then
trace('It's a warm day in the data center', YELLOW)
endif
endif
if humidity < 20 then
trace('But it's a dry heat', GREEN)
endif
end
end

 

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