|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Add-NcHostIscsiTargetPortal
NAME
Add-NcHostIscsiTargetPortal
SYNOPSIS
Add a Data ONTAP storage controller to the iSCSI Initiator target portals.
This portal is used to discover iSCSI targets.
SYNTAX
Add-NcHostIscsiTargetPortal [[-Port] <Int32>] [[-InterfaceName] <String>] [-
VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
Add-NcHostIscsiTargetPortal [[-Port] <Int32>] [-Credential <PSCredential>] [
-MutualChap] [-RadiusVerify] [[-InterfaceName] <String>] [-VserverContext <S
tring>] [-Controller <NcController[]>] [<CommonParameters>]
Add-NcHostIscsiTargetPortal [[-Port] <Int32>] [-MutualChap] [-RadiusGenerate
] [-RadiusVerify] [[-InterfaceName] <String>] [-VserverContext <String>] [-C
ontroller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Add a Data ONTAP storage controller to the iSCSI Initiator target portals.
This portal is used to discover iSCSI targets.
PARAMETERS
-Port <Int32>
The port to use to connect to the iSCSI target portal. Default is 3260.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InterfaceName <String>
Name of the iSCSI data LIF to add as a target portal. If not supplied,
all iSCSI data LIFs on the vserver will be added.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
The CHAP username/password to use to authenticate the target portal. If
not specified, no authentication will be used when connecting to the ta
rget portal.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MutualChap
If specified, mutual CHAP will be used. To use mutual CHAP, an initiato
r CHAP secret must be set on the Configuration page of the iSCSI Initiat
or Properties.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RadiusVerify
If specified, use RADIUS to authenticate target credentials.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RadiusGenerate
If specified, use RADIUS to generate user authentication credentials.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Windows.IscsiTargetInfo
NOTES
Category: host
-------------- Example 1 --------------
C:\PS>Add-NcHostIscsiTargetPortal
Add the iSCSI data LIF of the current vserver to the iSCSI discovered portal
s list.
DiscoveryMechanism : SendTargets:*10.60.189.173 0003260 Root\ISCSIPRT\0000_0
InitiatorName : Root\ISCSIPRT\0000_0
TargetName : iqn.1992-08.com.netapp:sn.31df1198eddd11e0a7a0123478563
412:vs.5
IsConnected : False
WmiPath : \\WIN2K8DEVRRE0\Root\WMI:MSiSCSIInitiator_TargetClass.D
iscoveryMechanism="SendTargets:*10.60.189.1
73 0003260 Root\\ISCSIPRT\\0000_0 ",TargetName="iqn.199
2-08.com.netapp:sn.31df1198eddd11e0a7a01234
78563412:vs.5"
-------------- Example 2 --------------
C:\PS>Add-NcHostIscsiTargetPortal -Credential win2k8devrre0
Add the iSCSI data LIF of the current vserver to the list of discovered targ
et portals using CHAP authentication.
DiscoveryMechanism : SendTargets:*10.60.189.173 0003260 Root\ISCSIPRT\0000_0
InitiatorName : Root\ISCSIPRT\0000_0
TargetName : iqn.1992-08.com.netapp:sn.31df1198eddd11e0a7a0123478563
412:vs.5
IsConnected : False
WmiPath : \\WIN2K8DEVRRE0\Root\WMI:MSiSCSIInitiator_TargetClass.D
iscoveryMechanism="SendTargets:*10.60.189.1
73 0003260 Root\\ISCSIPRT\\0000_0 ",TargetName="iqn.199
2-08.com.netapp:sn.31df1198eddd11e0a7a01234
78563412:vs.5"
RELATED LINKS
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|