Commit c383f56
committed
PEL for Worker class
This commit adds code to log informational PEL in worker class, in case
of exceptions occurred during creating asset tag and initiating backup &
restore.
output:
'''
root@testhostname:~# peltool -i 0x5000ED96
{
"Private Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "bmc vpd",
"Created at": "01/10/2025 15:48:55",
"Committed at": "01/10/2025 15:48:55",
"Creator Subsystem": "BMC",
"CSSVER": "",
"Platform Log Id": "0x5000ED96",
"Entry Id": "0x5000ED96",
"BMC Event Log Id": "783"
},
"User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Log Committed by": "bmc error logging",
"Subsystem": "CEC Hardware - VPD Interface",
"Event Scope": "Entire Platform",
"Event Severity": "Informational Event",
"Event Type": "Miscellaneous, Informational Only",
"Action Flags": [
"Event not customer viewable",
"Report Externally"
],
"Host Transmission": "Not Sent",
"HMC Transmission": "Not Sent"
},
"Primary SRC": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "bmc vpd",
"SRC Version": "0x02",
"SRC Format": "0x55",
"Virtual Progress SRC": "False",
"I5/OS Service Event Bit": "False",
"Hypervisor Dump Initiated":"False",
"Backplane CCIN": "2E2D",
"Terminate FW Error": "False",
"Deconfigured": "False",
"Guarded": "False",
"Error Details": {
"Message": "A VPD data exception occurred."
},
"Valid Word Count": "0x09",
"Reference Code": "BD554001",
"Hex Word 2": "00000055",
"Hex Word 3": "2E2D0010",
"Hex Word 4": "00000000",
"Hex Word 5": "00000000",
"Hex Word 6": "00000000",
"Hex Word 7": "00000000",
"Hex Word 8": "00000000",
"Hex Word 9": "00000000"
},
"Extended User Header": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "bmc error logging",
"Reporting Machine Type": "9105-22A",
"Reporting Serial Number": "139F230",
"FW Released Ver": "",
"FW SubSys Version": "fw1110.00-3.37",
"Common Ref Time": "00/00/0000 00:00:00",
"Symptom Id Len": "20",
"Symptom Id": "BD554001_2E2D0010"
},
"Failing MTMS": {
"Section Version": "1",
"Sub-section type": "0",
"Created by": "bmc error logging",
"Machine Type Model": "9105-22A",
"Serial Number": "139F230"
},
"User Data 0": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "bmc error logging",
"BMCLoad": "0.51 0.80 0.80",
"BMCState": "Ready",
"BMCUptime": "0y 0d 0h 26m 28s",
"BootState": "Unspecified",
"ChassisState": "Off",
"FW Version ID": "fw1110.00-3.37-85-g35b06323a2-dirty",
"HostState": "Off",
"System IM": "50001001"
},
"User Data 1": {
"Section Version": "1",
"Sub-section type": "1",
"Created by": "bmc error logging",
"DESCRIPTION": "Exception caught while backup and restore VPD keyword's.Test error",
"FileName": "/usr/src/debug/openpower-fru-vpd/1.0+git/vpd-manager/src/worker.cpp",
"FunctionName": "performBackupAndRestore",
"InteranlRc": "0",
"UserData1": "",
"UserData2": ""
}
'''
Signed-off-by: RekhaAparna01 <[email protected]>1 parent f92c478 commit c383f56
2 files changed
+41
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
477 | 480 | | |
478 | 481 | | |
479 | 482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
1150 | 1151 | | |
1151 | 1152 | | |
1152 | 1153 | | |
1153 | | - | |
| 1154 | + | |
| 1155 | + | |
1154 | 1156 | | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
| 1157 | + | |
| 1158 | + | |
1158 | 1159 | | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
1165 | 1163 | | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1169 | 1167 | | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
| 1168 | + | |
| 1169 | + | |
1178 | 1170 | | |
1179 | 1171 | | |
1180 | 1172 | | |
1181 | 1173 | | |
1182 | | - | |
| 1174 | + | |
1183 | 1175 | | |
1184 | 1176 | | |
1185 | | - | |
| 1177 | + | |
1186 | 1178 | | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
| 1179 | + | |
| 1180 | + | |
1190 | 1181 | | |
1191 | 1182 | | |
1192 | 1183 | | |
| |||
1224 | 1215 | | |
1225 | 1216 | | |
1226 | 1217 | | |
1227 | | - | |
1228 | | - | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1229 | 1221 | | |
1230 | | - | |
| 1222 | + | |
| 1223 | + | |
1231 | 1224 | | |
1232 | 1225 | | |
1233 | 1226 | | |
| |||
1557 | 1550 | | |
1558 | 1551 | | |
1559 | 1552 | | |
| 1553 | + | |
| 1554 | + | |
1560 | 1555 | | |
1561 | 1556 | | |
1562 | 1557 | | |
| |||
1566 | 1561 | | |
1567 | 1562 | | |
1568 | 1563 | | |
1569 | | - | |
| 1564 | + | |
1570 | 1565 | | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
1581 | 1573 | | |
1582 | 1574 | | |
1583 | 1575 | | |
| |||
1643 | 1635 | | |
1644 | 1636 | | |
1645 | 1637 | | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
| 1638 | + | |
1649 | 1639 | | |
1650 | 1640 | | |
1651 | 1641 | | |
| |||
1660 | 1650 | | |
1661 | 1651 | | |
1662 | 1652 | | |
1663 | | - | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1664 | 1656 | | |
1665 | 1657 | | |
1666 | 1658 | | |
| |||
0 commit comments