Data ONTAP® PowerShell Toolkit

Cmdlet: Get-NaDisk


NAME
Get-NaDisk

SYNOPSIS
Get disk status information from RAID.

SYNTAX
Get-NaDisk [[-Names] <String[]>] [-Controller <NaController>] [-WarningActio
n <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]


DESCRIPTION
Get disk status information from RAID. Only disks owned by the filer or its
partner are eligible for inclusion in the returned list. To obtain informa
tion about disks connected to the filer but not owned by the local filer or
its CFO partner, use the "Get-NaDiskOwner" API.


PARAMETERS
-Names <String[]>


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.Disk.DiskDetailInfo


NOTES


Category: disk
API: disk-list-info

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

C:\PS>Get-NaDisk


Get all disks.





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

C:\PS>Get-NaDisk 0a.24


Get disk named '0a.24'.


Aggregate : aggr1
Bay : 8
BlocksRead : 2062372984
BlocksWritten : 446158464
BrokenDetails :
BytesPerSector : 520
ChecksumCompatibility : zoned/block
CopyDestination :
CopyPercent :
DiskModel : X274_S10K7146F10
DiskType : FCAL
DiskUid : 20000018:628493E3:00000000:00000000:0000000
0:0
0000000:00000000:00000000:00000000:00000000
FirmwareRevision : NA07
GrownDefectListCount : 0
HostAdapter : 0a
Id : 1
IsDynamicallyQualified : False
IsOffline :
IsPrefailed : False
IsReplacing : False
IsZeroed :
Name : 0a.24
PhysicalBlocks : 280790184
PhysicalSpace : 143764574208
Plex : plex0
Pool : Pool0
Port : A
PortName : FC:A
PoweronHours : 21784
RaidGroup : rg0
RaidState : present
RaidType : data
RawDiskSectors : 280790184
ReconstructionPercent :
Rpm : 10000
ScrubCount : 612
ScrubLastDone : 26283
SecondaryName :
SecondaryPort :
SerialNumber : 3KS6650J000097311W0S
Shelf : 1
ShmTimeInterval : 31202586
UsedBlocks : 278528000
UsedSpace : 142606336000
VSeriesDetailInfo :
VendorId : NETAPP
Volume :
ZeroingPercent :
CopyPercentSpecified : False
IsOfflineSpecified : False
IsPrefailedSpecified : True
IsReplacingSpecified : True
IsZeroedSpecified : False
PoweronHoursSpecified : True
ReconstructionPercentSpecified : False
RpmSpecified : True
ZeroingPercentSpecified : False


-------------- Example 3 --------------

C:\PS>(get-nadisk 0a.*).Count


Get the number of disks on adapter 0a.


14



RELATED LINKS







 Data ONTAP® PowerShell Toolkit