View status checks for Amazon EC2 instances
To view status checks, use one of the following methods.
- Console
-
To view status checks
-
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
. -
In the navigation pane, choose Instances.
-
On the Instances page, the Status check column lists the operational status of each instance.
-
To view the status of a specific instance, select the instance, and then choose the Status and alarms tab.
If your instance has a failed status check, you typically must address the problem yourself (for example, by rebooting the instance or by making instance configuration changes). To troubleshoot system or instance status check failures yourself, see Troubleshoot Amazon EC2 Linux instances with failed status checks.
-
To review the CloudWatch metrics for status checks, on the Status and alarms tab, expand Metrics to see the graphs for the following metrics:
-
Status check failed for system
-
Status check failed for instance
-
Status check failed for attached EBS
For more information, see Status check metrics.
-
-
- Command line
-
You can view status checks for running instances by using the describe-instance-status (AWS CLI) command.
To view the status of all instances, use the following command.
aws ec2 describe-instance-status
To get the status of all instances with an instance status of
impaired
, use the following command.aws ec2 describe-instance-status \ --filters Name=instance-status.status,Values=impaired
To get the status of a single instance, use the following command.
aws ec2 describe-instance-status \ --instance-ids
i-1234567890abcdef0
Alternatively, use the following commands:
-
Get-EC2InstanceStatus (AWS Tools for Windows PowerShell)
-
DescribeInstanceStatus (Amazon EC2 Query API)
If you have an instance with a failed status check, see Troubleshoot Amazon EC2 Linux instances with failed status checks.
-