Esx find not added vmx files

Our stuff has made a mistake while removing virtual machines , they had bring the vmx files and just removed from the invertory.
We are using cloud nodes and 1 storage with 3HDD on storage.
Is there any way to find vmx directories which is not added to the cluster
FireBallITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Can you browse the VM folders, on the VMFS datastore, and add the virtual machines back ?

You could run a script, to look for orphaned files, which are not registered with the inventory.
0
gheistCommented:
PowerGUI plugin for vmware can sort those out fairly quickly
0
FireBallITAuthor Commented:
is there any command for power gui gheist

we have 400+ vds andrew it is impossible to find one by one
0
gheistCommented:
Install powergui power pack for vmware (which requires vmware powercli from vmware)
Then look for "orphaned vmdk report"

Alternatively on a single ESXi machine you can SSH and run find / -name *vmdk -mtime +10
i.e look for files named vmdk and not modified recently
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You can download and install RV Tools from here

http://www.robware.net/

this has a reporting tool for orphaned files, no need for powercli or scripts.

if you want to use powercli see here

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/

You will find the orphaned files script.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.