title: VMware Virtual Infrastructure Remote CLI finding unused machines/disks in ESX/i
body: <p>In VMware ESX/i, how can I use the VMware Virtual Infrastructure Remote CLI to find unused machines/disks? I have a huge inventory and many files on disk, and I want to find files that are candidates for deletion.</p>
  
  <p>What I want is to determine whether </p>
  
  <ul>
  <li>a <code>vmdk</code> disk is in use by any <code>vmx</code> machine on the host, or whether</li>
  <li>a <code>vmx</code> machine exists in the inventory on the host.</li>
  </ul>
  
  <p>Surely some smart method exists for finding this? If not the VIRCLI, then maybe something else? Or do I need Virtual Center for this?</p>
  
  <p><strong>EDIT:</strong> This is a single host that does not share machines or disks with any other host.</p>