Get the host and VM count using power CLI
To get the host and VM count using power CLI
1. connect the VC using connectVIserver cmd,
2. Get-Cluster | Select Name, @{N="Host Count"; E={($_ | Get-VMHost).Count}}, @{N="VM Count"; E={($_ | Get-VM).Count}}
out put like follow :-
Cluster: VMHost VM's
Cluster01 04 15
cluster02 02 35
Comments
Post a Comment