|
HowTo
How to implement phLabManager
Featured Introduction<
?php
require_once("labmanager.php");
$hostname = "server_address";
$username = "user";
$password = "password";
$lm = new labmanager($hostname, $username, $password, "organisation_name", "workspace_name");
echo $lm->GetCurrentOrganizationName();
echo "<hr/>";
$lm->GetConfigurationByName("test_config");
echo "<hr/>";
$lm->ListConfigurations(2);
echo "<hr/>";
?>
|
► Sign in to add a comment
I'm having problems getting your script to work. Im sure it has to do with my newness to vmware. To give a little background on the project, VMware is installed on Server A. I am using your script from directory on Server B.
I have a few questions.
1. I assume the hostname is that of Server A? Something like http://147.34.xxx.xxx correct?
2. Is username, password that of the server, or the users vCenter login?
3. "organisation_name" and "workspace_name" are a litle confusing. When in LabManager? and clicking on the Workspace link it shows my Workspace name as ITGO-TTS / Main, but i have no Organisation Name. Now if i click on VM Templates link, I now have an Organisation as ITGO-TTS, but no Workspace Name. Where do i get these values?
4. GetConfigurationByName?() should this be set to either a Template Name or Workspace -> Configuration Name right?
Thanks for the help.
Hi there,
The labmanager.php file is missing from the downloads section. Could you please upload it again? @ ce...@cesarvillaca: It seams that you did not really understand the concept of the VMware Lab Manager
Hi romantarnavski, i hope you see the message. I was not able to find another way to contact you. I would be very very interested in enhance the developement of this Wrapper. I already extended it and connected it to the Internal API of the VMware Lab Manager. Please grant me some rights on this project!