How to use for loop to identify vmdk locked files

some times we are facing that vmdk locked scenario which we need to identify the locked file using vmkfstools.  But when we having multiple vmdk files, we need to run this command several times. To overcome this issue I have tried to use for loop in esxi shell. This may be help others when they having same problem.

for files in *.vmdk


>vmkfstools -D ${files}



vRops-how to reclaim resources

We can use VMware operations manager to find powered off vms, idle vms & oversized vms easily.

1. Login to the vRops


2. Click on reclaim


3. From the powered off category we can select and delete the vms


4. same way we can find idle vms


5. we can select & delete snapshots