can we pull list of VM in cluster
Prakash,
Try using RvTools ..I am sure you would like the software
You want a listing of all VMs in a cluster?
yes
Sure. You can use the vSphere client, click on the cluster name and then select the Virtual Machines tab. Or in the web client, select the cluster then go to the related objects>virtual machines.
You can use powercli: get-cluster -Name <your cluster's name> | get-vm
You can select specific properties and sort with powercli
... or just select the cluster --> VM tab --> export list
there are many format in whish you can export
remember to add all the columns of your interest before exporting.
if you think that this answer suite your needs please mark as answered and give points!
thanks
\aleph
I would recommed using RVtools . It is pretty smooth and easy to get inventory reports from vCenter or host.
www.robware.net/
I am unable to find export list
Prakash,
Try using RvTools ..I am sure you would like the software
using vsphere --> select cluster --> file --> export list
\aleph
in Virtual Center, select the cluster, select the virtual machines tab
file>export list..and export a list of vm’s as a webpage, csv-file, xls-file
From CLI Mode you can use this command to export list of VMs in Cluster
Get-Cluster "Cluster Name" | Get-VM | Export-CSV C:\ListVMsInCluster.csv
For people who like screenshots;
First, highlight the cluster as shown below in red;
Then click on "Virtual Machines" in the right pane, so all of the associated virtual machines are listed as shown below;
Then go up to the very top left "file" menu and select file/export/export list as shows below. If you don't have the virtual machines showing in the right tab, then the "export list" will be unavailable. It only exports what's in the right pane.
Hope this helps for those who like graphics, but it's the same process that the other guys mentioned. Also, I second the comments about RVTools; it's very handy.
Agree with PJ in that the easiest way is to use RVTools. Been using it for years to pull inventory of everything from VMs to hosts and everything in between.
Hi Prakash,
I have used these instructions and worked well for me by just using vSphere client:
1- Open the vSphere Client and connect to your vCenter
2- From the top menu go to View ==> Inventory ==> VMs & Templates
3- From the inventory list on the left side choose the VMs you want to include in your inventory export or choose a top level folder that includes the VMs you want to export
4- Choose the Virtual Machines tab from the the tabs on the top of the right side.
5- You might want to modify the filter to include other items like Virtual machines IPs, Hostname, & the similar.
6- From the top menu go to File => Export => Export list.
7- Choose the format you want to save the list into (CSV, Html, & XML are some of the available format).
Note: You can repeat the above steps for exporting hosts inventory in vCenter and the similar as well!