Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Get-NaHostIscsiTarget


NAME
Get-NaHostIscsiTarget

SYNOPSIS
Get the targets discovered by the iSCSI Initiator.

SYNTAX
Get-NaHostIscsiTarget [-IpAddress <String>] [-Port <Int32>] [[-TargetName] <
String>] [<CommonParameters>]


DESCRIPTION
Get the targets discovered by the iSCSI Initiator.


PARAMETERS
-IpAddress <String>
Ip Address of a target portal used to discover this target. If omitted,
all discovered targets are retrieved.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Port <Int32>
The port that was used to discover this target. Default is 3260.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-TargetName <String>
The name of the target to get. If omitted, all targets are returned.

Required? false
Position? 1
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>Get-NaHostIscsiTarget


Get the targets that have been discovered by the iSCSI Initiator.


DiscoveryMechanism : SendTargets:*10.61.169.28 0003260 Root\ISCSIPRT\0000_0
InitiatorName : Root\ISCSIPRT\0000_0
TargetName : iqn.1992-08.com.netapp:sn.135107386
IsConnected : True

DiscoveryMechanism : SendTargets:*10.61.169.29 0003260 Root\ISCSIPRT\0000_0
InitiatorName : Root\ISCSIPRT\0000_0
TargetName : iqn.1992-08.com.netapp:sn.135107303
IsConnected : True


-------------- Example 2 --------------

C:\PS>Get-NaHostIscsiTarget 10.61.169.29


Get the targets discovered on 10.61.169.29.


DiscoveryMechanism : SendTargets:*10.61.169.29 0003260 Root\ISCSIPRT\0000_0
InitiatorName : Root\ISCSIPRT\0000_0
TargetName : iqn.1992-08.com.netapp:sn.135107303
IsConnected : True



RELATED LINKS
Connect-NaHostIscsiTarget
Disconnect-NaHostIscsiTarget







 Data ONTAP® PowerShell Toolkit