Lines Matching +full:power +full:- +full:sensor
2 Documentation Validate IPMI sensor IDs using Redfish.
24 [Documentation] Verify temperatures from IPMI sensor reading command using Redfish.
34 [Documentation] Verify temperatures from DCMI sensor reading command using Redfish.
56 ${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10
62 ... Inlet air temperature case-insensitive
77 ... Evaluate abs(${ambient_temp_redfish[${index}]} - ${ipmi_temp_list[${index}]})
84 Test Power Reading Via IPMI With Host Off
85 [Documentation] Verify power reading via IPMI with host in off state
88 Redfish Power Off stack_mode=skip
90 ${ipmi_reading}= Get IPMI Power Reading
93 ... msg=Power reading not zero when power is off.
96 Test Power Reading Via IPMI With Host Booted
97 [Documentation] Test power reading via IPMI with host in booted state and
101 IPMI Power On stack_mode=skip
103 Wait Until Keyword Succeeds 2 min 30 sec Verify Power Reading Using IPMI And Redfish
119 ${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10
124 ... Baseboard temperature case-insensitive=True
139 …${baseboard_temp_diff}= Evaluate abs(${baseboard_temp_redfish[${index}]} - ${ipmi_temp_list[${in…
145 Test Power Reading Via IPMI Raw Command
146 [Documentation] Test power reading via IPMI raw command and verify
150 IPMI Power On stack_mode=skip
152 Wait Until Keyword Succeeds 2 min 30 sec Verify Power Reading Via Raw Command
156 [Documentation] Verify the IPMI sensor for CPU present using Redfish.
165 [Documentation] Verify the IPMI sensor for CPU not present using Redfish.
174 [Documentation] Verify the IPMI sensor for GPU present using Redfish.
183 [Documentation] Verify the IPMI sensor for GPU not present using Redfish.
191 Test Sensor Threshold Via IPMI
192 [Documentation] Test sensor threshold via IPMI and verify using Redfish.
194 [Template] Verify Power Supply Sensor Threshold
197 Upper Non-Critical UpperThresholdNonCritical
199 Lower Non-Critical LowerThresholdNonCritical
206 [Documentation] Get IPMI or DCMI sensor reading and verify in Redfish.
210 # command_type Type of command used to get sensor data (eg. IPMI, DCMI).
211 # sensor_id Sensor id used to get reading in IPMI or DCMI.
212 # member_id Member id of sensor data in Redfish.
214 … ${ipmi_value}= Run Keyword If '${command_type}' == 'IPMI' Get IPMI Sensor Reading ${sensor_id}
215 ... ELSE Get DCMI Sensor Reading ${sensor_id}
221 ${value_diff}= Evaluate abs(${redfish_value["${index}"]} - ${ipmi_value["${index}"]})
227 Get IPMI Sensor Reading
228 [Documentation] Get IPMI sensor readings as a dictionary.
232 # sensor_id Sensor id used to get reading in IPMI.
238 ${data}= Run IPMI Standard Command sensor reading ${ids}
251 Get DCMI Sensor Reading
252 [Documentation] Get DCMI sensor readings as a dictionary.
256 # sensor_id Sensor id used to get reading in DCMI.
268 ${sensor}= Set Variable ${line.split(' | ')}
269 ${sensor_key}= Set Variable ${sensor[0].split(':')[1].strip()}
270 ${sensor_value}= Set Variable ${sensor[1].split()[0].strip()}
333 Verify Power Reading Using IPMI And Redfish
334 [Documentation] Verify power reading using IPMI and Redfish.
336 # Example of power reading command output via IPMI.
337 # Instantaneous power reading: 235 Watts
340 # Average power reading over sample period: 235 Watts
343 # Power reading state is: deactivated
345 ${ipmi_reading}= Get IPMI Power Reading
350 ... Evaluate abs(${redfish_power_reading} - ${ipmi_reading['instantaneous_power_reading']})
352 ... msg=Power reading above allowed threshold ${allowed_power_diff}.
355 Verify Power Reading Via Raw Command
356 [Documentation] Get dcmi power reading via IPMI raw command.
365 # Example of power reading via Redfish
366 # "@odata.id": "/redfish/v1/Chassis/chassis/Power#/PowerControl/0",
367 # "@odata.type": "#Power.v1_0_0.PowerControl",
369 # "Name": "Chassis Power Control",
372 ${power}= Redfish.Get Properties /redfish/v1/Chassis/${CHASSIS_ID}/Power
373 ${redfish_reading}= Set Variable ${power['PowerControl'][0]['PowerConsumedWatts']}
376 ... Evaluate abs(${redfish_reading} - ${power_reading_ipmi})
379 ... msg=Power reading above allowed threshold ${allowed_power_diff}.
383 [Documentation] Set present bit of sensor via IPMI and verify using Redfish.
387 # component The Redfish component of IPMI sensor.
392 ${sensor_id}= Get Sensor Id For Sensor ${sensor_name}
401 # Redfish cpu components have "-" instead of "_" (e.g.: dcm0-cpu0).
402 ${cpu_name}= Replace String ${sensor_name} _ -
419 Verify Power Supply Sensor Threshold
420 [Documentation] Get power supply sensor threshold value via IPMI and verify using Redfish.
424 # ipmi_threshold_id The sensor threshold component of IPMI sensor.
425 # redfish_threshold_id The sensor threshold component of Redfish sensor.
428 # Example of ipmi sensor output
429 # Locating sensor record...
430 # Sensor ID : ps0_input_voltag (0xf7)
432 # Sensor Type (Threshold) : Voltage
433 # Sensor Reading : 208 (+/- 0) Volts
435 # Lower Non-Recoverable : na
437 # Lower Non-Critical : 200.000
438 # Upper Non-Critical : 290.000
440 # Upper Non-Recoverable : na
445 ${ipmi_sensor_output}= Run External IPMI Standard Command sensor get ps0_input_voltag
452 # Example of redfish sensor output
453 # "@odata.id": "/redfish/v1/Chassis/chassis/Power#/Voltages/0",
454 # "@odata.type": "#Power.v1_0_0.Voltage",
469 @{redfish_readings}= Redfish.Get Attribute /redfish/v1/Chassis/${CHASSIS_ID}/Power Voltages
482 # sensor_component sensor component name.(e.g.:cpu)
486 ${sensors}= Get Lines Containing String ${resp} ${sensor_component} case-insensitive
515 Get Sensor Id For Sensor
516 [Documentation] Returns the sensor ID value for the given sensor.
520 # sensor_name Name of sensor whose ID is required(e.g.: dcm0_cpu0, dcm0_cpu1 etc).
522 ${get_resp}= Run IPMI Standard Command sensor get ${sensor_name}
524 # Example of sensor get command.
526 # Locating sensor record...
527 # Sensor ID : dcm0_cpu0 (0x41)
529 # Sensor Type (Discrete): Processor
533 ${line}= Get Lines Containing String ${get_resp} Sensor ID
534 ${sensor_id}= Set Variable ${line[-5:-1]}