Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaLun


NAME
Get-NaLun

SYNOPSIS
Get the status of the given LUN, or all LUNs.

SYNTAX
Get-NaLun [[-Path] <String>] [-Controller <NaController>] [-WarningAction <A
ctionPreference>] [-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Get the status (size, online/offline state, shared state, comment string, se
rial number, LUN mapping) of the given LUN, or all LUNs.


PARAMETERS
-Path <String>
Path of LUN. If specified, only the information of that LUN is returned
. If not specified, then information of all LUNs are returned. Wildcar
ds are supported.

Required? false
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.LunInfo


NOTES


Category: lun
API:

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

C:\PS>Get-NaLun


Get all LUNs.





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

C:\PS>Get-NaLun /vol/vol2/*


Get all LUNs on volume 'vol2'.


BackingSnapshot :
Mapped : False
MultiprotocolType : windows_2008
Online : False
Path : /vol/vol2/test
ReadOnly : False
ShareState : none
Size : 1077511680
Uuid : 49a0f180-4614-11de-88b0-00a09806c227

BackingSnapshot :
Mapped : True
MultiprotocolType : windows_gpt
Online : True
Path : /vol/vol2/lun6
ReadOnly : False
ShareState : none
Size : 21476206080
Uuid : 372ecd7c-08ea-11de-b806-00a09806c227



RELATED LINKS







 Data ONTAP® PowerShell Toolkit