VMware Virtual Infrastructure Remote CLI finding unused machines/disks in ESX/i -


In VMware ESX / i, how can I use VMware Virtual Infrastructure Remote CLI to find unused machines / disks ? I have a large list and there are several files on the disk, and I want to find files that are candidates for removal.

What I want to do is to determine that

  • a Vmdk is used on any of the vmx machines on the disk host Is in, or
  • a vmx machine is present in the list.

Surely there is some smart method for this search? If not then VIRCLI, then maybe something else? Or do I need a virtual center for this?

Edit: This is a host that does not share machines or disks with any other host.

The IC does not know whether you have those disks by another ESXi host Used, it is very common to have a San on the backend and many hosts accessing the same storage device. In this case there is no host to know which machines are using, the scenario you describe only makes sense if you have a host - which is not a specific scenario for many VMware corporate clients. .

> Using RCLI or Shell, you can iterate through all existing machines and then compare the list of that disk. If you have shared between host hosts, things become very complicated and you have to walk again through the device on every machine.

Update: OK, now it's more of a crazy n bolt script / programming question;)

To use vmware-cmd -l , want to register something on the machine then files that refer to virtual disks ( .vmdk ) via vifs config file, downloading grep and storing all those files

Part two, a recursive directory list Ting will be written to a script, then grep is running by using vifs , just include .vmdk and . Vmx files. You have now got two lists, through them to search for sort and then diff results to find out which .vmx files Not registered machines and what is the .vmdk files are not in use by any active VM and then you have to delete your candidates :)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -