VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
4 Replies Last post: Dec 31, 2007 4:26 AM by asp24  

Storage vmotion webpage (perl, php, html). How to get progress bar? posted: Dec 30, 2007 11:48 AM

Click to view asp24's profile Enthusiast 103 posts since
Oct 11, 2006
I have created a "dirty" web page using PHP (I do not know Perl well) that does the following:

Log in to VirtualCenter (2.5) and get the storage/config file paths for all registered VM's (like this: iscsi1_1 vm/vm.vmx)

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...

Attachments:
Click to view vmwaredude1's profile Hot Shot 184 posts since
Aug 4, 2007

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

Thanks

Developer Social Media

Communities