#
a340eed8 |
| 14-Feb-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Pldmtool change to fetch pdrs based on TerminusID
This commit adds a new option "-n" to getPDR in the pldmtool using which we can retrieve the PDRs based on the terminus ID.
Tested: ./pldmtool pla
Pldmtool change to fetch pdrs based on TerminusID
This commit adds a new option "-n" to getPDR in the pldmtool using which we can retrieve the PDRs based on the terminus ID.
Tested: ./pldmtool platform getpdr -h get platform descriptor records Usage: ./pldmtool platform GetPDR [OPTIONS]
Options: -h,--help Print this help message and exit -m,--mctp_eid UINT MCTP endpoint ID -v,--verbose [Option Group: Required Option] Retrieve individual PDR, all PDRs, PDRs of a requested type or retrieve all PDRs of the requested terminusID [Exactly 1 of the following options is required] Options: -d,--data UINT retrieve individual PDRs from a PDR Repository eg: The recordHandle value for the PDR to be retrieved and 0 means get first PDR in the repository. -t,--type TEXT retrieve all PDRs of the requested type supported types: [terminusLocator, stateSensor, numericEffecter, stateEffecter, EntityAssociation, fruRecord, ... ] -i,--terminusID UINT retrieve all PDRs of the requested terminusID supported IDs: [1, 2, 208...] -a,--all retrieve all PDRs from a PDR repository
Example 1: ./pldmtool platform getpdr -i 0 []
Example 2: ./pldmtool platform getpdr -i 2 Copied the output here: https://gist.github.com/Pavithrab7/4218104bc7e58951ff91fe5b49e562b0
Change-Id: I8b78818abbbbb3678e180d2bd1f38017454fd0d3 Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
show more ...
|
#
ca4a815b |
| 11-Aug-2020 |
Sridevi Ramesh <sridevra@in.ibm.com> |
Display pldmtool Base & Bios command output in JSON.
./pldmtool base GetPLDMTypes [ { "PLDM Type": "base", "PLDM Type Code": 0 }, { "PLDM Type": "platform",
Display pldmtool Base & Bios command output in JSON.
./pldmtool base GetPLDMTypes [ { "PLDM Type": "base", "PLDM Type Code": 0 }, { "PLDM Type": "platform", "PLDM Type Code": 2 }, { "PLDM Type": "bios", "PLDM Type Code": 3 }, { "PLDM Type": "fru", "PLDM Type Code": 4 }, { "PLDM Type": "oem-ibm", "PLDM Type Code": 63 } ]
./pldmtool base GetPLDMVersion -t 0 { "Response": "1.0.0" }
./pldmtool base GetTID { "Response": 1 }
./pldmtool base GetPLDMCommands -t 0 [ { "PLDM Command Code": 2, "PLDM Command": "GetTID" }, { "PLDM Command Code": 3, "PLDM Command": "GetPLDMVersion" }, { "PLDM Command Code": 4, "PLDM Command": "GetPLDMTypes" }, { "PLDM Command Code": 5, "PLDM Command": "GetPLDMCommands" } ]
./pldmtool bios GetDateTime { "Response": "2020-10-15 16:33:55" }
./pldmtool bios GetBIOSTable -t 0 { "0": "Allowed", "1": "Disabled", "2": "Enabled", "3": "IPv4DHCP", "4": "IPv4Static", "5": "Not Allowed", "6": "OPAL", "7": "Perm", "8": "PowerVM", "9": "Temp", "10": "hb-hyp-switch", "11": "pvm-fw-boot-side", "12": "pvm-inband-code-update", "13": "pvm-os-boot-side", "14": "pvm-pcie-error-inject", "15": "pvm-stop-at-standby", "16": "pvm-surveillance", "17": "pvm-system-name", "18": "vmi-hostname", "19": "vmi-if-count", "20": "vmi-if0-ipv4-ipaddr", "21": "vmi-if0-ipv4-method", "22": "vmi-if0-ipv4-prefix-length", "23": "vmi-if1-ipv4-ipaddr", "24": "vmi-if1-ipv4-method", "25": "vmi-if1-ipv4-prefix-length", "26": "vmi-ipv4-gateway" }
./pldmtool bios GetBIOSTable -t 1 [ { "AttributeHandle": 0, "AttributeNameHandle": "17(pvm-system-name)", "AttributeType": "BIOSString", "StringType": "0x01", "MinimumStringLength": 0, "MaximumStringLength": 100, "DefaultStringLength": 0, "DefaultString": "" }, ... ... { "AttributeHandle": 16, "AttributeNameHandle": "15(pvm-stop-at-standby)", "AttributeType": "BIOSEnumeration", "NumberOfPossibleValues": 2, "PossibleValueStringHandle[0]": "1(Disabled)", "PossibleValueStringHandle[1]": "2(Enabled)", "NumberOfDefaultValues": 1, "DefaultValueStringHandleIndex[0]": 1, "StringHandle": "2(Enabled)" } ]
./pldmtool bios GetBIOSTable -t 2 [ { "AttributeHandle": 0, "AttributeType": "BIOSString", "CurrentStringLength": 0, "CurrentString": "" }, ... ... { "AttributeHandle": 16, "AttributeType": "BIOSEnumeration", "NumberOfCurrentValues": 1, "CurrentValueStringHandleIndex[0]": "Enabled" } ]
./pldmtool bios GetBIOSAttributeCurrentValueByHandle -a pvm-pcie-error-inject { "CurrentValue": "Enabled" }
./pldmtool bios SetBIOSAttributeCurrentValue -a vmi-if0-ipv4-method -d IPv4Static { "Response": "SUCCESS" }
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com> Change-Id: If58e2ce380efcad228e4440316cd2653eada9e73
show more ...
|