I have created a "dirty" web page using PHP (I do not know Perl well) that does the following:
Put the list into a dropdown menu and have an input field for the target storage location. And a move-button to start svmotion.
This is a very dirty solution right now, but it works for me!
The question now is: How can I get a progress bar for the svmotion?
I have included the neccessary files. I have installed this on my apache (linux) webserver with php and perl configured. You will have to install the Remote Client and Perl API to run this.
(VMware-RCLI-1.1.0-64577.i386.tar.gz and VMware-VmPerlAPI-2.3.2-39850.tar.gz used)
Sorry about the bad programming! I'm not exactly a programmer...
By the way.. I'm looking for a small script to list ALL datastores in VC. I want ONLY the friendly names, one name per line.
I have found some scripts that will list the datastores, but they also list a lot of other info I do not need. I have not been able to modify them to only output what I want. Can someone please give me an example of how to do this ?
You can use the vifs command
vifs --server VC server --username administrator --password XYZ -Z 'New Datacenter' --listds
I think, this syntax should work for u
Let, me know the results