This workflow allows users to provision & deploy device(s) in Aruba Central using a Python script that utilizes the PyCentral library. Once devices are assigned Aruba Central subscriptions, they need to be deployed to a location. This script automates that workflow.
The script creates a group on Aruba Central. A group is the primary configuration element that functions as a container for device management, monitoring, and maintenance. The group that the script creates is a CLI-based configuration template group
After the group is created it has to be provided with configuration. The script uploads template files that hold CLI-based configuration. The script allows each device type(for eg. AP, CX-Switch, etc.) to have one configuration file.
After the group is configured, devices can be moved into it. These devices will get the configuration as defined in the group.
While groups handle configuration, a site in Aruba Central refers to a physical location where a set of devices are installed. The script creates a site to indicate where the devices will be located.
After the site is created, the script then associates the devices to the site. This indicates to Aruba Central that the physical location of the devices.
As a user, you only need to input details in the following files before running the script
central_token.json-> This file has the Aruba Central API Gateway Base URL & Access Token. These details are needed for the script to connect with Aruba Central via REST APIs. Here is a sample file - central_token.json
workflow_variables.json-> This file has the following details relevant to the workflow-
- Group - Details of the group like name, attributes, & configuration file paths.
- Site - Details of the site like name & address
- Device - Serial number of device(s)
You can find the complete script & installation instructions for this workflow here.
Please check out other Central workflows utilizing PyCentral in central-python-workflows GitHub repository.
Updated 3 months ago