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:
It will Trigger the ZTP process and download the image, configuration, and script files.
Install the downloaded files.
Reboot the switch.
After rebooting, the switch will come up with the new image.
Trigger ZTP during reboot -
When you run the above commands, the switch will:
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.
Install the image, and configuration, and run any script files.
After the files are installed, the switch will automatically reboot.
Once the switch comes back up, it will be running the new image.
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
