ECS instances are virtualized cloud-based services that cannot be connected to any display devices and prohibit mobile snapshots. However, the console output of instances is cached at the time of the last startup, restart, or shutdown event. Furthermore, you can obtain instance screenshots in real time. We recommend that you use these features to analyze and troubleshoot instance faults, such as operating system exception diagnosis, abnormal reboots, or if you are unable to connect to instances.

Limits

  • Instances running Windows Server image do not allow you to obtain console output.
  • Phased-out instance types do not allow you to obtain instance console output or screenshots.
  • You cannot obtain console output or screenshots for instances created before January 1, 2018.

Prerequisites

The instance must be in the Running state. For more information, see Connecting to an ECS instance.

Operations on the Instance Details page

To view the screenshots and system logs of an ECS instance on the Instance Details page, follow these steps:

  1. Click the ID of the target instance to go to the Instance Details page.
  2. In the Basic Information area, choose More > Get Instance Screenshot to view instance screenshots. Alternatively, choose More > Get Instance System Logs to view instance system logs.
  3. Check the instance screenshots or system logs.
    • Windows instance screenshot sample

    • Linux instance screenshot sample

    • Linux instance system logs

Operations on the Instances page

To view the screenshots and system logs of an ECS instance on the Instances page, follow these steps

  1. Locate the target instance to troubleshoot.
  2. In the Actions column, choose More > Operations and Troubleshooting > Get Instance Screenshot to view instance screenshots. Alternatively, choose More > Operations and Troubleshooting > Get Instance System Logs to view instance system logs.
  3. Check the instance screenshots or system logs.

Related APIs

What to do next

For other troubleshooting instructions, see Link testing tool for ping packet loss or ping failure.