VMware Cloud Community
NageshJ
Contributor
Contributor
Jump to solution

PowerCLi script to get ClusterName | ClusterCapacity | ProvisionedSpace | ClusterOverProvision% | Host OS Type in a .csv file of a host cluster not datastore cluster.

Hi Team,

I am new to VMware and PowerCLi topics, I have 2 host clusters for these 2 clusters I would like to generate a .csv file in following format :

ClusterName | ClusterCapacity | ProvisionedSpace | ClusterOverProvision% | Host OS Type

If the host OS type is an Esxi version, then I don't need Esxi version. If host OS type not an Esxi version then i need Host OS Type in a separate column.

I would like to get the above result by using PowerCLi script.

Thanks in advance.

Reply
0 Kudos
20 Replies
veera1987
Contributor
Contributor
Jump to solution

Hi LuCD,

Request your help on below Queries.

1. We have several vcenters and so many different clusters & Datacenters. Help me in a script if i got particular datastore/datastore cluster having space issue to resolve needed one liner or script to      get the space utilized and VM's residing in each cluster with the help of Specific datastore/datastore cluster name SO that i can plan for migration to different cluster or vcenter.

2. Similarly for a particular VM, can we get the residing host, cluster, Datacenter, vcenter, Disk(All disks with allocated and free space) & Network adapter(All adapters, Since there are more than 1      NIC adapter per VM) details.

3. If planning for migration, script required to provide the input of VM names and Destination cluster, So that source VM's to be unregister and register in new Cluster of diffeent vcenter and ESXi      version. Also for migration of VM's from One cluster of 6.0 to another cluster of 6.5

4. Also any automated schedule script that whenever a host going to not responding or not pinging, need to get those host details in an email along with cluster and vcenter details.

Please help me in addressing above queries.

Thanks & Regards

S.Veerappan

Reply
0 Kudos