< Back

Connect-ArubaSW

Sat Jan 18, 2020 8:35 pm

NAME Connect-ArubaSW



SYNOPSIS

Connect to an ArubaOS Switches (Provision)





SYNTAX

Connect-ArubaSW [-Server] <String> [-Username <String>] [-Password <SecureString>] [-Credentials <PSCredential>]

[-noverbose] [-httpOnly] [-SkipCertificateCheck] [-port <Int32>] [-DefaultConnection <Boolean>]

[<CommonParameters>]





DESCRIPTION

Connect to an ArubaOS Switches

Support connection to HTTPS (default) or HTTP





PARAMETERS

-Server <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Username <String>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Password <SecureString>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credentials <PSCredential>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-noverbose [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-httpOnly [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-SkipCertificateCheck [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-port <Int32>



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-DefaultConnection <Boolean>



Required? false

Position? named

Default value True

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:\\>Connect-ArubaSW -Server 192.0.2.1



Connect to an ArubaOS Switch using HTTPS with IP 192.0.2.1 using (Get-)credential









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



PS C:\\>Connect-ArubaSW -Server 192.0.2.1 -SkipCertificateCheck



Connect to an ArubaOS Switch using HTTPS (without check certificate validation) with IP 192.0.2.1 using

(Get-)credential









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



PS C:\\>Connect-ArubaSW -Server 192.0.2.1 -httpOnly



Connect to an ArubaOS Switch using HTTP (unsecure !) with IP 192.0.2.1 using (Get-)credential









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Connect-ArubaSW -Server 192.0.2.1 -port 4443



Connect to an ArubaOS Switch using HTTPS (with port 4443) with IP 192.0.2.1 using (Get-)credential









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>$cred = get-credential



Connect-ArubaSW -Server 192.0.2.1 -credential $cred



Connect to an ArubaOS Switch with IP 192.0.2.1 and passing (Get-)credential









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>$mysecpassword = ConvertTo-SecureString aruba -AsPlainText -Force



Connect-ArubaSW -Server 192.0.2.1 -Username manager -Password $mysecpassword



Connect to an ArubaOS Switch with IP 192.0.2.1 using Username and Password









-------------------------- EXAMPLE 7 --------------------------



PS C:\\>$sw1 = Connect-ArubaSW -Server 192.0.2.1



Connect to an ArubaOS Switch with IP 192.0.2.1 and store connection info to $sw1 variable









-------------------------- EXAMPLE 8 --------------------------



PS C:\\>$sw2 = Connect-ArubaSW -Server 192.0.2.1 -DefaultConnection:$false



Connect to an ArubaOS Switch with IP 192.0.2.1 and store connection info to $sw2 variable

and don't store connection on global ($DefaultArubaSWConnection) variable











RELATED LINKS