Zero Touch Provisioning for Cisco devices.
Detect and configure new Cisco devices in your network.
Use GUI or API endpoint in Prisco to recover your devices to the last backed up config.
Prisco will intercept devices that is doing ZTP-boot, using DHCP and TFPT to detect and configure "new" devices, devices booting without config. Devices available for recovery will be present in a GUI which you can select. Prisco will use the latest backup to configure the device with.
Prisco is currently built for Cisco switches but can be extended to support any type of device that does TFTP boot.
Prisco makes a backup of all Cisco switches added to the Ansible group_vars
file which is later used to recover switches.
If you want to setup a new switch (not backed up by Prisco) you can add it to the group_vars
file and add the configuration manually to CISCO_BACKUPS/{IP_ADDRESS}.conf
.
When entering the GUI or calling the /api/leases endpoint Prisco looks at the dhcp.leases file in the DHCP container to get the current switches thats in ZTP-mode.
If you choose one of the switches in ZTP-mode Prisco will ask for the hostname and IP address it should configure into the Switch. After the information is provided the process of "restoring" the switch will start by Prisco sending the configuration from the CISCO_BACKUP
folder to the switch and schedule a reboot with the configuration as startup-config.
Device discovered:
Initiate recovery:
Enter configuration:
Recovery in progress:
Ansible
for backup of all switches configured in the group_vars
.Ansible
to configure switches configured via API or GUI.Hosting of Basic Configuration to give Prisco access to the switch.
ISC DHCP acting as first interaction with the world for switches. It will point the switch to the configuration file in the TFTP server.
The easiest way to run Prisco is with docker-compose. First edit files on the host, they will later be used by the containers.
./start.sh
bash script and fill out the information needed.WEB/backend/ansible/ztp_inventory.yml
and add the DHCP range that the ZTP switches will be given from the DHCP server container under all
->children
->ztp_switches
->hosts
:all_switches
. This will be used by the WEB container to backup the configuration. The path is all
->children
->all_switches
->hosts
.WEB/backend/ansible/group_vars/all_switches.yml
docker-compose build; docker-compose up -d
Running .start.sh
:
Spinning up the needed containers:
Make sure to have the following ports open on the host running the containers:
You can use the Prisco API to integrate Prisco into your solution. The Prisco API can be explored interactively at <https:///docs>
Owner
Contributors
Categories
ToolsNetworkingProgramming Languages
VueLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community