Hello there,
The Get-ClusterNode cmdlet gets information about one or more nodes, or servers, in a failover cluster.
The Get-StorageEnclosure cmdlet gets storage enclosures that are visible to your computer.
Try something like this.
Get-Cluster -PipelineVariable cluster |
ForEach-Object -Process {
$ds = Get-Datastore -RelatedObject $cluster | where{$_.ExtensionData.Summary.MultipleHostAccess}
$totCapacity, $totFree, $totUncommitted = ($ds.ExtensionData.Summary | Measure-Object -Property Capacity, FreeSpace, Uncommitted -Sum).Sum
[PSCustomObject]@{
Cluster = $cluster.Name
CapacityGB = [math]::Round($totCapacity/1GB,1)
UsedGB = [math]::Round(($totCapacity - $totFree)/1GB,1)
FreeGB = [math]::Round($totFree / 1GB, 1)
ProvisionedGB = [math]::Round(($totCapacity - $totFree + $totUncommitted) / 1GB, 1)
UncommittedGB = [math]::Round($totUncommitted / 1GB, 1)
}
}
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–
S2D reporting
Mohamed jihad bayali
1,141
Reputation points
Hello Team,
I'm running an S2D cluster, and i'm looking for a reporting to have the following informations :
-Storage consumption at the cluster level
-Ressource consumption on the node level (cpu,memory)
-Listing of VMs on the cluster + Ressource allocation and utilization
Is there a native reporting to S2D making it possible to have this informations or i should develop a powershell script to have these informations? If you have a similar powershell script that give such infos, thanks to shar ewith me
Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
Windows for business | Windows Server | Storage high availability | Other
Answer accepted by question author
Limitless Technology
45,241
Reputation points