Home
last modified time | relevance | path

Searched hist:dd04990dd7f661f55162b3cea7466728ebcd54a3 (Results 1 – 2 of 2) sorted by relevance

/openbmc/pldm/pldmtool/oem/ibm/
H A Dpldm_oem_ibm.cppdiff dd04990dd7f661f55162b3cea7466728ebcd54a3 Wed Aug 12 01:43:51 CDT 2020 Sridevi Ramesh <sridevra@in.ibm.com> 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>
/openbmc/pldm/pldmtool/
H A Dpldm_fru_cmd.cppdiff dd04990dd7f661f55162b3cea7466728ebcd54a3 Wed Aug 12 01:43:51 CDT 2020 Sridevi Ramesh <sridevra@in.ibm.com> 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>