#
71689b8b |
| 27-Apr-2023 |
Potin Lai <potin.lai@quantatw.com> |
pldmtool: fix GetFruRecordTable request fail
1. Use PLDM_GET_FIRSTPART for TransferOperationFlag to fix request failed due to CC code 0x81 (INVALID_TRANSFER_OPERATION_FLAG). 2. Move fruFieldValue
pldmtool: fix GetFruRecordTable request fail
1. Use PLDM_GET_FIRSTPART for TransferOperationFlag to fix request failed due to CC code 0x81 (INVALID_TRANSFER_OPERATION_FLAG). 2. Move fruFieldValuestring() to else part to avoid IANA print issue.
Tested result: ``` [ [ { "FRU Record Set Identifier": 1, "FRU Record Type": "General(1)", "Number of FRU fields": 11, "Encoding Type for FRU fields": "ASCII(1)" },
......
{ "FRU Field Type": "Vendor IANA(15)", "FRU Field Length": 4, "FRU Field Value": "33049" } ] ] ```
Change-Id: I1a711ee05c49e35cb76c104ab9b11b5b1ac97118 Signed-off-by: Potin Lai <potin.lai@quantatw.com>
show more ...
|
#
dd04990d |
| 12-Aug-2020 |
Sridevi Ramesh <sridevra@in.ibm.com> |
Display pldmtool Fru & oem-ibm command output in JSON ./pldmtool fru GetFruRecordTableMetadata { "FRU DATAStructureTableIntegrityChecksum": 3870816131, "FRUDATAMajorVersi
Display pldmtool Fru & oem-ibm command output in JSON ./pldmtool fru GetFruRecordTableMetadata { "FRU DATAStructureTableIntegrityChecksum": 3870816131, "FRUDATAMajorVersion": 1, "FRUDATAMinorVersion": 0, "FRUTableLength": 2005, "FRUTableMaximumSize": 4294967295, "Total number of Record Set Identifiers in table": 13, "Total number of records in table": 33 } ./pldmtool oem-ibm GetAlertStatus -i 0x00 { "pri cec node": "0x00008030", "rack entry": "0xff000030" } ./pldmtool oem-ibm GetFileTable [ { "FileHandle": "0", "FileName": "PHYP-NVRAM", "FileNameLength": 10, "FileSize": 17870848, "FileTraits": 1 }, { "FileHandle": "1", "FileName": "PHYP-NVRAM-CKSUM", "FileNameLength": 16, "FileSize": 16, "FileTraits": 4 } ] ./pldmtool fru GetFruRecordTable [ [ { "FRU Record Set Identifier": 1, "FRU Record Type": "General(1)", "Number of FRU fields": 2, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Model(2)", "FRU Field Length": 8, "FRU Field Value": "9105-22A" }, { "FRU Field Type": "Serial Number(4)", "FRU Field Length": 7, "FRU Field Value": "SIMP10R" } ], ... ... ... ... ... [ { "FRU Record Set Identifier": 13, "FRU Record Type": "OEM(254)", "Number of FRU fields": 1, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Location Code(254)", "FRU Field Length": 24, "FRU Field Value": "U78DA.ND1.1234567-P0-C23" } ], [ { "FRU Record Set Identifier": 13, "FRU Record Type": "General(1)", "Number of FRU fields": 3, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Part Number(3)", "FRU Field Length": 7, "FRU Field Value": "PN12345" }, { "FRU Field Type": "Serial Number(4)", "FRU Field Length": 12, "FRU Field Value": "YL2E32010000" }, { "FRU Field Type": "Name(8)", "FRU Field Length": 16, "FRU Field Value": "CPU POWER CARD " } ] ] ./pldmtool fru GetFRURecordByOption -i 3 -r 1 -f 3 [ [ { "FRU Record Set Identifier": 3, "FRU Record Type": "General(1)", "Number of FRU fields": 1, "Encoding Type for FRU fields": "ASCII(1)" }, { "FRU Field Type": "Part Number(3)", "FRU Field Length": 7, "FRU Field Value": "PN12345" } ] ] Change-Id: I1c5db56e5f336a0a1340ccd2ff8da5483a562cf8 Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
show more ...
|