|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaLunMapByInitiator
NAME
Get-NaLunMapByInitiator
SYNOPSIS
List all the luns mapped to an initiator
SYNTAX
Get-NaLunMapByInitiator [-Initiator] <String> [-Controller <NaController>] [
-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParam
eters>]
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 DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
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
NetApp.Ontapi.Filer.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
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|