|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcLun
NAME
Get-NcLun
SYNOPSIS
Get LUNs in a cluster or vserver.
SYNTAX
Get-NcLun [[-Path] <String[]>] [-Vserver <String[]>] [-Volume <String[]>] [-
Qtree <String[]>] [-VserverContext <String>] [-Attributes <LunInfo>] [-Contr
oller <NcController[]>] [<CommonParameters>]
Get-NcLun [-VserverContext <String>] -Template [-Controller <NcController[]>
] [<CommonParameters>]
Get-NcLun [-VserverContext <String>] -Query <LunInfo> [-Attributes <LunInfo>
] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get LUNs in a cluster or vserver.
PARAMETERS
-Path <String[]>
The path of one or more LUNs to get. Data ONTAP wildcards are permitted
.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Vserver <String[]>
Restrict results to the specified vserver(s). Data ONTAP wildcards are
permitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Volume <String[]>
Restrict results to the specified volume(s). Data ONTAP wildcards are p
ermitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Qtree <String[]>
Restrict results to the specified qtree(s). Data ONTAP wildcards are pe
rmitted.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
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
-Attributes <LunInfo>
For improved scalability in large clusters, provide a LunInfo object wit
h various fields set to indicate which fields to return on all objects.
Undesired fields should remain set to null. Use "Get-NcLun -Template"
to get the initially empty LunInfo object. If not specified, all data i
s returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty LunInfo object for use with advanced queries inv
olving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <LunInfo>
For advanced queries, provide a LunInfo object with various fields set t
o indicate which records to retrieve. Other fields should remain set to
null. Use "Get-NcLun -Template" to get the initially empty LunInfo obj
ect.
Required? true
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.C.Lun810.LunInfo
NOTES
Category: lun
API: lun-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcLun
List all LUNs.
Path Size Protocol
---- ---- --------
/vol/SharePoint_Fuji02_Data/Fuji02_Sh... 647.4 GB windows
/vol/test/lun1 10.0 MB vmware
/vol/test/lun2 10.0 MB image
/vol/test/lun3 10.0 MB image
/vol/test/lun4 10.0 MB image
/vol/test/lun5 39.2 MB hyper_v
/vol/SharePointCmode_Vol1/SPCmodeTest 90.0 GB windows_2008
/vol/VMSet1/fulltest 400.1 GB windows_2008
/vol/VMSet1/VM1 100.0 GB windows_gpt
/vol/VMSet1/VM2 100.0 GB windows_gpt
/vol/VMSet2/DataFabricManager 100.0 GB windows_gpt
/vol/VMSet2/SANScreen 100.0 GB windows_gpt
/vol/VMSet2/SANScreenData 120.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot1 100.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot4 100.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot5 100.0 GB windows_gpt
/vol/VMSet4/PowerShell1dot2 100.0 GB windows_gpt
/vol/VMSet4/PowerShell1dot3 100.0 GB windows_gpt
/vol/VMSet5/SCOMSCVMM 100.0 GB windows_gpt
/vol/VMSet5/SCOMSCVMMData 100.0 GB windows_gpt
/vol/VMSet5/SMISAgent 100.0 GB windows_gpt
/vol/VMSet6/Powershell1dot6 100.0 GB windows_gpt
/vol/VMSet6/SCOMSCVMM2012 100.0 GB windows_gpt
/vol/VMSet6/SCOMSCVMM2012Data 100.0 GB windows_gpt
/vol/exchange_vol_1/Exchange01 500.1 GB hyper_v
/vol/sqlvoldata1/SQLData_Lun_1 25.0 GB windows
/vol/sqlvoldata1/SQLData_Lun_2 120.0 GB hyper_v
/vol/sqlvoldata2/SQLData_Lun_3 120.0 GB hyper_v
/vol/SQL_fuji6_data2/SQLData2 50.0 GB hyper_v
-------------- Example 2 --------------
C:\PS>Get-NcLun /vol/VMSet*
List all LUNs with the specified name pattern.
Path Size Protocol
---- ---- --------
/vol/VMSet1/fulltest 400.1 GB windows_2008
/vol/VMSet1/VM1 100.0 GB windows_gpt
/vol/VMSet1/VM2 100.0 GB windows_gpt
/vol/VMSet2/DataFabricManager 100.0 GB windows_gpt
/vol/VMSet2/SANScreen 100.0 GB windows_gpt
/vol/VMSet2/SANScreenData 120.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot1 100.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot4 100.0 GB windows_gpt
/vol/VMSet3/PowerShell1dot5 100.0 GB windows_gpt
/vol/VMSet4/PowerShell1dot2 100.0 GB windows_gpt
/vol/VMSet4/PowerShell1dot3 100.0 GB windows_gpt
/vol/VMSet5/SCOMSCVMM 100.0 GB windows_gpt
/vol/VMSet5/SCOMSCVMMData 100.0 GB windows_gpt
/vol/VMSet5/SMISAgent 100.0 GB windows_gpt
/vol/VMSet6/Powershell1dot6 100.0 GB windows_gpt
/vol/VMSet6/SCOMSCVMM2012 100.0 GB windows_gpt
/vol/VMSet6/SCOMSCVMM2012Data 100.0 GB windows_gpt
RELATED LINKS
New-NcLun
Remove-NcLun
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|