blob: e5c3d6fa57d35dc506a8a52b2b60bead2709b7ba [file] [log] [blame]
George Keishinge7e91712021-09-03 11:28:44 -05001#!/usr/bin/env python3
Rahul Maheshwaria17a3392020-03-02 04:51:52 -06002
3r"""
4Contains PEL related constants.
5"""
6
7PEL_DETAILS = {
Patrick Williams20f38712022-12-08 06:18:26 -06008 "CreatorID": "BMC",
9 "CompID": "0x1000",
10 "Subsystem": "Platform Firmware",
11 "Message": "This is a test error",
12 "SRC": "BD8D1002",
13 "Sev": "Unrecoverable Error",
14}
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050015
Patrick Williams20f38712022-12-08 06:18:26 -060016ERROR_LOG_CREATE_BASE_CMD = (
17 "busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging "
18 " xyz.openbmc_project.Logging.Create Create ssa{ss} "
19)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050020
Patrick Williams20f38712022-12-08 06:18:26 -060021CMD_INTERNAL_FAILURE = (
22 ERROR_LOG_CREATE_BASE_CMD
23 + "xyz.openbmc_project.Common.Error.InternalFailure "
24 " xyz.openbmc_project.Logging.Entry.Level.Error 0"
25)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050026
Patrick Williams20f38712022-12-08 06:18:26 -060027CMD_FRU_CALLOUT = (
28 ERROR_LOG_CREATE_BASE_CMD
29 + "xyz.openbmc_project.Sensor.Device.Error.ReadFailure "
30 ' xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5"'
31 ' "CALLOUT_INVENTORY_PATH" '
32 ' "/xyz/openbmc_project/inventory/system/chassis/motherboard"'
33)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050034
Patrick Williams20f38712022-12-08 06:18:26 -060035CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT = (
36 ERROR_LOG_CREATE_BASE_CMD
37 + "org.open_power.Logging.Error.TestError1 "
38 " xyz.openbmc_project.Logging.Entry.Level.Error 0"
39)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050040
Patrick Williams20f38712022-12-08 06:18:26 -060041CMD_INFORMATIONAL_ERROR = (
42 ERROR_LOG_CREATE_BASE_CMD
43 + "xyz.openbmc_project.Common.Error.TestError2 "
44 " xyz.openbmc_project.Logging.Entry.Level.Informational 0"
45)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050046
Patrick Williams20f38712022-12-08 06:18:26 -060047CMD_INVENTORY_PREFIX = (
48 "busctl get-property xyz.openbmc_project.Inventory.Manager "
49 " /xyz/openbmc_project/inventory/system/chassis/motherboard"
50)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050051
Patrick Williams20f38712022-12-08 06:18:26 -060052CMD_UNRECOVERABLE_ERROR = (
53 ERROR_LOG_CREATE_BASE_CMD
54 + "org.open_power.Logging.Error.TestError1 "
55 " xyz.openbmc_project.Logging.Entry.Level.Error 0"
56)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050057
Patrick Williams20f38712022-12-08 06:18:26 -060058CMD_PREDICTIVE_ERROR = (
59 ERROR_LOG_CREATE_BASE_CMD
60 + "xyz.openbmc_project.Sensor.Threshold.Error.TemperatureWarningLow "
61 " xyz.openbmc_project.Logging.Entry.Level.Warning 0"
62)
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050063
Patrick Williams20f38712022-12-08 06:18:26 -060064CMD_UNRECOVERABLE_HOST_ERROR = (
65 ERROR_LOG_CREATE_BASE_CMD
66 + "xyz.openbmc_project.Host.Error.Event "
67 " xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL"
68 " /tmp/FILE_NBMC_UNRECOVERABLE"
69)
manashsarma4baa6a72020-12-16 07:13:37 -060070
Patrick Williams20f38712022-12-08 06:18:26 -060071CMD_INFORMATIONAL_HOST_ERROR = (
72 ERROR_LOG_CREATE_BASE_CMD
73 + "xyz.openbmc_project.Host.Error.Event "
74 " xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL"
75 " /tmp/FILE_HOST_INFORMATIONAL"
76)