< Back
Connect-iBMC
Post
NAME Connect-iBMC
SYNOPSIS
Connect to iBMC Servers and initialize sessions used by other cmdlets.
SYNTAX
Connect-iBMC [-Address] <String[]> [-Username] <String[]> [-Password] <Object[]> [-TrustCert] [<CommonParameters>]
Connect-iBMC [-Address] <String[]> [-Credential] <PSCredential[]> [-TrustCert] [<CommonParameters>]
DESCRIPTION
Initialize sessions for one or multiple iBMC servers and. This cmdlet has following parameters:
- Address - Holds the iBMC server IP/hostname.
- Username - Holds the iBMC server username.
- Password - Holds the iBMC server password.
- Credential - Holds the iBMC server Credential.
- TrustCert - Using this bypasses the server certificate authentication.
PARAMETERS
-Address <String[]>
IP address or Hostname of the iBMC server.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Username <String[]>
Username of iBMC account to access the iBMC server.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Password <Object[]>
Password of iBMC account to access the iBMC server.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential[]>
PowerShell PSCredential object having username and passwword of iBMC account to access the iBMC.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-TrustCert [<SwitchParameter>]
If this switch parameter is present then server certificate authentication is disabled for this iBMC session.
If not present, server certificate is enabled by default.
Required? false
Position? named
Default value False
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
RedfishSession[]
Returns the created RedfishSession if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $sessions = Connect-iBMC -Address 10.1.1.2 -Credential $credential
PS C:\\> $sessions
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "10.1.1.2,5,8" -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2-10 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Username user1,user2 -Password password1,password2
PS C:\\> $sessions
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 2018::2018 -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to a bmc server using ipv6
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "[2018::2018]:8080" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to a bmc server using ipv6 and port
-------------------------- EXAMPLE 9 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "2018::2018,201A" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to multiple bmc server using "," seperated ipv6 addresses
-------------------------- EXAMPLE 10 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "2018::2018-201A" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to multiple bmc server using "-" seperated ipv6 addresses
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect
SYNOPSIS
Connect to iBMC Servers and initialize sessions used by other cmdlets.
SYNTAX
Connect-iBMC [-Address] <String[]> [-Username] <String[]> [-Password] <Object[]> [-TrustCert] [<CommonParameters>]
Connect-iBMC [-Address] <String[]> [-Credential] <PSCredential[]> [-TrustCert] [<CommonParameters>]
DESCRIPTION
Initialize sessions for one or multiple iBMC servers and. This cmdlet has following parameters:
- Address - Holds the iBMC server IP/hostname.
- Username - Holds the iBMC server username.
- Password - Holds the iBMC server password.
- Credential - Holds the iBMC server Credential.
- TrustCert - Using this bypasses the server certificate authentication.
PARAMETERS
-Address <String[]>
IP address or Hostname of the iBMC server.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Username <String[]>
Username of iBMC account to access the iBMC server.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Password <Object[]>
Password of iBMC account to access the iBMC server.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential[]>
PowerShell PSCredential object having username and passwword of iBMC account to access the iBMC.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-TrustCert [<SwitchParameter>]
If this switch parameter is present then server certificate authentication is disabled for this iBMC session.
If not present, server certificate is enabled by default.
Required? false
Position? named
Default value False
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
RedfishSession[]
Returns the created RedfishSession if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $sessions = Connect-iBMC -Address 10.1.1.2 -Credential $credential
PS C:\\> $sessions
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "10.1.1.2,5,8" -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2-10 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 5 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Username root -Password password
PS C:\\> $sessions
-------------------------- EXAMPLE 6 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 10.1.1.2,10.1.1.3 -Username user1,user2 -Password password1,password2
PS C:\\> $sessions
-------------------------- EXAMPLE 7 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address 2018::2018 -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to a bmc server using ipv6
-------------------------- EXAMPLE 8 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "[2018::2018]:8080" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to a bmc server using ipv6 and port
-------------------------- EXAMPLE 9 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "2018::2018,201A" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to multiple bmc server using "," seperated ipv6 addresses
-------------------------- EXAMPLE 10 --------------------------
PS C:\\>$sessions = Connect-iBMC -Address "2018::2018-201A" -Username root -Password password
PS C:\\> $sessions
This example shows how to connect to multiple bmc server using "-" seperated ipv6 addresses
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCSessionTimeout
Set-iBMCSessionTimeout
Connect-iBMC
Disconnect-iBMC
Test-iBMCConnect