Enabling or Disabling ZTP
NOTE:
By default, ZTP is enabled on PicOS switches. If ZTP is left enabled, the PicOS switch will try to download a new script every time the switch is booted. This is not a desirable situation, so ZTP should be disabled when it is no longer needed.
Four methods are supported to disable or enable ZTP, as detailed below:
Enable or disable ZTP through running the provision script. To generate the corresponding provision script, select options of 5 and 6 when running the generate_script, as shown below.
you are suggested to select this option at last, or the option may be invalid.
Enable or disable ZTP through the command set system ztp enable <true | false> in PICOS configuration mode. The following example disables ZTP using the command set system ztp enable <true | false>:
dmin@XorPlus# set system ztp enable false
admin@XorPlus# commit |
Enable or disable ZTP via the ztp-config script included with PicOS. The following example disables ZTP using the ztp-config script run from the Linux shell:
admin@LEAF-A$sudo ztp-config
Please configure the default PicOS ZTP options:
(Press other key if no change)
[1] PicOS ZTP enabled * default
[2] PicOS ZTP disabled
Enter your choice (1,2):2
PicOS ZTP is disabled.
admin@LEAF-A$ |
Manually edit the PicOS configuration file picos_start.conf and change the value of the ztp_disable variable. The following snippet from the PicOS configuration file shows that ZTP has been disabled (ztp_disable=true).
admin@LEAF-A$more /etc/picos/picos_start.conf | grep ztp
ztp_disable=true |
       To enable ZTP, you need to set ztp_disable to false.
Copyright © 2024 Pica8 Inc. All Rights Reserved.