There are subtle differences in all Linux platforms and when I got to run VMware SDK Java samples on Ubuntu 10.04 I found there is something that is worth to share in addition to my first post about it. First of all, there are very convenient “default” packages for JRE and JDK that have openjdk-6-jre [...]
In one of comments the following code did not set a task description (shown in vSphere Client in Details column): LocalizableMessage lm = new LocalizableMessage(); lm.setMessage(“Hello World”); myTask.getTaskInfo().setDescription(lm); The problem is in missing key property of the newly created LocalizableMessage: it must be assigned from the task itself. This is how it’s suppose to be [...]
VMware host IP address is something of a phantom property: everybody knows it exists and use it all the time, but nobody knows where it is. Well, this is probably because its location in the model changes depending on the host version and current network configuration. This is how I get it. 1. For ESX [...]
Tuesday, February 2, 2010
This is how to retrieve a task info in you have the task MOR: ObjectContent[] objs = connection.Service.RetrieveProperties( connection.ServiceContent.propertyCollector, new PropertyFilterSpec[] { new PropertyFilterSpec() { objectSet = new ObjectSpec[] { new ObjectSpec() { obj = taskMOR } }, propSet = new PropertySpec[] { new PropertySpec() { all = false, allSpecified = true, type = “Task”, [...]
Sunday, December 27, 2009
Currently there are a few APIs and this post is a short summary of them. – vSphere Web Services SDK a.k.a. VMware VI API, last version is 4.0, released May 21st, 2009. This is a SOAP over HTTP/S protocol that exposes everything you can do on a virtual data center: configure resources, manipulate with virtual [...]
Wednesday, December 16, 2009
VMware SDK a.k.a. vSphere Web Services SDK 4.0 comes with Java and C# samples. This is what it took me to get them running on Ubuntu 8.10. 1. Download the SDK from vmware.com into a separate directory: > mkdir vi-sdk-4.0.0-161137 2. Install Java and Axis: > apt-get install sun-java5-bin sun-java5-demo sun-java5-doc \ sun-java5-fonts sun-java5-jdk sun-java5-jre [...]