|
Post by sajek on Mar 9, 2023 10:07:51 GMT
Hi,
I want to download a file from a specific bmc location (/var/log/) using redfish API. Is there any schema and its actions or properties allow user to do that operation?
I have noticed there are some LogServices schema provided by the redfish - /redfish/v1/Systems/system/LogServices/ But I couldn't find a way to download the log files using these schemas. Let me know, if there are any examples available to explore this.
Regards, Sajeesh
|
|
|
Post by mraineri on Mar 9, 2023 14:01:52 GMT
LogEntry resources can provide an "AdditionalDataURI" property, which is an abstraction allowing the server to attach arbitrary data to a log entry. So, if you want to tarball the contents of /var/log and expose that through the LogEntry resource with that property, you can certainly do that.
There's also the "CollectDiagnosticData" action on the LogService, which allows the client to invoke a request to collect debug information. The result is like above; a new LogEntry is created with "AdditionalDataURI" pointing to where the client can download the requested debug information. The service can run whatever scripts or tools it wants in the background to package the debug info.
|
|
|
Post by sajek on Mar 9, 2023 14:55:52 GMT
Thanks for the clarification.
|
|