PowerAruba / PowerArubaSW

PowerShell module to manage ArubaOS switches
Apache License 2.0
42 stars 9 forks source link

Bulk Editing Aruba Switches #133

Open bluecraank opened 2 years ago

bluecraank commented 2 years ago

Hello, this is a really nice module, but it would be even nicer if it is possible to edit multiple switches at the same time. for example:

Adding new vlan to every switch is currently very time wasting (connecting to each switch and adding the vlan)

Solution: $sw1 = ... $sw2 $sw3 $sw4 ....

Add-ArubaSWVlan -bulk ....

Is it possible?

alagoutte commented 2 years ago

Hi Bluecrrank,

There is already Multi Connection support https://github.com/PowerAruba/PowerArubaSW#multiconnection

After you need to make a loop with Add-ArubaSWVlan you can try (not tested...)

$sw = @()
$sw += Connect-ArubaSW....
$sw += Connect-ArubaSW...

foreach ($s in $sw){ 
    Add-ArubaSWVlan -vlan XX -connection $s
}
....