Users: 15,000+ | Page Views: 50,000+ | PPS: 2.5
TechDevOps.com
Explore Tools
{Experts in Microsoft SQL Server Operations, Performance, HA/DR, Data Migrations & Cloud Computing}



Use Powershell to monitor S2D(Storage Spaces Direct) Performance
by BF (Senior MSSQL Operations - Enterprise, Cloud, Strategy)
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"
}