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 -

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 -

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.

ZTP through ONIE Install

APB-NOS supports automated onboarding and image installation through ONIE's native Zero-Touch Provisioning (ZTP) framework. ONIE (Open Network Install Environment) runs before the NOS boots and discovers a provisioning server using DHCP. Based on DHCP options, ONIE downloads either a NOS image (.bin) or a provisioning script (JSON, shell script, or GRUB installer), enabling fully automated, hands-free installation of the APB-NOS software image on new or factory-reset switches.

How to trigger to ONIE-ZTP from ISCLI A new command is introduced in APBNOS CLI to set ONIE mode to uninstall. This command automatically: Sets ONIE to uninstall mode Uninstalls the existing image/images Go to ONIE install mode and stay in ONIE prompt Installs the new NOS provisioned in the DHCP server options Reboots the device and boots up with the new NOS.

Last updated