HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/ec2/get-console-output.rst
**Example 1: To get the console output**

The following ``get-console-output`` example gets the console output for the specified Linux instance. ::

    aws ec2 get-console-output \
        --instance-id i-1234567890abcdef0

Output::

    {
        "InstanceId": "i-1234567890abcdef0",
        "Timestamp": "2013-07-25T21:23:53.000Z",
        "Output": "..."
    }

For more information, see `Instance console output <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output>`__ in the *Amazon EC2 User Guide*.


**Example 2: To get the latest console output**

The following ``get-console-output`` example gets the latest console output for the specified Linux instance. ::

    aws ec2 get-console-output \
        --instance-id i-1234567890abcdef0 \
        --latest \
        --output text

Output::

    i-1234567890abcdef0 [    0.000000] Command line: root=LABEL=/ console=tty1 console=ttyS0 selinux=0 nvme_core.io_timeout=4294967295
    [    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
    [    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
    [    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
    ...
    Cloud-init v. 0.7.6 finished at Wed, 09 May 2018 19:01:13 +0000. Datasource DataSourceEc2.  Up 21.50 seconds
    Amazon Linux AMI release 2018.03
    Kernel 4.14.26-46.32.amzn1.x

For more information, see `Instance console output <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output>`__ in the *Amazon EC2 User Guide*.