Wired Intelligent Edge (Campus Switching and Routing)

MVP Expert

PowerArubaCX : a powershell module for use ArubaCX REST API



I have been working for several months on a Powershell module that uses the ArubaCX REST API.


This module is available on psgallery(.com) : https://www.powershellgallery.com/packages/PowerArubaCX/


Actually, we support to connect to HTTPS using login/passwrd

and get the following feature :

  • System
  • Ports
  • Vlans
  • LLDP Neighbor
  • ...

it is very easy to use (and install)


Launch powershell command line and launch following command for install


Install-Module PowerArubaCX

for load the module

Import-Module PowerArubaCX

Connect to your Aruba CX


You need to use -SkipCertificateCheck if the certificate is not valid


for example to get system info


Like the API, it is possible to select what need to display (configuration, status, statistics) using -selector parameter


for example to get system info statistics

Get-ArubaCXSystem -selector statistics

You can also select what you want to display using -attributes parameter


For example to display hostname and dns servers of system

Get-ArubaCXSystem -attributes hostname,dns_servers

for Ports or Interfaces, it is also possible to choice the depth (from 0 to 3)


Get-ArubaCXPorts -depth 1


You can get the list of command available via

Get-Command -Module PowerArubaCX


 and for get help (and example about a command for example ArubaCXLLDPNeighbor)

Get-Help Get-ArubaCXLLDPNeighbor -Full

It is already compatible with PowerShell 6 (Core) and macOS/Linux !


More documentation, example is available on https://github.com/PowerAruba/PowerArubaCX and you can also report issue/enhance !


PowerArubaSW: Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP... More info

PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...) More info

PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)

PowerArubaIAP: Powershell Module to use Aruba Instant AP

ACMP 6.4 / ACMX #107 / ACCP 6.5
Search Airheads
Showing results for 
Search instead for 
Did you mean: