// Module included in the following assemblies:
//
// *installing/validation_and_troubleshooting/validating-an-installation.adoc

:_mod-docs-content-type: PROCEDURE
[id="getting-cluster-version-and-update-details_{context}"]
= Getting cluster version, status, and update details

[role="_abstract"]
You can view the cluster version and status by running the `oc get clusterversion` command. If the status shows that the installation is still progressing, you can review the status of the Operators for more information.

You can also list the current update channel and review the available cluster updates.

.Prerequisites

* You have access to the cluster as a user with the `cluster-admin` role.
* You have installed the {oc-first}.

.Procedure

. Obtain the cluster version and overall status:
+
[source,terminal]
----
$ oc get clusterversion
----
+
.Example output
[source,terminal]
----
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.6.4     True        False         6m25s   Cluster version is 4.6.4
----
+
The example output indicates that the cluster has been installed successfully.

. If the cluster status indicates that the installation is still progressing, you can obtain more detailed progress information by checking the status of the Operators:
+
[source,terminal]
----
$ oc get clusteroperators.config.openshift.io
----

. View a detailed summary of cluster specifications, update availability, and update history:
+
[source,terminal]
----
$ oc describe clusterversion
----

. List the current update channel:
+
[source,terminal]
----
$ oc get clusterversion -o jsonpath='{.items[0].spec}{"\n"}'
----
+
.Example output
[source,terminal]
----
{"channel":"stable-4.6","clusterID":"245539c1-72a3-41aa-9cec-72ed8cf25c5c"}
----

. Review the available cluster updates:
+
[source,terminal]
----
$ oc adm upgrade
----
+
.Example output
[source,terminal]
----
Cluster version is 4.6.4

Updates:

VERSION IMAGE
4.6.6   quay.io/openshift-release-dev/ocp-release@sha256:c7e8f18e8116356701bd23ae3a23fb9892dd5ea66c8300662ef30563d7104f39
----
