NAME
Connect-DcsiSCSITarget
SYNOPSIS
Creates an iSCSI session connection.
SYNTAX
Connect-DcsiSCSITarget -InitiatorPort <Object> [ -Server <String> ] -Address <String> [ -Portnumber <UInt16> ] [ -Connection <String> ] [ -PipelineVariable <String> ]
Connect-DcsiSCSITarget -InitiatorPort <Object> [ -Server <String> ] -Address <String> [ -Portnumber <UInt16> ] [ -UseChap] [ -UseMutualAuthentication] [ -InitiatorPortal <String> ] [ -UserName <String> ] -Password <String> [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Creates an iSCSI session connection. Adds an iSCSI target portal to the Microsoft iSCSI Initiator port of a server and logs in. Authentication can be enabled. If different types of authentication are required for different targets, the cmdlet must be run individually for each authentication type. After invoking this cmdlet, when the target is logged out, the target will disappear and in order to log in the target again, this cmdlet would have to be invoked again.
PARAMETERS
- -InitiatorPort<Object>
- ScsiPortData object, name, or ID that identifies the Microsoft iSCSI Initiator port. In order to uniquely identify a port by name, the server must be specified.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Server<String>
- Computer name or ID of the server. Computer names must be unique or the names must be fully qualified.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Address<String>
- Address of an iSCSI target port. The address can be a valid server name or IP address.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Portnumber<UInt16>
- The TCP port number used for the connection. If not specified, 3260 will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection will be used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -UseChap<SwitchParameter>
- Specify the UseChap parameter to enable authentication.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -UseMutualAuthentication<SwitchParameter>
- Specify the UseMutualAuthentication parameter to enable mutual authentication. If UseMutualAuthentication is specified, the parameter UseChap must also be specified.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -InitiatorPortal<String>
- IP address that identifies the Microsoft iSCSI Initiator port.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -UserName<String>
- User name assigned to the target port.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Password<String>
- The target secret for the iSCSI target port. Secret is 12-16 characters. Use caution when entering the secret, it will appear as typed on the display.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
ScsiPortData : Object that identifies the initiator port.
OUTPUTS
iSCSISessionData : Object that identifies and describes the session.
NOTES
Also see Disconnect-DcsiSCSITarget, Get-DcsPort, Get-DcsPortConnection, Set-DcsiSCSIInitiatorSecret, Set-DcsServerPortProperties.
EXAMPLES
Connect-DcsiSCSITarget -InitiatorPort "Microsoft iSCSI Initiator" -Server SSV1 -Address 13.0.0.36 -UseChap -UserName CHAPhandshk -Password 111111111111
Creates an iSCSI session between the initiator port named "Microsoft iSCSI Initiator" on the server named "SSV1" and the iSCSI target port with the IP address of 13.0.0.36 on the server named "SSV2". CHAP authentication is used for the session with a user name of "CHAPhandshk" and password of "111111111111".
PortADescriptor | : | |
PortBDescriptor | : | DataCore.Executive.iSCSI.SessionDescriptor |
Target | : | |
Connected | : | False |
PortAId | : | FD622C7A-1065-4F2B-97E5-11813DA5AAF5:MAC:00-15-5D-11-E9-22 |
PortBId | : | 74EDD1B3-6682-46A7-943C-2F0168CEC699:MSFT-05-1991 |
Id | : | 03351a78d471484c8c6815506822255c |
Caption | : | Server iSCSI Port 2 on SSV2 to Microsoft iSCSI Initiator on SSV1 |
ExtendedCaption | : | Server iSCSI Port 2 on SSV2 to Microsoft iSCSI Initiator on SSV1 |
Internal | : | False |