|
|
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>] [-Terse] [-Controller <NaController>] [<CommonP
arameters>]
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
-Terse
Specify to omit LUN descriptions. Use this when speed matters.
Required? false
Position? named
Default value
Accept pipeline input? false
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
NetApp.Ontapi.Filer.Lun810.LunInfo
NOTES
Category: lun
API: lun-list-info
-------------- Example 1 --------------
C:\PS>Get-NaLun
Get all LUNs.
BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : windows_2008
Online : False
Path : /vol/dunn_vol2_mirror/test
ReadOnly : True
SerialNumber : HnT7cJYCrJLL
ShareState : none
Size : 1077511680
Uuid : b4d097bc-a00e-11df-993d-00a09806c233
Comment : test
BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : image
Online : False
Path : /vol/dunn_vol2_mirror/lun100
ReadOnly : True
SerialNumber : HnT7cJYCrJLR
ShareState : none
Size : 2000683008
Uuid : b4d4684c-a00e-11df-993d-00a09806c233
-------------- Example 2 --------------
C:\PS>Get-NaLun /vol/vol2/*
Get all LUNs on volume 'vol2'.
BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : windows_gpt
Online : True
Path : /vol/vol2/lun2clone
ReadOnly : False
SerialNumber : HnSolJYl5sGE
ShareState : none
Size : 21476206080
Uuid : 3553348e-b613-11df-8ac9-00a09806c227
Comment :
BackingSnapshot : /vol/vol2/.snapshot/{1670257f-602b-4cf8-ac8a-b94
e21486c95}/lun5
BlockSize : 512
IsSpaceReservationEnabled : False
Mapped : True
MultiprotocolType : windows_gpt
Online : True
Path : /vol/vol2/{6e8dbad4-894b-413a-b9cc-3cbb4ae291a5}
.rws
ReadOnly : False
SerialNumber : HnSolJP0xmRN
ShareState : none
Size : 21476206080
Uuid : febcf734-2ffe-11de-88ac-00a09806c227
Comment :
RELATED LINKS
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|