1#!/usr/bin/python 2 3r""" 4Contains PEL related constants. 5""" 6 7PEL_DETAILS = { 8 'CreatorID': 'BMC', 9 'CompID': '0x1000', 10 'Subsystem': 'BMC Firmware', 11 'Message': 'An application had an internal failure', 12 'SRC': 'BD8D1002', 13 'Sev': 'Unrecoverable Error'} 14 15ERROR_LOG_CREATE_BASE_CMD = 'busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging \ 16 xyz.openbmc_project.Logging.Create Create ssa{ss} ' 17 18CMD_INTERNAL_FAILURE = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.InternalFailure \ 19 xyz.openbmc_project.Logging.Entry.Level.Error 0' 20 21CMD_FRU_CALLOUT = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.Timeout \ 22 xyz.openbmc_project.Logging.Entry.Level.Error 2 "TIMEOUT_IN_MSEC" "5" "CALLOUT_INVENTORY_PATH" \ 23 "/xyz/openbmc_project/inventory/system/chassis/motherboard"' 24 25CMD_PROCEDURAL_SYMBOLIC_FRU_CALLOUT = 'org.open_power.Logging.Error.TestError1 \ 26 xyz.openbmc_project.Logging.Entry.Level.Error 0' 27 28CMD_INFORMATIONAL_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.TestError2 \ 29 xyz.openbmc_project.Logging.Entry.Level.Informational 0' 30 31CMD_INVENTORY_PREFIX = 'busctl get-property xyz.openbmc_project.Inventory.Manager \ 32 /xyz/openbmc_project/inventory/system/chassis/motherboard' 33 34CMD_UNRECOVERABLE_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.InternalFailure \ 35 xyz.openbmc_project.Logging.Entry.Level.Error 0' 36 37CMD_PREDICTIVE_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Common.Error.InternalFailure \ 38 xyz.openbmc_project.Logging.Entry.Level.Warning 0' 39 40CMD_UNRECOVERABLE_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \ 41 xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_NBMC_UNRECOVERABLE' 42 43CMD_INFORMATIONAL_HOST_ERROR = ERROR_LOG_CREATE_BASE_CMD + 'xyz.openbmc_project.Host.Error.Event \ 44 xyz.openbmc_project.Logging.Entry.Level.Error 1 RAWPEL /tmp/FILE_HOST_INFORMATIONAL' 45