Skip to content

aruba/central-python-workflows

Repository files navigation

central-python-workflows

This repository contains Python-based workflows, code samples, and where applicable, Postman collections to help automate and integrate with New Central and HPE GreenLake Platform (GLP) APIs. It leverages the pycentral SDK to interact with Central’s APIs and extensibility features.

Each folder represents a self-contained workflow. Inside each, you’ll find:

  • A dedicated README.md explaining the purpose and usage of the workflow
  • All required scripts, data files (like CSVs), and Postman collections (if applicable)
  • Clear setup and execution instructions

Note

If you’re looking for Classic Central workflows, please click here

New Central Workflows

Caution

The workflows in this section use pre-release versions of the pycentral library and are intended primarily for New Central, currently in Public Preview. Please note:

  • APIs and SDK behavior may change as the new Central platform evolves with each release.
  • Some workflows may break or require updates with future SDK changes.\

We will make every effort to keep these workflows up to date. If you encounter any issues or inconsistencies, please open an issue in this repository.

This script automates onboarding of devices in HPE Aruba Networking Central to make them ready for configuration via New Central. It simplifies and sequences key onboarding steps needed after a device is assigned & subscribed to the Central application.

  • Assign Device to Site
    • Site Creation(Optional)
  • Set Device Persona
  • Assign Device to Device Group
    • Device Group Creation (Optional)
  • Set Device Name (Optional)

This workflow can:

  • Creates config profiles such as roles and policies in New Central
  • Creates SSID configurations with associated roles
  • Modify policy group and create overlay WLAN profiles
  • Assigns these configurations to the appropriate scopes (global or group)
  • Associates devices with sites based on the inventory configuration

This script simplifies the visualization of the configuration hierarchy in New Central via APIs. It retrieves and displays hierarchical data such as:

  • Global
  • Site collections
  • Sites
  • Devices You’ll get this data in a terminal-friendly summary as well as in a CSV file, with key attributes like scope-id and persona which are required for configuration and monitoring APIs.

This script can help you rename the hostname of devices. You can provide a CSV file containing device serial numbers and their corresponding new hostnames. The script reads this file and updates each device's hostname in Central accordingly, automating the renaming process at scale.

HPE Greenlake Platform Workflows

This workflow can automate the following onboarding steps:

  • Assign Devices to Application
  • Apply Subscription to Devices Along with the Python script, there is also a Postman collection for the same workflow which is available in the folder.

Classic Central Workflows

About

Python workflows and examples for HPE Aruba Central

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

Languages