Capturing the Instance Console History
Capture the instance console history.
Important
To capture the console history, you must first create an Instance Console Connection to the instance. The steps to make an instance console connection are documented here:
To capture the console history, you must first create an Instance Console Connection to the instance. The steps to make an instance console connection are documented here:
- Navigate to the Compute Instances list page. If you need help finding the list page, see Listing Instances.
- Select an instance.
- Select the option you see:
- From the OS Management tab, scroll down to Console history.
- Under Resources, select Console history.
-
Select View current history.
- Provide the following information:
- Name: A default name is provide for command history you want to save. Optionally, enter a name. Avoid entering confidential information.
- (Optional) Select the option you see to specify tags:
- Tagging
- Show tagging options
- (Optional) To download a copy of the console history, select Download. If selected, a log file is downloaded to your system.
- Select Save and close. A log of the console history is saved in this dialog.
Use the
console-history capture
command and required parameters to capture the instance console history:oci compute console-history capture --instance-id <instance-id>
Or use a JSON file to set parameters:
oci compute console-history capture --from-json <file://path/to/file.json>
<file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.
For a complete list of flags and variable options for the Compute service CLI commands, see the command line reference for Compute.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
Use this API operation to capture the console history: