< Back

Set-ArubaSWVlans

Sat Jan 18, 2020 8:40 pm

NAME Set-ArubaSWVlans



SYNOPSIS

Configure Vlan info on ArubaOS Switch (Provision)





SYNTAX

Set-ArubaSWVlans -id <Int32> [-name <String>] [-is_voice_enabled] [-is_jumbo_enabled] [-is_dsnoop_enabled]

[-connection <PSObject>] [<CommonParameters>]



Set-ArubaSWVlans [-vlan] <PSObject> [-name <String>] [-is_voice_enabled] [-is_jumbo_enabled] [-is_dsnoop_enabled]

[-connection <PSObject>] [<CommonParameters>]





DESCRIPTION

Configure vlan info (Id, Name, Voice, Snooping...)





PARAMETERS

-id <Int32>



Required? true

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-vlan <PSObject>

ValidateScript({ ValidateVlan $_ })]



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-name <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-is_voice_enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-is_jumbo_enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-is_dsnoop_enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-connection <PSObject>



Required? false

Position? named

Default value $DefaultArubaSWConnection

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$vlan = Get-ArubaSWVlans -id 85



PS C:\\>$vlan | Set-ArubaSWVlans -Name PowerArubaSW -is_voice_enabled -is_jumbo_enabled:$false



Configure vlan id 85 with name PowerArubaSW and enable voice vlan and disable jumbo









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-ArubaSWVlans -id 85 -Name PowerArubaSW2 -is_voice_enabled -is_dsnoop_enabled:$false



Configure vlan id 85 with name PowerArubaSW2 and enable voice vlan and disable dsnoop











RELATED LINKS