which version of ESX you jave???
ESXi
On an ESXi host, to commit all snapshots using the command line:
- Log in to the ESXi host as root via the console or an SSH session. For more information about SSH, see see Tech Support Mode for Emergency Support (1003677) or Using Tech Support Mode in ESXi 4.1 (1017910).
Note: The following commands can also be executed remotely using the vSphere Command Line for both ESX and ESXi hosts. For more information, see vSphere Command Line Interface documentation. - Run this command to get a list of virtual machines and the VMID for each virtual machine:
vim-cmd vmsvc/getallvms
Output similar to the following is displayed:
Vmid Name File Guest OS Version Annotation
1 vm1 [datastore1] vm1/vm1.vmx windows7Server64Guest vmx-08
3 testvm [iscsi1] testvm/testvm.vmx winNetDatacenterGuest vmx-08
Make a note of the VMID for the specific virtual machine.
Cheers,