// Module included in the following assemblies:
//
// * virt/node_maintenance/virt-resuming-node.adoc

[id="virt-resuming-node-maintenance-cli_{context}"]
= Resuming a node from maintenance mode in the CLI

Resume a node from maintenance mode and make it schedulable again by deleting
the `NodeMaintenance` object for the node.

.Procedure

. Find the `NodeMaintenance` object:
+
[source,terminal]
----
$ oc get nodemaintenance
----

. Optional: Insepct the `NodeMaintenance` object to ensure it is associated with the correct node:
+
[source,terminal]
----
$ oc describe nodemaintenance <node02-maintenance>
----
+
.Example output
[source,yaml]
----
Name:         node02-maintenance
Namespace:
Labels:
Annotations:
API Version:  nodemaintenance.kubevirt.io/v1beta1
Kind:         NodeMaintenance
...
Spec:
  Node Name:  node02
  Reason:     Replacing node02
----

. Delete the `NodeMaintenance` object:
+
[source,terminal]
----
$ oc delete nodemaintenance <node02-maintenance>
----
