From 5b1c6cc5348751890d62ae1d1220fba1c2a5447b Mon Sep 17 00:00:00 2001 From: Jagpal Singh Gill Date: Mon, 14 Oct 2024 14:07:05 -0700 Subject: meta-facebook: enable dump log in BMCWeb Enable redfish-dump-log feature in BMCWeb to enable BMC coredump. Tested: ``` DOCKER >>>> curl -k -H "X-Auth-Token: $token" -X POST -H "Content-Type: application/json" -d '{"DiagnosticDataType":"Manager"}' https://${bmc}/redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData { "@odata.id": "/redfish/v1/TaskService/Tasks/0", "@odata.type": "#Task.v1_4_3.Task", "Id": "0", "TaskState": "Running", "TaskStatus": "OK" } DOCKER >>>> curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Managers/bmc/LogServices/Dump/Entries/1 { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Dump/Entries/1", "@odata.type": "#LogEntry.v1_11_0.LogEntry", "AdditionalDataSizeBytes": 24448, "AdditionalDataURI": "/redfish/v1/Managers/bmc/LogServices/Dump/Entries/1/attachment", "Created": "2024-02-28T22:45:28.000000+00:00", "DiagnosticDataType": "Manager", "EntryType": "Event", "Id": "1", "Name": "BMC Dump Entry", "Originator": "::1", "OriginatorType": "Client" } DOCKER >>>> curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Managers/bmc/LogServices/Dump/Entries/1/attachment --output file ``` Change-Id: Iee044e819059b88be8a724ba0280f971448575a8 Signed-off-by: Jagpal Singh Gill --- meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend b/meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend index 81704728ed..5588ae3915 100644 --- a/meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend +++ b/meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend @@ -1,6 +1,7 @@ EXTRA_OEMESON:append = "\ -Dredfish-dbus-log=enabled \ -Dmeta-tls-common-name-parsing=enabled \ + -Dredfish-dump-log=enabled \ " PACKAGECONFIG:append = " insecure-redfish-expand" -- cgit v1.2.3