Share via

S2D reporting

Mohamed jihad bayali 1,141 Reputation points
2023-09-05T09:43:33.8633333+00:00

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
0 comments No comments

Answer accepted by question author

Limitless Technology 45,241 Reputation points
2023-09-06T12:25:09.15+00:00
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–

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.