// Module included in the following assemblies:
//
// * nodes/nodes-nodes-viewing.adoc

:_mod-docs-content-type: PROCEDURE
[id="nodes-nodes-viewing-listing-pods_{context}"]
= Listing pods on a node in your cluster

[role="_abstract"]
You can list all of the pods on a node by using the `oc get pods` command along with specific flags. This command shows the number of pods on that node, the state of the pods, number of pod restarts, and the age of the pods.

.Procedure

* To list all or selected pods on selected nodes:
+
[source,terminal]
----
$ oc get pod --selector=<nodeSelector>
----
+
[source,terminal]
----
$ oc get pod --selector=kubernetes.io/os
----
+
Or:
+
[source,terminal]
----
$ oc get pod -l=<nodeSelector>
----
+
[source,terminal]
----
$ oc get pod -l kubernetes.io/os=linux
----

* To list all pods on a specific node, including terminated pods:
+
[source,terminal]
----
$ oc get pod --all-namespaces --field-selector=spec.nodeName=<nodename>
----
