Get the node ID of a running node
Retrieving the node ID enables you to uniquely identify a device within your deployment. The node ID is required to register the node with central management systems, analyze system logs and alerts, and ensure that configuration updates are targeted accurately.
Procedure
-
Get the ID of a running node using
oc getby entering the following command:$ oc get namespaces kube-system -o jsonpath={.metadata.uid}Example output7cf13853-68f4-454e-8f5c-1af748cbfb1a -
Get the ID of a running node by retrieving it from the
cluster-idfile by entering the following command:$ sudo cat /var/lib/microshift/cluster-idExample output7cf13853-68f4-454e-8f5c-1af748cbfb1a