Lines Matching full:fru

2 Documentation  Test IPMI FRU data.
28 Test FRU Device Name
29 [Documentation] Search FRU for device name
32 ${output}= Run IPMI Standard Command fru
33 Should Contain ${output} ${FRU_NAME} msg=Fail: Given FRU device ${FRU_NAME} not found
36 Verify Fru Device Configuration
37 [Documentation] Read the FRU device configuration of each device
41 # IPMI FRU print.
42 ${ipmi_output}= Run IPMI Standard Command fru
44 # Create dictionary with FRU device serial number as key and details as value from IPMI.
45 ${ipmi_fru}= Get IPMI FRU Devices Data ${ipmi_output}
47 # Returns all the available FRU dbus uri.
50 # Returns all the FRU device uri with special characters removed.
53 …# Creates dictionary with serial number as key, and corresponding FRU device uri as value from dbu…
54 Get DBUS Dictionary For FRU Devices ${dbus_fru_uri_list} ${ipmi_fru}
56 # Compare dbus dictionary each field, with IPMI FRU device fields for each FRU device.
57 Compare IPMI FRU with DBUS ${ipmi_fru}
60 Verify Get FRU Inventory Area Info
61 [Documentation] Verify IPMI get FRU inventory area info command.
64 # IPMI read FRU data command.
65 ${resp}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}
68 # IPMI get FRU inventory area info command.
69 ${bytes_inventory}= Get FRU Inventory Area Info
71 # Compare read FRU data Count returned -- count is ‘1’ based, with inventory area count.
75 Verify Get FRU Inventory Area Info For Invalid Device Data
76 [Documentation] Verify IPMI get FRU inventory area info command for Invalid Device Data.
79 # Verify response for invalid FRU device id.
80 Run Keyword and Expect Error *${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][1]}*
81 ... Run IPMI Command ${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][0]} ${fru_device_id_invalid}
84 Verify Get FRU Inventory Area Info For Invalid Data Request
85 [Documentation] Verify IPMI get FRU inventory area info command for Invalid Data Request.
89 Run Keyword and Expect Error *${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][2]}*
90 ... Run IPMI Command ${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][0]} ${fru_device_id} 0x00
93 Verify IPMI Write FRU Data
94 [Documentation] Verify write data in FRU and compare data from read FRU data command via IPMI.
96 [Setup] Get Default FRU Data
97 [Teardown] Restore Default FRU Data
99 # Generate random data to write in FRU device.
100 ${write_data_prefixed} ${write_data}= Generate Random Data For FRU
106 # Write the data to FRU device.
107 …Write FRU Data Via IPMI ${fru_device_id} ${read_write_offset} ${write_data_prefixed} ${write_d…
109 # Read the FRU data.
110 ${resp}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}
117 Verify IPMI Write FRU Data With BMC Reboot
118 …[Documentation] Verify IPMI write data in FRU and compare data from read FRU data command after B…
120 [Setup] Get Default FRU Data
121 [Teardown] Restore Default FRU Data
123 # Generate random data to write in FRU device.
124 ${write_data_prefixed} ${write_data}= Generate Random Data For FRU
130 # Write the data to FRU device.
131 …Write FRU Data Via IPMI ${fru_device_id} ${read_write_offset} ${write_data_prefixed} ${write_d…
133 # Read the FRU data.
134 ${resp}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}
142 ${resp}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}
149 Get IPMI FRU Devices Data
150 [Documentation] Get response from IPMI FRU command and format data
155 # ipmi_output All the FRU devices listed in IPMI FRU command.
157 # Get the FRU list and return as a dictionary with serial number as key.
162 # FRU Device Description : Builtin FRU Device (ID 0),
178 # Gets response from FRU data and split each device.
181 &{fru}= Create Dictionary
212 Set To Dictionary ${fru} ${serial_number} ${tmp}
215 RETURN ${fru}
218 Get DBUS Dictionary For FRU Devices
219 [Documentation] Provides the dictionary of DBUS FRU devices from DBUS FRU.
223 # dbus_fru FRU dbus uri list.
224 # ipmi_fru IPMI FRU details.
227 # Appends dictionary with serial number as key and FRU dbus uri as value,
228 # if the IPMI FRU key matches the serial number of each device dbus response.
231 FOR ${fru} IN @{dbus_fru}
232 ${cmd}= Catenate ${BUSCTL_FRU} ${fru}
248 # ipmi_fru IPMI FRU details.
249 …# dbus_fru_board_serial_status FRU devices may have either BOARD_SERIAL or PRODUCT_SERI…
252 # fru_command FRU command to map into dictionary as value.
254 # Validates the IPMI FRU dictionary key with dbus uri response serial number.
255 # If matches then, sets the serial number as key and FRU uri as value.
275 Compare IPMI FRU with DBUS
276 [Documentation] Compare the IPMI FRU dictionary values with DBUS dictionary values,
277 ... if the serial number is present in both FRU and dbus dictionaries.
281 # ipmi_fru IPMI FRU device details.
283 # With each IPMI FRU key, get the corresponding valid from dbus dictionary,
285 # validate each dbus field value with IPMI FRU field value.
288 # IPMI FRU field :
290 # DBUS FRU field :
305 # If the required IPMI field has date field, the IPMI FRU value is converted to
306 # format = %Y-%m-%d - %H:%M:%S and validated against dbus FRU data.
319 Get FRU Inventory Area Info
320 [Documentation] IPMI Get FRU Inventory Area Info and returns FRU Inventory area size in bytes.
322 ${resp}= Run IPMI Command ${IPMI_RAW_CMD['FRU']['Inventory_Area_Info'][0]} ${fru_device_id}
328 Read FRU Data Via IPMI
329 [Documentation] Read FRU data using IPMI raw command.
333 # fru_id FRU id.
334 # offset Offset byte for read FRU command.
336 # IPMI Read FRU Data Command.
339 ... ${IPMI_RAW_CMD['FRU']['Read'][0]} ${fru_id} ${offset} 0xff
344 Write FRU Data Via IPMI
345 [Documentation] Write FRU data using IPMI raw command.
349 # fru_id FRU id.
350 # offset Offset byte for read FRU command.
351 # data Data to write for write FRU command.
352 # length Count of bytes that gets written in write FRU command.
354 # IPMI Write FRU Data Command.
356 ... ${IPMI_RAW_CMD['FRU']['Write'][0]} ${fru_id} ${offset} ${data}
361 Generate Random Data For FRU
362 [Documentation] Generate random data for write in FRU.
366 # Gets the length of initial FRU data read with IPMI read FRU device command.
377 Get Default FRU Data
378 [Documentation] Get default data via read FRU data IPMI command.
380 # Read the default FRU device data.
382 ${initial_fru_data}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}
391 Restore Default FRU Data
392 [Documentation] Restore default FRU data.
398 # Write the initial FRU data to restore.
399 …Write FRU Data Via IPMI ${fru_device_id} ${read_write_offset} ${fru_byte} ${initial_frulength_…
400 # Verify whether initial FRU data is restored.
401 ${fru_data}= Read FRU Data Via IPMI ${fru_device_id} ${read_write_offset}