Hi Matthias,
look good... what don't work ?
------------------------------
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: Aug 12, 2021 02:17 PM
From: Matthias Pohl
Subject: PowerArubaSW : a powershell module for use ArubaOS Switch REST API
Hi alagoutte,
thx for your work!
I´m searching for a soltution, how I could disable all ports which have a vlan id untagged assigned, but I can´t figure out how to implement this...
Any ideas? What I have is:
$IP = 10.20.252.10
Import-Module PowerArubaSW
Connect-ArubaSW $IP
$ports = Get-ArubaSWVlansPorts -vlan_id 300
foreach ($port in $ports) {
if ($port.port_mode -eq "POM_UNTAGGED") {
Send-ArubaSWCliBatch -command "port $port.port_id", "disable"
#Set-ArubaSWPort -port_id $port.port_id -is_port_enabled
}
}
------------------------------
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