Redigera

Dela via


Get-StorageReliabilityCounter

Gets storage reliability counters.

Syntax

Get-StorageReliabilityCounter
   -PhysicalDisk <CimInstance>
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
Get-StorageReliabilityCounter
   -Disk <CimInstance>
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]

Description

The Get-StorageReliabilityCounter cmdlet gets the storage reliability counters for the specified disk or physical disk. These counters include information about such things as the device temperature, errors, wear, and length of time the device has been in use.

Examples

Example 1: Get the counters for a specified physical disk

PS C:\>Get-PhysicalDisk -FriendlyName "PhysicalDisk8" | Get-StorageReliabilityCounter | Format-List

ObjectId                : {e24dbc00-a448-11e1-a100-806e6f6e6963}:reliabilitycounter
PassThroughClass        :
PassThroughIds          :
PassThroughNamespace    :
PassThroughServer       :
UniqueId                : {e24dbc00-a448-11e1-a100-806e6f6e6963}:reliabilitycounter
DeviceId                : 8
LoadUnloadCycleCount    : 224
LoadUnloadCycleCountMax : 300000
ManufactureDate         : Year: 2011 Week: 33
PowerOnHours            : 0
ReadErrorsCorrected     : 0
ReadErrorsTotal         : 0
ReadErrorsUncorrected   : 0
StartStopCycleCount     : 80
StartStopCycleCountMax  : 10000
Temperature             : 28
TemperatureMax          : 68
Wear                    :
WriteErrorsCorrected    : 0
WriteErrorsTotal        : 0
WriteErrorsUncorrected  : 0
PSComputerName          :

This command gets the physical disk named PhysicalDisk8, and uses the pipeline operator to pass it to Get-StorageReliabilityCounter, which gets all of its storage reliability counters through another pipeline with Format-List.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Disk

Specifies a disk for which to get storage reliability counters.

Type:CimInstance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PhysicalDisk

Specifies the physical disk object for which to get storage reliability counters. Enter a PhysicalDisk CIM object.

PhysicalDisk objects represent physical disks attached to a storage subsystem and located in a storage pool.

Type:CimInstance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

CimInstance

You can pipe an MSFT_PhysicalDisk object to the PhysicalDisk parameter to get the storage reliability counters for the specified physical disk.

CimInstance

You can pipe an MSFT_Disk object to the Disk parameter to get the storage reliability counters for the specified disk.

Outputs

CimInstance

The Get-StorageReliabilityCounter cmdlet returns a StorageReliabilityCounter object, or an array of StorageReliabilityCounter objects.

Notes

  • When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).