Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Get-NaLunMapByInitiator


NAME
Get-NaLunMapByInitiator

SYNOPSIS
List all the luns mapped to an initiator

SYNTAX
Get-NaLunMapByInitiator [-Initiator] <String> [-Controller <NaController>] [
<CommonParameters>]


DESCRIPTION
List all the luns mapped to an initiator


PARAMETERS
-Initiator <String>
Initiator to check

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

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

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.Types.Lun.LunMapInfo


NOTES


Category: lun
API: lun-initiator-list-map-info

-------------- Example 1 --------------

C:\PS>Get-NaLunMapByInitiator iqn.1991-05.com.microsoft:x3550rre8.rtprre.tes
tdomain


Get all LUNs on this controller mapped to the specified initiator on server
'x3550rre8'.


InitiatorGroup LunId Path
-------------- ----- ----
viaRPC.iqn.1991-05.com.... 1 /vol/vol2/lun1
viaRPC.iqn.1991-05.com.... 0 /vol/vol2/quorum
viaRPC.iqn.1991-05.com.... 3 /vol/vol2/lun5
viaRPC.iqn.1991-05.com.... 4 /vol/vol2/lun3
viaRPC.iqn.1991-05.com.... 5 /vol/vol2/metadata
viaRPC.iqn.1991-05.com.... 8 /vol/vol2/lun7b
viaRPC.iqn.1991-05.com.... 7 /vol/vol2/lun3b
viaRPC.iqn.1991-05.com.... 6 /vol/vol2/lun6
viaRPC.iqn.1991-05.com.... 10 /vol/vol2/{6e8dbad4-89
...
viaRPC.iqn.1991-05.com.... 2 /vol/vol2/lun2


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

C:\PS>Get-NaLun /vol/vol2/lun2 | Get-NaLunMap | ForEach-Object {$_.Initiator
s} | Get-NaLunMapByInitiator


For a given LUN, get the initiator(s) it is mapped to and then list all othe
r luns on this controller that are mapped to the same initiators.


InitiatorGroup LunId Path
-------------- ----- ----
viaRPC.iqn.1991-05.com.... 2 /vol/vol2/lun2
viaRPC.iqn.1991-05.com.... 1 /vol/vol2/lun1
viaRPC.iqn.1991-05.com.... 3 /vol/vol2/lun5
viaRPC.iqn.1991-05.com.... 4 /vol/vol2/metadata
viaRPC.iqn.1991-05.com.... 6 /vol/vol2/lun7b
viaRPC.iqn.1991-05.com.... 9 /vol/vol2/lun6
viaRPC.iqn.1991-05.com.... 1 /vol/vol2/lun1
viaRPC.iqn.1991-05.com.... 0 /vol/vol2/quorum
viaRPC.iqn.1991-05.com.... 3 /vol/vol2/lun5
viaRPC.iqn.1991-05.com.... 4 /vol/vol2/lun3
viaRPC.iqn.1991-05.com.... 5 /vol/vol2/metadata
viaRPC.iqn.1991-05.com.... 8 /vol/vol2/lun7b
viaRPC.iqn.1991-05.com.... 7 /vol/vol2/lun3b
viaRPC.iqn.1991-05.com.... 6 /vol/vol2/lun6
viaRPC.iqn.1991-05.com.... 10 /vol/vol2/{6e8dbad4-89
...
viaRPC.iqn.1991-05.com.... 2 /vol/vol2/lun2



RELATED LINKS
Get-NaLun
Get-NaLunMap







 Data ONTAP® PowerShell Toolkit