My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowTo  
How to implement phLabManager
Featured
Updated Sep 25, 2009 by romantar...@gmail.com

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/>";
?>
Comment by ce...@cesarvillaca.com, Nov 3, 2009

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.

Comment by go4...@gmail.com, Mar 31, 2010

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

Comment by go4...@gmail.com, May 11, 2010

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!


Sign in to add a comment
Powered by Google Project Hosting