Windows PowerShell command on Get-command Get-PhysicalDiskSNV
MyWebUniversity

Windows PowerShell command on Get-command Get-PhysicalDiskSNV

NAME

Get-PhysicalDiskStorageNodeView

SYNOPSIS

Gets the node view of a physical disk.

SYNTAX

Get-PhysicalDiskStorageNodeView [[-StorageNode] ] [[-PhysicalDisk] ] [[-CimSession]

] []

DESCRIPTION

The Get-PhysicalDiskStorageNodeView cmdlet gets the node view of physical disk. The object that this cmdlet

returns includes physical disk properties such as Microsoft Multipath I/O (MPIO) settings, drive health, and so on. You can use this cmdlet to debug disk issues specific to a node.

PARAMETERS

-CimSession []

Required? false Position? 3 Default value none Accept pipeline input? false Accept wildcard characters? false

-PhysicalDisk []

Specifies a physical disk as a CimInstance object. Required? false Position? 2 Default value none Accept pipeline input? true(ByValue) Accept wildcard characters? false

-StorageNode []

Specifies a storage node as a CimInstance object. Required? false Position? 1 Default value none Accept pipeline input? true(ByValue) Accept wildcard characters? false This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

MSFT_StorageNodeToPhysicalDisk Specifies physical disk properties such as health status, operational status, MPIO status, MPIO load balancing policy, MPIO path IDs, MPIO path state, and IDs of the phycial disk object and Storage node object.

Example 1: Get the node view for a Storage node

PS C:\>$N = Get-StorageNode -Name "ClusterNode01"

PS C:\> $Output = Get-PhysicalDiskStorageNodeView -StorageNode $N

PS C:\> $Pd = Get-PhysicalDisk -ObjectId $Output[0].PhysicalDiskObjectId

The first command gets the Storage node named ClusterNode01, and then stores it in the $N variable.

The second command gets the node-specific properties of the Storage node in $N, and then stores them in the

$Output variable.

The third command gets the specified drive object, and then stores it in the $Pd variable.

Example 2: Get the node view for a disk

PS C:\>$Pd = Get-PhysicalDisk -FriendlyName "PhysicalDisk01"

PS C:\> Get-PhysicalDiskStorageNodeView -PhysicalDisk $Pd

The first command gets the disk object for PhysicalDisk01, and then stores it in the $Pd variable.

The second command gets the node-specific properties for the disk in $Pd.

Example 3: Get the node view for a specified disk and node

PS C:\>$N = Get-StorageNode -Name "ClusterNode01"

PS C:\> $Pd = Get-PhysicalDisk -FriendlyName "PhysicalDisk01"

PS C:\> Get-PhysicalDiskStorageNodeView -StorageNode $N -PhysicalDisk $Pd

The first command gets the Storage node named ClusterNode01, and then stores it in the $N variable.

The second command gets the physical disk named PhysicalDisk01, and then stores it in the $Pd variable.

The third command gets the node view for the specified Storage node and physical disk.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816395

Get-DiskStorageNodeView

Get-StorageEnclosureStorageNodeView



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™