Reply to Message

View discussion in a popup

Replying to:
webmichael01
Contributor
Contributor

powerstate list by datacenter

Get-Datacenter | Select @{N = 'datcentername'; E = {$_.Name -replace '-','' }}, @{N = 'Cluster_Name'; E = {$datacenter.name}}, @{N = 'VM Count'; E = {( get-vm | where-object { $_.powerstate -eq "poweredOff"}).Count}}

 

how come this is adding the counts instead of breaking them out per count by Datacenter ?

Human error Im sure :slightly_smiling_face:

datacenter1 312
datacenter2 312
datacenter3  312

I need it this formate for nodeExporter

Reply
0 Kudos