This is the 3rd and I think final revision of this script. I added the –list function, which before had to be combined with the –vm_name function. The main reason for creating this script was so that there can be an easy way to manage snapshots, especially automating the deletion, creation, reverting, and listing of snapshots. If you find this script or any of my scripts useful, please let me know.
perl vm_snapshot.pl --list
Platinum
name: test1
description:
state: poweredOff
vm type: VirtualMachine
time created: 2009-03-17T10:26:34.605171-04:00
Gold
name: test2
description:
state: poweredOff
vm type: VirtualMachine
time created: 2009-03-17T13:32:05Z
Silver
name: test3
description:
state: poweredOff
vm type: VirtualMachine
time created: 2009-03-17T13:32:22Z
Remember!!! That in order to use this script you will need the Perl VI SDK installed on your linux box as well as $home/.visdkrc setup correctly
Here is an example .visdkrc…
VI_SERVER = Virtual Console Server
VI_USERNAME = login
VI_PASSWORD = passwd
VI_PROTOCOL = https
VI_PORTNUMBER = 443
Continue reading “VMware ESX SDK SnapShot Perl Script Part 3” »