summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCarson Labrado <clabrado@google.com>2023-03-27 20:04:46 +0300
committerEd Tanous <ed@tanous.net>2023-10-20 19:41:26 +0300
commit168d1b1ac9dac748ea57f7038d0abebfef7462a2 (patch)
tree4cad2a4a63e425176971782f071cbea8c15b96e7 /scripts
parent04b0e33c15ba4774a3fc914399594340e87dc706 (diff)
downloadbmcweb-168d1b1ac9dac748ea57f7038d0abebfef7462a2.tar.xz
LogService: Retrieve dump generated by Manager
Adds support for retrieving the dump file that's generated by phosphor-debug-collector as a result of using the LogServices/Dump Action LogService.CollectDiagnosticData from the bmc Manager resource. Refactors the handling for /redfish/v1/Systems/<str>/LogServices/EventLog/Entries/<str>/attachment to use one of the new functions and remove the large lambda. Tested: I began the dump generation process by sending a POST request to /redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData. That spawned a Task to track the dump being generated by phosphor-debug-collector. The dump was retrieved by querying the /redfish/v1/Managers/bmc/LogServices/Dump/Entries/<str>/attachment URI which is associated with the Task. Verified that an event log returned by querying /redfish/v1/Systems/<str>/LogServices/EventLog/Entries/<str>/attachment is the same as it was before this change. Signed-off-by: Carson Labrado <clabrado@google.com> Change-Id: I352b2628a9990bbde40f22e6134f02c89189c925
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions