Decommission NICo-managed hardware
Decommissioning is NICo’s graceful cleanup step before force-deleting or moving managed hardware. Use this workflow when you intend one of the following outcomes:
- The hardware is permanently leaving the site, either because it is moving to a new site or it is leaving service.
- The hardware will be ingested from a clean pre-ingestion state into the same site.
After decommissioning begins, the hardware performs a series of cleanup steps
and reaches the terminal state Decommissioning/Decommissioned. NICo then
performs no further decommissioning actions.
NICo suppresses discovery and responses from its own DHCP service for the device’s associated interfaces until you remove the suppressions with force-delete. Endpoints can remain reachable if they use static IP addresses or receive an address from an external DHCP server. Complete any required network changes or physical hardware removal before force-deleting the device records.
After cleaning up, use force-delete to remove a decommissioned device and its records from NICo.
Choose a procedure
The following procedures document the Core nico-admin-cli workflow against the NICo
gRPC API.
- Decommission Managed Hosts and DPUs: reset host firmware configuration, SuperNIC lockdown, DPU images, host and DPU BMCs, and managed credentials.
- Decommission Managed Switches: factory-reset NVOS and the switch BMC, then remove managed NVOS and BMC credentials.
- Decommission Managed Power Shelves: factory-reset the shelf BMC or PMC, then remove its managed BMC credential.
DHCP Suppression Acknowledgement
During decommissioning, NICo marks DHCP suppression as acknowledged when a DHCP request for the suppressed MAC reaches the NICo API and NICo refuses address allocation. The acknowledgement is an internal record. NICo does not send a DHCPACK message to the device.
Each DHCP wait checks the relevant MAC addresses separately. A recorded DHCP suppression acknowledgement for decommissioning satisfies the wait for that MAC. Without that acknowledgement, the MAC must meet all these conditions for the wait to complete:
- The MAC has at least one recorded interface.
- Every interface for that MAC has a current
staticallocation. - No current address on those interfaces falls within any configured network prefix.
External fixed addresses normally use the static-assignments network segment,
but the wait checks address containment rather than segment membership. Managed
fixed or retained addresses, missing interfaces, and interfaces without a current
static allocation still require acknowledgement. An interface with an external
address in one address family and a managed address in the other also requires
acknowledgement. If acknowledgement is required and no DHCP request reaches the
NICo API, the controller remains in its DHCP wait state.
Verify that the endpoint sends DHCP requests to NICo’s DHCP service and that the service can reach the NICo API. Restore connectivity where either path is blocked.
Completing the wait without acknowledgement leaves DHCP suppression recorded. Decommissioning still performs the power cycle, reboot, or factory reset that precedes each wait.
Troubleshooting
If decommissioning stops progressing, check the device’s controller state and handler message to identify the blocked operation.
For DHCP wait states, refer to DHCP Suppression Acknowledgement.
NICo retries temporary failures automatically. If an error persists or the message requests manual intervention, check connectivity, credentials, and the procedure’s prerequisites. Resolve the reported problem, then monitor the device for progress.
If the workflow cannot recover automatically, manually advance the controller
state after resolving the failure, or force-delete the device and ingest it
again. After the device returns to Ready, start a new decommissioning request.
Force-delete removes records but does not complete unfinished cleanup.
Force-delete after decommissioning
Use these commands when you are removing decommissioned hardware from a site. They remove records associated with the device: interfaces, suppressions, and retained boot entries where those exist.
Host:
Switch:
Power shelf:
Expected result: Control-plane records for that device are removed. If the hardware is still present, Site Explorer can ingest it from the reset state.