/openbmc/pldm/configurations/pdr/ |
H A D | 4.json | diff 06f34416279302e0ee895e16f55d2419b634460e Mon Mar 01 08:40:02 CST 2021 Varsha Kaverappa <vkaverap@in.ibm.com> PDR/Sensor/Effecter for BMC owned LEDs
PDR: root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 9 { "nextRecordHandle": 10, "responseCount": 29, "recordHandle": 9, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "17", "possibleStatesSize": 1, "possibleStates": " 1 1 2" } root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 10 { "nextRecordHandle": 11, "responseCount": 29, "recordHandle": 10, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 3, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "10", "possibleStatesSize": 1, "possibleStates": " 1 1 2" }
root@w80:~# pldmtool platform GetPDR -d 14 { "nextRecordHandle": 15, "responseCount": 23, "recordHandle": 14, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 1, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 } root@w80:~# pldmtool platform GetPDR -d 15 { "nextRecordHandle": 0, "responseCount": 23, "recordHandle": 15, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 }
Write Effecter test: root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@w56:~# pldmtool platform SetStateEffecterStates -i 2 -c 1 -d 1 1 --verbose Request Message: 08 01 80 02 39 02 00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Success in creating the socket : RC = 4 Success in connecting to socket : RC = 0 Success in sending message type as pldm to mctp : RC = 0 Write to socket successful : RC = 24 Total length:6 Shutdown Socket successful : RC = 0 Response Message: 08 01 00 02 39 00 { "Response": "SUCCESS" } root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true
Sensor Read root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 02 root@rain104bmc:~# busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 01
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com> Change-Id: Idbe765eeeaf229838f721918da01a15d5391cab2
|
H A D | 11.json | diff 06f34416279302e0ee895e16f55d2419b634460e Mon Mar 01 08:40:02 CST 2021 Varsha Kaverappa <vkaverap@in.ibm.com> PDR/Sensor/Effecter for BMC owned LEDs
PDR: root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 9 { "nextRecordHandle": 10, "responseCount": 29, "recordHandle": 9, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "17", "possibleStatesSize": 1, "possibleStates": " 1 1 2" } root@witherspoon-tacoma-YA30UF043011:/usr/bin# ./pldmtool platform GetPDR -d 10 { "nextRecordHandle": 11, "responseCount": 29, "recordHandle": 10, "PDRHeaderVersion": 1, "PDRType": "State Effecter PDR", "recordChangeNumber": 0, "dataLength": 19, "PLDMTerminusHandle": 1, "effecterID": 3, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "effecterSemanticID": 0, "effecterInit": "noInit", "effecterDescriptionPDR": false, "compositeEffecterCount": 1, "stateSetID": "10", "possibleStatesSize": 1, "possibleStates": " 1 1 2" }
root@w80:~# pldmtool platform GetPDR -d 14 { "nextRecordHandle": 15, "responseCount": 23, "recordHandle": 14, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 1, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 } root@w80:~# pldmtool platform GetPDR -d 15 { "nextRecordHandle": 0, "responseCount": 23, "recordHandle": 15, "PDRHeaderVersion": 1, "PDRType": "State Sensor PDR", "recordChangeNumber": 0, "dataLength": 13, "PLDMTerminusHandle": 0, "sensorID": 2, "entityType": "19(OEM)", "entityInstanceNumber": 0, "containerID": 0, "sensorInit": "noInit", "sensorAuxiliaryNamesPDR": false, "compositeSensorCount": 0 }
Write Effecter test: root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@w56:~# pldmtool platform SetStateEffecterStates -i 2 -c 1 -d 1 1 --verbose Request Message: 08 01 80 02 39 02 00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Success in creating the socket : RC = 4 Success in connecting to socket : RC = 0 Success in sending message type as pldm to mctp : RC = 0 Write to socket successful : RC = 24 Total length:6 Shutdown Socket successful : RC = 0 Response Message: 08 01 00 02 39 00 { "Response": "SUCCESS" } root@w56:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true
Sensor Read root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b false root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 02 root@rain104bmc:~# busctl set-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# busctl get-property xyz.openbmc_project.LED.GroupManager /xyz/openbmc_project/led/groups/base_blyth_identify xyz.openbmc_project.Led.Group Asserted b true root@rain104bmc:~# pldmtool raw --data 0x80 0x02 0x21 0x01 0x00 0x01 0x00 Request Message: 08 01 80 02 21 01 00 01 00 Response Message: 08 01 00 02 21 00 01 00 00 00 01
Signed-off-by: Varsha Kaverappa <vkaverap@in.ibm.com> Change-Id: Idbe765eeeaf229838f721918da01a15d5391cab2
|