I tried to change the VLAN on one port, but I get:
PS C:\Users\mph> Set-ArubaSWVlansPorts -port_id 3 -port_mode Untagged -vlan_id 350
WARNUNG: The Switch API sends an error message:
WARNUNG: Error description (code): Not Found (404)
WARNUNG: Error details: {
"message": "Error 404: Not Found."
}
Unable to use switch API
In C:\Program Files\WindowsPowerShell\Modules\PowerArubaSW\0.8.0\Private\Webrequest.ps1:84 Zeichen:13
+ throw "Unable to use switch API"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to use switch API:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to use switch API
PS C:\Users\mph>
Any ideas?
------------------------------
Matthias Pohl
------------------------------
Original Message:
Sent: May 11, 2019 02:02 AM
From: Alexis La Goutte
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
a new release is available (0.8.0)
What new ?
14 new cmdlets !
For Trunk, STP, PoE, IP Address (Get only)...
There is also the support of AnyCli and cliBatch
For example
Get-ArubaSWCli -cmd "show running"
and one of major feature of this release it is the support of multi-connection. it is possible to connect to multiple switch on same time using -connection parameter
for example
$sw1 = Connect-ArubaSW 192.168.0.1$sw2 = Connect-ArubaSW 192.168.0.2
After for get vlans
Get-ArubaSWVlans -connection $sw1Get-ArubaSWVlans -connection $sw2
More info => https://github.com/PowerAruba/PowerArubaSW/releases/tag/v0.8.0