Enable ZTP

ZTP can be force enabled to start up the ZTP process. After enabling ZTP, reboot the switch which triggers the ZTP process to kick start.

To force enable/disable ZTP on the switch, use the following command:

Reference

Command

ztp force <enable/run>

Description

Trigger ZTP process

Parameters

enable,run

Mode

EXEC

Example


pbnoscli# configure terminal 
pbnoscli(config)# ztp force 
 enable                 run                   
pbnoscli(config)# ztp force 
  enable                Enable
  run                   Trigger ZTP process
pbnoscli(config)# ztp force enable
pbnoscli(config)# ztp force run
pbnoscli(config)# end
pbnoscli#

Trigger ZTP manually -

pbnoscli(config)# ztp force enable
pbnoscli(config)# ztp force run

When you run the above commands, the switch will:

  1. It will Trigger the ZTP process and download the image, configuration, and script files.

  2. Install the downloaded files.

  3. Reboot the switch.

  4. After rebooting, the switch will come up with the new image.

Trigger ZTP during reboot -

pbnoscli(config)# ztp force enable
pbnoscli(config)# end
pbnoscli# reboot 

Check if running config is saved

Do you want to reboot the device [y/n]: y

When you run the above commands, the switch will:

  1. Trigger the ZTP process: The ZTP process will automatically kick in after the switch reboots. ZTP will download the image, configuration, and script files, if any.

  2. Install the image, and configuration, and run any script files.

  3. After the files are installed, the switch will automatically reboot.

  4. Once the switch comes back up, it will be running the new image.

After any of the above methods, the ZTP will not be disabled automatically and will need to be manually enabled if required.


pbnoscli# show running-config 
configure terminal
!
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
ztp force enable
!
pbnoscli#