PowerArubaSW is only for Procuvre switch (like 2930F), what it the type of device ?
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
Original Message:
Sent: Aug 14, 2025 11:10 AM
From: tomcon
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
Hi, I am in community almost new.
I downloaded pw module and imported properly PowerArubaSW. I have an issue, with rest API, when trying to connect Aruba switches either AOS 2930F or 6100. It prompts me for and password, but then. Can you herlp me, to understand the error?
PS C:\Users\icz170063> Connect-ArubaSW 10.14.60.72 -SkipCertificateCheck
WARNING: The Switch API sends an error message:
WARNING: Error description (code): Bad Request (400)
WARNING: Error details: 400 Bad RequestBad RequestAccess is unauthorized.
Unable to connect
At C:\Users\icz170063\Documents\WindowsPowerShell\Modules\PowerArubaSW\1.0.0\Public\Connection.ps1:157 char:13
+ throw "Unable to connect"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to connect:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to connect
Original Message:
Sent: Jan 05, 2024 04:00 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
after a quick check of release note :
16.10.0011 253965 YA/YB Symptom: The switch closes the REST connection
when the request is made from a Windows client.
Scenario: This issue occurred when a REST
request was sent from PowerShell on a Windows
client.
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Jan 04, 2024 05:46 AM
From: Ezio
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
yep YA.16.11 worked - didn't expect HP to release a bug :) (YA.16.10 was the latest firmware I had)
thank you for your assistance and thanks again for the module - good work
Original Message:
Sent: Jan 03, 2024 11:53 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
what log do you have httponly?
i try with firmware YA.16.11.0007 and work for me (with PS 5 and PS7) can you try 16.11 ?
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Jan 03, 2024 09:38 AM
From: Ezio
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
the HTTP is enable ? (only for try), you can test with -httpOnly
I had already tried -httponly - just tried again and same issue. I also disabled SSL and same error (SSL is re-enabled as below)
Web Management - Server Configuration
HTTP Access : Enabled
HTTPS Access : Enabled
SSL Port : 443
Idle Timeout : 600 seconds
Management URL : http://h17007.www1.hpe.com/device_help
Support URL : http://www.arubanetworks.com/products/networking/
User Interface : Improved
can you regenerate certificate on the switch
I did do this before posting, I even defaulted the switch and set back up
if I switch to secondary ROM with old version of firmware I can connect.
using the new firmware on primary ROM I get these errors above
Original Message:
Sent: Jan 03, 2024 09:25 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
the HTTP is enable ? (only for try), you can test with -httpOnly
can you regenerate certificate on the switch ?
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Jan 03, 2024 09:08 AM
From: Ezio
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
can you enable debug rest on switch ?
amp-server: AMP server configuration is disabled due to first configuration.
crypto: Certificate used by http-ssl application is not yet valid.
try also with -verbose ?
VERBOSE: POST https://xxx.xxx.xxx.xxx/rest/v3/login-sessions with -1-byte payload
I understand the cert part isn't working but on the old version I could connect with -skipcerticatecheck
Original Message:
Sent: Jan 03, 2024 08:35 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
Strange,
can you enable debug rest on switch ?
try also with -verbose ?
do you have also check the certificat (show web-management)
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Jan 03, 2024 06:12 AM
From: Ezio
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
What powershell release?
v5 (on win10)
What do you are using for connection ? admin/manager account ? or RBAC (RADIUS/TACACS ?)
local manager account
Original Message:
Sent: Jan 03, 2024 05:13 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
Hi,
What powershell release?
What do you are using for connection ? admin/manager account ? or RBAC (RADIUS/TACACS ?)
------------------------------
PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...
PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)
PowerArubaCL: Powershell Module to use Aruba Central
PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..
ACEP / ACMX #107 / ACDX #1281
Original Message:
Sent: Jan 03, 2024 04:05 AM
From: Ezio
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
just what I was looking for - thank you
Setting this up for non-technical staff is working great however when I updated the switch from YA.16.09.0015 to YA.16.10.0009 I get failed to connect message below
============================================================================================================
Unable to connect
At C:\Program Files\WindowsPowerShell\Modules\PowerArubaSW\1.0.0\Public\Connection.ps1:157 char:13
+ throw "Unable to connect"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to connect:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to connect
============================================================================================================
I'm using -SkipCertificateCheck which works fine on YA.16.09. not been able to get this working without skipping
Original Message:
Sent: Sep 11, 2018 05:31 AM
From: alagoutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
Hi,
I have been working for several months on a Powershell module that uses the ArubaOS Switch REST API.
This module is available on psgallery(.com) : https://www.powershellgallery.com/packages/PowerArubaSW/
Actually, we support to connect to HTTPS or HTTP
and configure the following feature :
- Vlans
- Vlans-Ports (affect a vlan tagged/untagged/forbidden to a port/interface)
- Rest info (get api-version, timeout...)
- LLDP
- LACP
- Led Locator
- ...
it is very easy to use (and install)
Launch powershell command line and launch following command for install
Install-Module PowerArubaSW
for load the module
Import-Module PowerArubaSW
Connect to your switch
Connect-ArubaSW 192.0.2.1
You get a prompt to ask credential
Need to have enable web-managemnt ssl and a user/password
for example to get all vlan use
Get-ArubaSWVlan
You can get the list of command available via
Get-Command -Module PowerArubaSW
and for get help (and example about a command for example Get-ArubaSWVlans)
Get-Help Get-ArubaSWVlans -Full
More documentation, example is available on https://github.com/PowerAruba/PowerArubaSW and you can also report issue/enhance !