info@techdevops.com | 437-991-3573 | Data Engineering Services
TechDevOps.com
Resources Tools
Experts in Microsoft SQL Server on Windows, Linux, Containers | Clusters, Always On, FCI | Migrations, Cloud, Performance



Use Powershell to monitor S2D(Storage Spaces Direct) Performance
by BF (Principal Consultant; Architecture; Engineering)
2018-10-27








Powershell:

Get-StorageSubSystem Cluster* | Get-StorageHealthReport



Powershell to file:

$Output = Get-StorageSubSystem Cluster* | Get-StorageHealthReport

$Records = $Output.ItemValue.Records

$DataTimeStamp = Get-Date

$DataTimeStamp >> "F:\PS\Report.txt"

" " >> "F:\PS\Report.txt"

ForEach ($Record in $Records)
{
$Record.Name >> "F:\PS\Report.txt"
$Record.Value >> "F:\PS\Report.txt"
" " >> "F:\PS\Report.txt"
}