ECS is a virtualized cloud-based service. You cannot capture screenshots of ECS or connect it to any display devices. However, ECS caches system logs of the most recent start, restart, or shutdown actions of each instance and you can capture screenshots of the instances on a real-time basis. You can use these features to analyze and troubleshoot instance faults such as operating systems not responding, abnormal restart, or instance connection failures.

Prerequisites

The instance is in the Running (Running) state. For more information, see Overview.

Background information

System logs are important for O&M diagnosis. If you need to diagnose exceptions, you can query ECS system logs of instance startup and exceptions. The system shows two types of logs through serial ports: logs of system startup and logs of system kernel failures or exceptions.

You can view system logs and instance screenshots on the Instance Details or Instances page in the ECS console, or by calling API operations. When you use these features, take note of the following points:
  • For Windows instances, you can only view instance screenshots. You cannot obtain system logs of the instances.
  • You cannot obtain system logs or screenshots for instances of instance types that have been phased out. For more information, see Phased-out instance types.
  • You cannot obtain system logs or screenshots for instances created before January 1, 2018.

Procedure on the Instance Details page

Perform the following steps to view system logs and screenshots of an instance on the Instance Details page:

  1. Select the instance that you want to troubleshoot and click the instance ID to go to the Instance Details page.
  2. Choose More > Get Instance Screenshot to view instance screenshots, or choose More > Get Instance System Logs to view system logs.
  3. View screenshots or system logs of the instance.
    • Sample screenshot of a Windows instance
    • Sample screenshot of a Linux instance
    • Sample system log of a Linux instance

Procedure on the Instances page

Perform the following steps to view system logs and screenshots of an instance on the Instances page:

  1. Find the target instance and the corresponding Actions column.
  2. Choose More > Operations and Troubleshooting > Get Instance Screenshot to view instance screenshots, or choose More > Operations and Troubleshooting > Get Instance System Logs to view system logs.
  3. View screenshots or system logs of the instance.

What to do next

For more information about troubleshooting, see Link testing tool for ping packet loss or ping failure