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

Popular posts from this blog

Using Non-Maskable Interrupt (NMI) facilities to troubleshoot unresponsive VMware Virtual Machine.

Removing invalid linked clone entries automatically using the ViewDBChk tool

VMTool update steps on Horizon VDI Parent VM