Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Get-NcDisk


NAME
Get-NcDisk

SYNOPSIS
Get disk information about one or more disks.

SYNTAX
Get-NcDisk [[-Name] <String[]>] [-VserverContext <String>] [-Attributes <Sto
rageDiskInfo>] [-Controller <NcController[]>] [<CommonParameters>]

Get-NcDisk [-VserverContext <String>] -Template [-Fill] [-Controller <NcCont
roller[]>] [<CommonParameters>]

Get-NcDisk [-VserverContext <String>] -Query <StorageDiskInfo> [-Attributes
<StorageDiskInfo>] [-Controller <NcController[]>] [<CommonParameters>]


DESCRIPTION
Get disk information about one or more disks.


PARAMETERS
-Name <String[]>
The name of one or more disks to get. Data ONTAP wildcards are permitte
d.

Required? false
Position? 1
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 <StorageDiskInfo>
For improved scalability in large clusters, provide a StorageDiskInfo ob
ject with various fields set to indicate which fields to return on all o
bjects. Undesired fields should remain set to null. Use "Get-NcDisk -T
emplate" to get the initially empty StorageDiskInfo object. If not spec
ified, all data is 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 StorageDiskInfo object for use with advanced que
ries involving the Query attribute.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Fill
Specify when using the Template parameter to recursively fill in all obj
ect types.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Query <StorageDiskInfo>
For advanced queries, provide a StorageDiskInfo object with various fiel
ds set to indicate which records to retrieve. Other fields should remai
n set to null. Use "Get-NcDisk -Template" to get the initially empty St
orageDiskInfo object.

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.StorageDisk810.StorageDiskInfo


NOTES


Category: disk
API: storage-disk-get-iter
Family: cluster

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

C:\PS>Get-NcDisk


List all disks in the cluster.


Name Shelf Bay Position Capacity RPM FW
---- ----- --- -------- -------- --- --
VxeRubble-01:1a.02.0 2 0 dparity 278 GB 15k NA00
VxeRubble-01:1a.02.1 2 1 parity 278 GB 15k NA00
VxeRubble-01:1a.02.10 2 10 data 278 GB 15k NA00
VxeRubble-01:1a.02.11 2 11 data 278 GB 15k NA00
VxeRubble-01:1a.02.12 2 12 data 278 GB 15k NA00
VxeRubble-01:1a.02.13 2 13 dparity 278 GB 15k NA00
VxeRubble-01:1a.02.14 2 14 parity 278 GB 15k NA00
VxeRubble-01:1a.02.15 2 15 data 278 GB 15k NA00
VxeRubble-01:1a.02.16 2 16 data 278 GB 15k NA00
VxeRubble-01:1a.02.17 2 17 data 278 GB 15k NA00
VxeRubble-01:1a.02.18 2 18 data 278 GB 15k NA00
VxeRubble-01:1a.02.19 2 19 data 278 GB 15k NA00
VxeRubble-01:1a.02.2 2 2 data 278 GB 15k NA00
VxeRubble-01:1a.02.20 2 20 data 278 GB 15k NA00
VxeRubble-01:1a.02.21 2 21 data 278 GB 15k NA00
VxeRubble-01:1a.02.22 2 22 data 278 GB 15k NA00
VxeRubble-01:1a.02.23 2 23 present 278 GB 15k NA00
VxeRubble-01:1a.02.3 2 3 dparity 278 GB 15k NA00
VxeRubble-01:1a.02.4 2 4 parity 278 GB 15k NA00
VxeRubble-01:1a.02.5 2 5 data 278 GB 15k NA00
VxeRubble-01:1a.02.6 2 6 data 278 GB 15k NA00
VxeRubble-01:1a.02.7 2 7 data 278 GB 15k NA00
VxeRubble-01:1a.02.8 2 8 data 278 GB 15k NA00
VxeRubble-01:1a.02.9 2 9 data 278 GB 15k NA00
VxeRubble-02:1a.01.0 1 0 dparity 278 GB 15k NA00
VxeRubble-02:1a.01.1 1 1 parity 278 GB 15k NA00



RELATED LINKS
Get-NcDiskOwner







 Data ONTAP® PowerShell Toolkit