summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagpal Singh Gill <paligill@gmail.com>2024-10-15 00:07:05 +0300
committerJagpal S Gill <paligill@gmail.com>2024-10-18 02:06:35 +0300
commit5b1c6cc5348751890d62ae1d1220fba1c2a5447b (patch)
tree15728d27193dac42ebc3e06f4a2fe56e4cd65e68
parent60e8c2219fc46acc72138a73f7033d9dfd87d73f (diff)
downloadopenbmc-5b1c6cc5348751890d62ae1d1220fba1c2a5447b.tar.xz
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 <paligill@gmail.com>
-rw-r--r--meta-facebook/recipes-phosphor/interfaces/bmcweb_%.bbappend1
1 files changed, 1 insertions, 0 deletions
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"