Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Remove Snapshot with Command line:

Remove Snapshot with Command line:

I am trying to remove snapshot using the command lines below.  Retrieving the VMID then Removing snapshots related to that VMID:

 vim-cmd vmsvc/getallvms
Vmid   Name                File                 Guest OS    Version   Annotation
50     VM1    [Shared-Datastore] VM1/VM1.vmx   otherGuest   vmx-14


[root@unknown000c290ed7cb:/vmfs/volumes/5e52777e-3a92a27c-79e3-000c29b2122f/VM1]  vim-cmd vmsvc/snapshot.removeall 50
Remove All Snapshots:
[root@unknown000c290ed7cb:/vmfs/volumes/5e52777e-3a92a27c-79e3-000c29b2122f/VM1]

however when I run the ls -lha  command I still see the snapshot there:
[code]
-rw-------    1 root     root        6.0M Feb 28 10:19 VM1-000001-sesparse.vmdk
-rw-------    1 root     root         300 Feb 28 10:19 VM1-000001.vmdk

Open in new window


in the snapshot manager there is no Snapshot showing.

Any Help ?

Thank you
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Snapshots generated using the API may not appear in Snapshot Manager, if you use the GUI to create snapshots, they will appear in Snapshot Manager.
Avatar of jskfan

ASKER

I used the GUI
You used the GUI to create the snapshot and it didn't appear ?
Avatar of jskfan

ASKER

correct . It did not appear in the GUI
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Thanks