<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
    <link>http://communities.vmware.com/community/developer/forums/automationapi?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Tue, 04 Aug 2009 17:24:15 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-08-04T17:24:15Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1328854?tstart=0#1328854</link>
      <description>Hi &lt;a class="jive-link-profile" href="http://communities.vmware.com/people/dblock"&gt;dblock&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks for the update of your project at my site, &lt;a class="jive-link-external" href="http://ww.vi-toolkit.com"&gt;http://ww.vi-toolkit.com&lt;/a&gt; &lt;br /&gt;
Sorry if the wording wasn't clear enough, you are welcome to make any change on there (which is true for anyone who would like to make improvements/corrections on the site)&lt;br /&gt;
&lt;br /&gt;
As it is now, the projects on the site are a collection of projects elsewhere - written by other people - with the intention of making them easier to find. &lt;br /&gt;
Eg. arise the awareness to more people of the availability of YOUR project(s).&lt;br /&gt;
&lt;br /&gt;
Due to limitations of time available that i can spent on the site my own content is now limited to adding more command references of the VMware SDK's available. &lt;br /&gt;
That and adding links to interesting projects/code I "stumble" over.&lt;br /&gt;
&lt;br /&gt;
thanks again,&lt;br /&gt;
&lt;br&gt;&lt;br&gt;--&lt;br /&gt;
Wil&lt;br /&gt;
_____________________________________________________ &lt;br /&gt;
VI-Toolkit &amp;amp; scripts wiki at &lt;a class="jive-link-external" href="http://www.vi-toolkit.com"&gt;http://www.vi-toolkit.com&lt;/a&gt;</description>
      <pubDate>Tue, 04 Aug 2009 17:24:15 GMT</pubDate>
      <author>wila</author>
      <guid>http://communities.vmware.com/message/1328854?tstart=0#1328854</guid>
      <dc:date>2009-08-04T17:24:15Z</dc:date>
      <clearspace:dateToText>3 months, 3 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1169919?tstart=0#1169919</link>
      <description>Sweet!</description>
      <pubDate>Thu, 12 Feb 2009 13:59:56 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1169919?tstart=0#1169919</guid>
      <dc:date>2009-02-12T13:59:56Z</dc:date>
      <clearspace:dateToText>9 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1169911?tstart=0#1169911</link>
      <description>&lt;br /&gt;
I've changed the spin wait for an async callback and an event. Take a look at the source:&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://svn.vestris.com/filedetails.php?repname=Vestris+SVN&amp;#38;path=%2Fcodeproject%2FVMWareTasks%2FSource%2FVMWareLib%2FVMWareJobCallback.cs"&gt;http://svn.vestris.com/filedetails.php?repname=Vestris+SVN&amp;#38;path=%2Fcodeproject%2FVMWareTasks%2FSource%2FVMWareLib%2FVMWareJobCallback.cs&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://svn.vestris.com/filedetails.php?repname=Vestris+SVN&amp;#38;path=%2Fcodeproject%2FVMWareTasks%2FSource%2FVMWareLib%2FVMWareJob.cs"&gt;http://svn.vestris.com/filedetails.php?repname=Vestris+SVN&amp;#38;path=%2Fcodeproject%2FVMWareTasks%2FSource%2FVMWareLib%2FVMWareJob.cs&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 12 Feb 2009 13:37:57 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1169911?tstart=0#1169911</guid>
      <dc:date>2009-02-12T13:37:57Z</dc:date>
      <clearspace:dateToText>9 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1149095?tstart=0#1149095</link>
      <description>DBlock,&lt;br /&gt;
&lt;br /&gt;
Try the attachedcode for blocking waits.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Improvements: &lt;a class="jive-link-external" href="http://www.xtremevbtalk.com/showthread.php?t=303781"&gt;http://www.xtremevbtalk.com/showthread.php?t=303781&lt;/a&gt;</description>
      <pubDate>Tue, 20 Jan 2009 20:47:21 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1149095?tstart=0#1149095</guid>
      <dc:date>2009-01-20T20:47:21Z</dc:date>
      <clearspace:dateToText>10 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1147821?tstart=0#1147821</link>
      <description>&lt;br /&gt;
Re 2.2: &lt;br /&gt;
&lt;p /&gt;
As I understand your re-design, you want to block the entire thread by implementing ICallback with a timeout? &lt;br /&gt;
&lt;p /&gt;
I will try to figure something out. first I have to read up on async patterns.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Mon, 19 Jan 2009 17:29:00 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1147821?tstart=0#1147821</guid>
      <dc:date>2009-01-19T17:29:00Z</dc:date>
      <clearspace:dateToText>10 months, 1 week ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1140649?tstart=0#1140649</link>
      <description>&lt;ol&gt;
&lt;li&gt;My timeouts are guesses based on some experience. I am happy to adjust the defaults if someone can argue something more meaningful. Also you can dynamically change the timeouts in the library.&lt;/li&gt;
&lt;li&gt;I am not quite sure I understand the question right.
&lt;ol&gt;
&lt;li&gt;If the question is whether one should use a synchronous API vs. an asynchronous one (callbacks). The asynchronous API has lots of advatages, but is harder to implement. If you're building UI (eg. VI client), then the asynchronous model is what you want. But if you're building a test tool that restores snapshots, then you want something synchronous.&lt;/li&gt;
&lt;li&gt;If the question is whether my implementation of an active wait is a bad one, then the answer is yes &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; I think a big improvement to my library could be to replace the active wait by a blocking wait on an event with a timeout that is canceled on job callback. I'd love it if you sent me a patch!&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Will do.&lt;/li&gt;
&lt;/ol&gt;</description>
      <pubDate>Sat, 10 Jan 2009 03:45:28 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1140649?tstart=0#1140649</guid>
      <dc:date>2009-01-10T03:45:28Z</dc:date>
      <clearspace:dateToText>10 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1139018?tstart=0#1139018</link>
      <description>&lt;br /&gt;
&lt;b&gt;Very, very sleek implementations guys!  Thanks!&lt;/b&gt;&lt;br /&gt;
&lt;p /&gt;
 I found that connecting to a hostname does not work either.&lt;br /&gt;
&lt;p /&gt;
Private Function getLocalIP() As String&lt;br /&gt;
        Dim localHost As String&lt;br /&gt;
        Dim IPHEntry As IPHostEntry&lt;br /&gt;
        Dim IPAdd() As IPAddress&lt;br /&gt;
        localHost = Dns.GetHostName()&lt;br /&gt;
        IPHEntry = Dns.GetHostEntry(localHost)&lt;br /&gt;
        IPAdd = IPHEntry.AddressList&lt;br /&gt;
        Try&lt;br /&gt;
            For i = 0 To IPAdd.GetUpperBound(0)&lt;br /&gt;
                If IPAdd(i).AddressFamily = Sockets.AddressFamily.InterNetwork Then&lt;br /&gt;
                    Return IPAdd(i).ToString&lt;br /&gt;
                End If&lt;br /&gt;
            Next&lt;br /&gt;
&lt;p /&gt;
        Catch ex As Exception&lt;br /&gt;
            Return "127.0.0.1"&lt;br /&gt;
        End Try&lt;br /&gt;
End Function&lt;br /&gt;
&lt;p /&gt;
dblock, I have a couple questions for you:&lt;br /&gt;
&lt;p /&gt;
1. How did you determine your timeouts? I see that a timeout for copying a file is 20 minutes, remove a snap is 10 minutes. &lt;br /&gt;
&lt;p /&gt;
2. You mention that you still implement synchronous WAITs, and it looks like you just do a CHECK COMPLETION on each job and time out if necessary.  Is there any advantage to doing callbacks instead?&lt;br /&gt;
&lt;p /&gt;
3. Take a look at my question and implementation of VIX, I would appreciate any feedback: &lt;a class="jive-link-external" href="http://communities.vmware.com/thread/187966?tstart=0"&gt;http://communities.vmware.com/thread/187966?tstart=0&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 08 Jan 2009 14:46:43 GMT</pubDate>
      <author>fixitchris</author>
      <guid>http://communities.vmware.com/message/1139018?tstart=0#1139018</guid>
      <dc:date>2009-01-08T14:46:43Z</dc:date>
      <clearspace:dateToText>10 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1136564?tstart=0#1136564</link>
      <description>This might be hiding a problem. The host has to be listening on the correct IP (or all IPs if you have multiple NICs) and accept a request for a given host name. The https connection might be a problem too. I would try to navigate to &lt;a class="jive-link-external" href="https://ip/sdk"&gt;https://ip/sdk&lt;/a&gt;, &lt;a class="jive-link-external" href="https://hostname/sdk"&gt;https://hostname/sdk&lt;/a&gt; and see what the error, if any, is.</description>
      <pubDate>Mon, 05 Jan 2009 23:29:34 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1136564?tstart=0#1136564</guid>
      <dc:date>2009-01-05T23:29:34Z</dc:date>
      <clearspace:dateToText>10 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1136198?tstart=0#1136198</link>
      <description>&lt;br /&gt;
Not sure why, but I now tried to connect using the IP address instead of the host name and I was able to connect. When I ping the host name, it comes back with the correct IP. Oh well.&lt;br /&gt;
&lt;p /&gt;
 Thanks</description>
      <pubDate>Mon, 05 Jan 2009 16:37:49 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1136198?tstart=0#1136198</guid>
      <dc:date>2009-01-05T16:37:49Z</dc:date>
      <clearspace:dateToText>10 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
    <item>
      <title>VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1129978?tstart=0#1129978</link>
      <description>I posted a CodeProject Article this morning with a VMWareTasks C# library on top of the VIX API. It exposes a better programming model for the 99% of those synchronous VMWare scenarios where you don't want to deal with jobs or other more complex constructs. I think we can all benefit from reimplementing the same thing less often!&lt;br /&gt;
&lt;br /&gt;
&lt;a class="jive-link-external" href="http://www.codeproject.com/KB/library/VMWareTasks.aspx"&gt;http://www.codeproject.com/KB/library/VMWareTasks.aspx&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
&lt;a class="jive-link-external" href="http://code.dblock.org/ShowPost.aspx?id=25"&gt;http://code.dblock.org/ShowPost.aspx?id=25&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
I'd love to get more features/patches for the library, feel free to (re)use and contribute.&lt;br /&gt;
&lt;p /&gt;
cheers&lt;br /&gt;
dB. &lt;br /&gt;
&lt;p /&gt;
&lt;b&gt;Update&lt;/b&gt;: I posted a new build &lt;b&gt;1.0.1604.0&lt;/b&gt;: &lt;a class="jive-link-external" href="http://code.dblock.org/ShowPost.aspx?id=29"&gt;http://code.dblock.org/ShowPost.aspx?id=29&lt;/a&gt;</description>
      <pubDate>Mon, 22 Dec 2008 20:01:45 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1129978?tstart=0#1129978</guid>
      <dc:date>2008-12-22T20:01:45Z</dc:date>
      <clearspace:dateToText>10 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>25</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1133892?tstart=0#1133892</link>
      <description>&lt;div class="jive-quote"&gt;&lt;span class="jive-quote-header"&gt;JPatten schrieb:&lt;/span&gt;&lt;br /&gt;
If you are running Windows Vista, the CHM file will not open properly until you "Unblock" it.&lt;/div&gt;
&lt;br /&gt;
Ah, yes, I forgot about that &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;&lt;br /&gt;
&lt;br /&gt;
Glad to hear that my work is useful for you, if you have any suggestions for further improvements, please let me know!&lt;br /&gt;
&lt;br /&gt;
Regards, Alex</description>
      <pubDate>Wed, 31 Dec 2008 13:24:15 GMT</pubDate>
      <author>akoeplinger</author>
      <guid>http://communities.vmware.com/message/1133892?tstart=0#1133892</guid>
      <dc:date>2008-12-31T13:24:15Z</dc:date>
      <clearspace:dateToText>10 months, 4 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1133860?tstart=0#1133860</link>
      <description>&lt;br /&gt;
If you are running Windows Vista, the CHM file will not open properly until you "Unblock" it. Right click on the file and choose properties. There will be and "Unblock" button at the bottom.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Alex - Similar to what Carter did with dB's wrapper, I have managed to use your wrapper in powershell, mainly because you have the screen print feature. Using it in powershell is definately easier than just using the basic VIX in C#. Thanks again.</description>
      <pubDate>Wed, 31 Dec 2008 13:11:47 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1133860?tstart=0#1133860</guid>
      <dc:date>2008-12-31T13:11:47Z</dc:date>
      <clearspace:dateToText>10 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1133838?tstart=0#1133838</link>
      <description>&lt;br /&gt;
Hi!&lt;br /&gt;
&lt;p /&gt;
The documentation is a standard CHM-helpfile, it should open on any Windows system since Windows 98 &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt; There may be problems if you try to open it from a network location, so store it locally on your computer.&lt;br /&gt;
&lt;p /&gt;
To answer your question: the wrapper doesn't support copying files directly from a ESX datastore to a guest VM and vice versa. There are functions that copy files (CopyFileFromHostToGuest and CopyFileFromGuestToHost) but they copy only to/from the system where the Vix client is running, not the ESX host itself.&lt;br /&gt;
&lt;p /&gt;
You could copy the file to your local machine first, and then upload the file to the datastore (which should be possible with the VI API, I guess).&lt;br /&gt;
&lt;p /&gt;
Regards, Alex</description>
      <pubDate>Wed, 31 Dec 2008 10:55:09 GMT</pubDate>
      <author>akoeplinger</author>
      <guid>http://communities.vmware.com/message/1133838?tstart=0#1133838</guid>
      <dc:date>2008-12-31T10:55:09Z</dc:date>
      <clearspace:dateToText>10 months, 4 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1133496?tstart=0#1133496</link>
      <description>Hi Alex,&lt;br /&gt;
&lt;br /&gt;
I tried downloading the  documentation file for your wrapper, but it did not seem to want to open... I was wondering if your wrapper supports copying files located in a guest VM to and from a datastore on an ESX 3.5 server. I have been researching the VIX documentation and the various VI API documentation and can't seem to get a definitive answer whether or not this is possible. I have tried various ways of inputting the path to the file on the datastore (for example "[datastore1] folder/folder/file.extension" as well as "/vmfs/volumes/(long hex string)/folder/folder/file.extension") but nothing seems to work. Do you have any experience with copying files to and from datastores? Any help would be greatly appreciated!</description>
      <pubDate>Tue, 30 Dec 2008 20:38:53 GMT</pubDate>
      <author>eatorres</author>
      <guid>http://communities.vmware.com/message/1133496?tstart=0#1133496</guid>
      <dc:date>2008-12-30T20:38:53Z</dc:date>
      <clearspace:dateToText>10 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1132577?tstart=0#1132577</link>
      <description>&lt;br /&gt;
I think I am going to wait for the server admin to come back after the new year and apply at least U2. The server I am connecting to is ESXi 3.5 110271. I am using root to login, so that shouldn't be the problem.&lt;br /&gt;
&lt;p /&gt;
I'll try after I get the server updated and let you know the results.&lt;br /&gt;
&lt;p /&gt;
Thanks</description>
      <pubDate>Mon, 29 Dec 2008 16:19:01 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1132577?tstart=0#1132577</guid>
      <dc:date>2008-12-29T16:19:01Z</dc:date>
      <clearspace:dateToText>11 months, 6 hours ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1132576?tstart=0#1132576</link>
      <description>&lt;br /&gt;
Hi!&lt;br /&gt;
&lt;p /&gt;
I just tried it against my ESXi host (3.5.0 build-123629) and it works without problems. Remember that you need at least ESX Update 2 for VIX to work, the default port for connection is 443. Basically, VIX needs the same credentials/IP that you would enter when you connect with the VMware Infrastructure Client.&lt;br /&gt;
&lt;p /&gt;
You don't need to install VIX on the host, just on the machine from where you want to connect to the ESXi server.&lt;br /&gt;
&lt;p /&gt;
If that doesn't help, please let me know &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;&lt;br /&gt;
&lt;p /&gt;
Regards, Alex</description>
      <pubDate>Mon, 29 Dec 2008 16:15:56 GMT</pubDate>
      <author>akoeplinger</author>
      <guid>http://communities.vmware.com/message/1132576?tstart=0#1132576</guid>
      <dc:date>2008-12-29T16:15:56Z</dc:date>
      <clearspace:dateToText>11 months, 6 hours ago</clearspace:dateToText>
      <clearspace:replyCount>13</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1132460?tstart=0#1132460</link>
      <description>&lt;br /&gt;
I have now tried both COM Wrappers and receive the same error when trying to connect to my ESXi host. This leads me to believe that something is missing on the host itself, since it works on my Server 2.0 and Workstation installs.&lt;br /&gt;
&lt;p /&gt;
I have now tested against two different ESXi 3.5 hosts and receive the error "Unable to Connect to Host". Is there anything I need to check on the host? Does VIX have to be installed locally on the host or is it on by default?&lt;br /&gt;
&lt;p /&gt;
 Thanks</description>
      <pubDate>Mon, 29 Dec 2008 14:03:19 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1132460?tstart=0#1132460</guid>
      <dc:date>2008-12-29T14:03:19Z</dc:date>
      <clearspace:dateToText>11 months, 8 hours ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131875?tstart=0#1131875</link>
      <description>&lt;br /&gt;
Hi!&lt;br /&gt;
&lt;p /&gt;
I totally agree that an implementation on top of the COM API shouldn't be necessary, cause this just adds another layer of complexity. It would also be nice if there was a way to use our library on Linux systems (e.g. by leveraging the capabilites of the Mono framework).&lt;br /&gt;
&lt;p /&gt;
Of course I also looked at your source-code and I have to admit that your implementation follows the concept of OOP much better &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt; &lt;br /&gt;
&lt;p /&gt;
My intention was to just have a library that looks similar to the original VIX API, but uses C#-style parameters and return values and hides me from dealing with handles, blocking, etc.&lt;br /&gt;
&lt;p /&gt;
I'll have to look at implementing a timeout for the Wait() function, thanks for that !&lt;br /&gt;
&lt;p /&gt;
As you've said, we can only benefit from having seperate approaches and maybe the VMware developement team benefits too &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;p /&gt;
Regards, Alex</description>
      <pubDate>Sat, 27 Dec 2008 18:04:18 GMT</pubDate>
      <author>akoeplinger</author>
      <guid>http://communities.vmware.com/message/1131875?tstart=0#1131875</guid>
      <dc:date>2008-12-27T18:04:18Z</dc:date>
      <clearspace:dateToText>11 months, 2 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131623?tstart=0#1131623</link>
      <description>Hey Alex,&lt;br /&gt;
&lt;br /&gt;
I've been adding features while you were away! I really think the VMWare development team should produce something like this, so hopefuly seeing multiple implementations will give them the right object model to start with. A library that is not a wrapper on top of the COM API is really the right answer, there's no need to have a COM object registered to talk to VMWare. You wouldn't need to package the VIX COM DLLs if you were to distribute anything that talks to VMWare. Heck, VMWare should give us a million bucks to share for designing it for them &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;&lt;br /&gt;
&lt;br /&gt;
If I may allow some criticism of the stuff on CodePlex: I think that your library needs to be more consistent with constructs like snapshots or shared folders: those are all objects and should be manipulated as collections. I chose not to implement methods like AddSharedFolder(name, description) - from the object model perspective you want VirtualMachine.SharedFolders.Add(new VMWareSharedFolder(name, description)), then VirtualMachine.SharedFolders reflects the changes. This also applies to snapshots and all other things that belong to the VM. Other important aspects include an active timeout - VMWare won't timeout in blocking operations.&lt;br /&gt;
&lt;br /&gt;
I also wanted to thank you - I learned something from your implementation - I was wondering what the right way of implementing things like Snapshot.Name is - your code helped. I also added Snapshot.Path - &lt;a class="jive-link-external" href="http://code.dblock.org/ShowPost.aspx?id=27]]]"&gt;post&lt;/a&gt;.&lt;br /&gt;
&lt;p /&gt;
Some competition is a good thing! People should use whatever they think is best. Of course, you're welcome to give up the CodePlex library and contribute to VMWareTasks &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";)" /&gt;&lt;br /&gt;
&lt;p /&gt;
cheers&lt;br /&gt;
dB.</description>
      <pubDate>Fri, 26 Dec 2008 17:23:16 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1131623?tstart=0#1131623</guid>
      <dc:date>2008-12-26T17:23:16Z</dc:date>
      <clearspace:dateToText>11 months, 3 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131450?tstart=0#1131450</link>
      <description>&lt;br /&gt;
Wow, looks like we were working on the same thing the last weeks, since I published my VIX API C# library to Codeplex one day after you wrote your CodeProject article &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/grin.gif" alt=":D" /&gt;&lt;br /&gt;
&lt;br /&gt;
My library basically does the same as yours, it simplifies dealing with the VIX API and makes common tasks (powering on/off, copying files) a lot easier. &lt;br /&gt;
&lt;p /&gt;
I also took the time and fully commented the functions (using the official documentation), so you get hints from IntelliSense while coding, which I find really helpful. &lt;br /&gt;
&lt;p /&gt;
Although your library implements less functions than mine (I wrapped them all...), it seems like you have the better concept when dealing with IJobs. &lt;br /&gt;
&lt;p /&gt;
If you want to take a look at my approach, visit &lt;a class="jive-link-external" href="http://www.codeplex.com/VixCOMWrapper"&gt;http://www.codeplex.com/VixCOMWrapper&lt;/a&gt; and download the library &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt; &lt;br /&gt;
&lt;p /&gt;
Regards, Alex</description>
      <pubDate>Thu, 25 Dec 2008 18:14:27 GMT</pubDate>
      <author>akoeplinger</author>
      <guid>http://communities.vmware.com/message/1131450?tstart=0#1131450</guid>
      <dc:date>2008-12-25T18:14:27Z</dc:date>
      <clearspace:dateToText>11 months, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131288?tstart=0#1131288</link>
      <description>Here is the code block I am using that works for server 2.0. I am able to connect to the ESXi 3.5 server via VI API and PowerShell, but not with VIX&lt;br /&gt;
&lt;br /&gt;
add-type -path " Vestris.VMWareLib.dll"&lt;br /&gt;
&lt;br /&gt;
add-type -path &amp;ldquo;Interop.VixCOM.dll"&lt;br /&gt;
&lt;br /&gt;
$myHost= new-object vestris.vmwarelib.vmwarevirtualhost&lt;br /&gt;
&lt;br /&gt;
$myHost.ConnectToVMWareVIServer("https://&amp;lt;IP&amp;gt;/sdk",0, &amp;ldquo;&amp;lt;login&amp;gt;&amp;rdquo;, &amp;ldquo;&amp;lt;pw&amp;gt;&amp;rdquo;)&lt;br /&gt;
&lt;br /&gt;
$vm = $myHost.Open(&amp;lt;VMX Location&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
$vm.Login(&amp;ldquo;&amp;lt;login&amp;gt;&amp;rdquo;, &amp;ldquo;&amp;lt;pw&amp;gt;&amp;rdquo;)&lt;br /&gt;
&lt;br /&gt;
$vm.Execute(&amp;ldquo;notepad.exe&amp;rdquo;,$null)&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
In Workstation and Server, Notepad will launch. With ESX, I get a failed to connect to host message.</description>
      <pubDate>Wed, 24 Dec 2008 22:24:10 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1131288?tstart=0#1131288</guid>
      <dc:date>2008-12-24T22:24:10Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131299?tstart=0#1131299</link>
      <description>It should work against U2 and up, I'm not sure if the notes say U3.&lt;br /&gt;
&lt;br /&gt;
Anyway, VIX will connect even against ESX 3.0, it's just that nothing you do after that will actually work. Make sure you're connecting to https://server/sdk rather than just the server name or IP.</description>
      <pubDate>Wed, 24 Dec 2008 21:34:54 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1131299?tstart=0#1131299</guid>
      <dc:date>2008-12-24T21:34:54Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>16</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1131279?tstart=0#1131279</link>
      <description>&lt;br /&gt;
dB - Thanks for this. It is going to make using VIX a lot easier now. I was able to use it against Workstation on my machine and a remote Server 2.0 machine. I tried it against ESXi 3.5, but was unable to connect. I think it has to do with the ESX server not being at 3.5 U3 per the VIX documents, so I will have to wait and see.&lt;br /&gt;
&lt;br /&gt;
Carter - Thanks for the PowerShell example. I usually try to keep all of my programming inside of PowerShell and you gave me a good start.</description>
      <pubDate>Wed, 24 Dec 2008 20:55:24 GMT</pubDate>
      <author>JPatten</author>
      <guid>http://communities.vmware.com/message/1131279?tstart=0#1131279</guid>
      <dc:date>2008-12-24T20:55:24Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1130971?tstart=0#1130971</link>
      <description>&lt;br /&gt;
Thanks! The library is synchronous, so Execute runs notepad and returns only when it's done. My example might have been not so clever - if you run a GUI application without a remote desktop you're not going to be able to do much &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":)" /&gt;</description>
      <pubDate>Wed, 24 Dec 2008 06:41:34 GMT</pubDate>
      <author>dblock</author>
      <guid>http://communities.vmware.com/message/1130971?tstart=0#1130971</guid>
      <dc:date>2008-12-24T06:41:34Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1130761?tstart=0#1130761</link>
      <description>Daniel, great stuff, I've posted an example of &lt;a class="jive-link-external" href="http://blogs.vmware.com/vix/2008/12/call-vix-more-easily-from-net-plus-powershell-goodness.html"&gt;using it from PowerShell&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I noticed one strange thing, when I ran notepad like in your example it didn't return until I killed the process. Is that a VIX-side thing or something in your library?</description>
      <pubDate>Tue, 23 Dec 2008 20:40:57 GMT</pubDate>
      <author>c_shanklin</author>
      <guid>http://communities.vmware.com/message/1130761?tstart=0#1130761</guid>
      <dc:date>2008-12-23T20:40:57Z</dc:date>
      <clearspace:dateToText>11 months, 6 days ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: VMWareTasks: A VIX API C# Library (let's reinvent less wheels)</title>
      <link>http://communities.vmware.com/message/1130024?tstart=0#1130024</link>
      <description>Good job! I have also written a wrapper for Vix API, but not nearly as thorough as yours.</description>
      <pubDate>Mon, 22 Dec 2008 21:24:44 GMT</pubDate>
      <author>eatorres</author>
      <guid>http://communities.vmware.com/message/1130024?tstart=0#1130024</guid>
      <dc:date>2008-12-22T21:24:44Z</dc:date>
      <clearspace:dateToText>11 months, 1 week ago</clearspace:dateToText>
    </item>
  </channel>
</rss>

