VMware Cloud Community
oaklodge
Enthusiast
Enthusiast

How to get list of VMs in datastore for QA testing

I'm trying to setup a automated QA testing (currently using Cruise Control.NET)

From within a VM on ESX 4.1 how can I get a list of all the VMs in a resource pool (or folder) ?

0 Kudos
2 Replies
vmroyale
Immortal
Immortal

Hello.

Note: This discussion was moved from the VMware ESXi 4 community to the Automation Tools community.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
bulletprooffool
Champion
Champion

PowerCli would be the simplest for this.

VMs on a datastore:

get-datastore <datastorename> | get-vm

VMs in a resource pool

Get-ResourcePool <ResourcePoolName> | get-vm

Simples 🙂

One day I will virtualise myself . . .
0 Kudos