ARISTA ZTP

Canceling ZTP:

localhost(config)#zerotouch cancel

Disabling ZTP:

localhost#zerotouch disable

Enabling ZTP:

  1. Delete the startup-config
  2. Edit /mnt/flash/zerotouch-config (put DISABLE=False there)
rm startup-config
echo "DISABLE=False" > zerotouch-config

BOOTING WITH ZTP

By default, if there is no startup-config, switch will put all interfaces in no switchport mode and sends out DHCP queries.

DHCP server configuration for ZTP:

host Arista1 {
      option dhcp-client-identifier 00:1c:73:08:80:ae;
      fixed-address 192.168.1.170;
      option bootfile-name "http://example.com/Arista/Arista1-ZTP";
      }

Arista1-ZTP can be either a startup-config (in this case switch will apply config and reboot) or it can be a script. First line of the file specifies if this is a config or a script. For script, first line will contain a path to the shell

Example of script:

#!/usr/bin/Cli -p2
enable
copy http://www.example.com/Arista/Arista1-startup flash:startup-config
copy http://www.example.com/Arista/EOS-4.9.3.swi flash:
config
boot system flash:EOS-4.9.3.swi