blob: 7c0c8233b7e2c357de0eb9a55532681b717f9fc4 [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 = {
George Keishinge635ddc2022-12-08 07:38:02 -06008 'CreatorID': 'BMC',
9 'CompID': '0x1000',
10 'Subsystem': 'Platform Firmware',
11 'Message': 'This is a test error',
12 'SRC': 'BD8D1002',
13 'Sev': 'Unrecoverable Error'}
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050014
George Keishinge635ddc2022-12-08 07:38:02 -060015ERROR_LOG_CREATE_BASE_CMD = 'busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging \
16 xyz.openbmc_project.Logging.Create Create ssa{ss} '
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050017
George Keishinge635ddc2022-12-08 07:38:02 -060018CMD_INTERNAL_FAILURE = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.InternalFailure \
19 xyz.openbmc_project.Logging.Entry.Level.Error 0'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050020
George Keishinge635ddc2022-12-08 07:38:02 -060021CMD_FRU_CALLOUT = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Sensor.Device.Error.ReadFailure \
22 xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5" "CALLOUT_INVENTORY_PATH" \
23 "/xyz/openbmc_project/inventory/system/chassis/motherboard"'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050024
George Keishinge635ddc2022-12-08 07:38:02 -060025CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT = ERROR_LOG_CREATE_BASE_CMD + 'org.open_power.Logging.Error.TestError1 \
26 xyz.openbmc_project.Logging.Entry.Level.Error 0'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050027
George Keishinge635ddc2022-12-08 07:38:02 -060028CMD_INFORMATIONAL_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.TestError2 \
29 xyz.openbmc_project.Logging.Entry.Level.Informational 0'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050030
George Keishinge635ddc2022-12-08 07:38:02 -060031CMD_INVENTORY_PREFIX = 'busctl get-property xyz.openbmc_project.Inventory.Manager \
32 /xyz/openbmc_project/inventory/system/chassis/motherboard'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050033
George Keishinge635ddc2022-12-08 07:38:02 -060034CMD_UNRECOVERABLE_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'org.open_power.Logging.Error.TestError1 \
35 xyz.openbmc_project.Logging.Entry.Level.Error 0'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050036
George Keishinge635ddc2022-12-08 07:38:02 -060037CMD_PREDICTIVE_ERROR = ERROR_LOG_CREATE_BASE_CMD + \
38 'xyz.openbmc_project.Sensor.Threshold.Error.TemperatureWarningLow \
39 xyz.openbmc_project.Logging.Entry.Level.Warning 0'
Rahul Maheshwarib8580dd2021-05-10 00:57:33 -050040
George Keishinge635ddc2022-12-08 07:38:02 -060041CMD_UNRECOVERABLE_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \
42 xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_NBMC_UNRECOVERABLE'
manashsarma4baa6a72020-12-16 07:13:37 -060043
George Keishinge635ddc2022-12-08 07:38:02 -060044CMD_INFORMATIONAL_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \
45 xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_HOST_INFORMATIONAL'