Using a PATCH Request to Download Host Console History (Prior to firmware version 5.0)
The Oracle ILOM REST API, prior to firmware version 5.0, support the ability to use a PATCH request to extract the entire console history to a binary (non-text) file.
HTTP Request Format: PATCH
PATCH /rest/v<version>/HOST/console/history <Header Name>: <value> { "dump": true }
Where:
-
"dump":true
initiates the extraction process of the host console history data.
Request Headers Required
The request header fields required to modify resources are as follows:
Content-Type
, Accept
,
Authorization
, and Host
.
Note:
The request Accept
header must specify
application/octet-steam
as the target media type. The
Content-Type
request header must specify
application/json
as the target media type.
For a description of these required header fields, see Common Request Header Fields.
cURL Example
Using cURL, a request to extract the host console history to a binary (non-text)
file (console_History.log
) would look like this:
curl -k --request PATCH -u "root:changeme" -H "Content-Type:application/json" --data '{"dump":true}' https://<IPaddress>:443/rest/v1/HOST/console/history > console_history.log