dhcp ztp cancel

The Zero Touch Provisioning (ZTP) session indefinitely retries detecting the DHCP server to establish a network connection for firmware download. Once canceled, the ZTP session stops retrying.

Syntax

dhcp ztp cancel

Modes

Privileged EXEC mode

Usage Guidelines

By default, cancelling the ZTP session stops the session and stops all retry attempts, regardless of whether the process succeeds or not. If the firmware download has completed successfully, the device returns to Normal mode. The following limitations apply:

Examples

The following example cancels the ZTP retry.

device# dhcp ztp cancel
Warning: This command will terminate the existing ZTP session
Do you want to continue? [y/n] y

You can confirm that ZTP is canceled by running the dhcp ztp cancel command again. The output confirms that ZTP is disabled.

device# dhcp ztp cancel
ZTP is not enabled.