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?
-------------------------------------------
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