// Module included in the following assemblies:
//
// * support/troubleshooting/rosa-troubleshooting-autonode.adoc

:_mod-docs-content-type: PROCEDURE
[id="query-ec2nodeclass-condition-status_{context}"]
= Query EC2NodeClass condition status

[role="_abstract"]
Use the `oc` command-line interface to inspect EC2NodeClass status conditions and identify which AWS resources require configuration changes.

.Procedure

. To view the full condition status for an EC2NodeClass, run:
+
[source,terminal]
----
$ oc get ec2nodeclass/default -o json | jq .status.conditions
----
+
The output displays all condition types with their status, reason, and explanatory message.

. Optional: To view only the overall `Ready` condition, run:
+
[source,terminal]
----
$ oc get ec2nodeclass/default -o json | jq '.status.conditions[] | select(.type=="Ready")'
----
+
The output shows the `Ready` condition type, status, reason, and message explaining why the condition is in that state.

.Verification

* Review the output to identify which conditions show `"status": "False"`.
* Check the `message` field for each failed condition to determine what AWS resources need configuration changes.
