< Back

Set-ArubaSWPort

Sat Jan 18, 2020 8:39 pm

NAME Set-ArubaSWPort



SYNOPSIS

Configure Port information





SYNTAX

Set-ArubaSWPort -port_id <String> [-name <String>] [-is_port_enabled] [-config_mode <String>]

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



Set-ArubaSWPort [-port] <PSObject> [-name <String>] [-is_port_enabled] [-config_mode <String>]

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





DESCRIPTION

Configurate Port Information (Status, Name, Mode...)





PARAMETERS

-port_id <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-port <PSObject>

ValidateScript({ Validateport $_ })]



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_port_enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-config_mode <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-is_flow_control_enabled [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-is_dsnoop_port_trusted [<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:\\>$port = Get-ArubaSWPort -port_id 3



PS C:\\>$port | Set-ArubaSWPort -is_port_enabled -name PowerArubaSW-Port



Enable the port 3 and set name/description to PowerArubaSW-Port









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



PS C:\\>Set-ArubaSWPort -port_id 3 -is_flow_control_enabled:$false -is_dsnoop_port_trusted:$false



Disable the flow control and DHCP Snooping Port Trusted on port_id 3









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>$port = Get-ArubaSWPort -port_id 3



PS C:\\>$port | Set-ArubaSWPort -config_mode PCM_100HDX



Configure port 3 to Mode 100 HDX











RELATED LINKS