Viewing the Console Output of an Instance
You can view the console output of an instance, for example to troubleshoot kernel problems or system errors. The console provides the most recent 64 KiB output.
On Windows instances, the console is accessible only on the first boot. It returns no output after the first reboot.
Viewing the Console Output of an Instance Using Cockpit v1
-
Click Compute > Instances.
-
Click the instance whose console output you want to view.
-
Click Console Output .
The CONSOLE OUTPUT dialog box appears.By default, the console output is automatically refreshed every 3 seconds. You can uncheck the Enable auto-refresh box to disable auto-refresh.
Viewing the Console Output of a VM Using Cockpit v2-beta
-
Click inside the VMs dashboard to make checkboxes appear.
-
Check the box of the VM whose console output you want to view.
The VM is selected and an action menu appears. -
Click
Console Output.
The CONSOLE OUTPUT dialog box appears.By default, the console output is automatically refreshed every 3 seconds but you can disable the auto-refresh.
Viewing the Console Output of a VM Using OSC CLI
See the ReadConsoleOutput command sample in the documentation of the OUTSCALE API. |
Viewing the Console Output of an Instance Using AWS CLI
To view the console output of an instance, use the get-console-output command following this syntax:
$ aws ec2 get-console-output \
--profile YOUR_PROFILE \
--instance-id i-12345678 \
--endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
instance-id
: The ID of the instance. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The get-console-output command returns the following elements:
-
InstanceID
: The ID of the instance. -
Output
: The console output, decoded from its original Base64-encoded form. -
Timestamp
: The time the output was updated for the last time, in ISO 8601 format.
{
"InstanceId": "i-12345678",
"Output": "...",
"Timestamp": "2018-01-01T13:00:00.176Z"
}
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.