<?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 : Unanswered Threads - vSphere SDK for Perl</title>
    <link>http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl?view=discussions&amp;filter=open</link>
    <description>Unanswered Discussion Threads in vSphere SDK for Perl</description>
    <language>en</language>
    <pubDate>Fri, 20 Nov 2009 09:25:31 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-11-20T09:25:31Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Authentication timed out?</title>
      <link>http://communities.vmware.com/thread/243435</link>
      <description>&lt;br /&gt;
 Hi,&lt;br /&gt;
&lt;p /&gt;
 I'm trying to snapshot some VM's via vcbmounter.exe from a perl script. The first backup works fine, but on the second I got a  authentication failure. I use this code in the beginning of the script for authentication (how do code tags work here?):&lt;br /&gt;
&lt;p /&gt;
eval {Vim::login(&lt;br /&gt;
        service_url =&amp;gt; $service_url,&lt;br /&gt;
        user_name =&amp;gt; $username, &lt;br /&gt;
        password =&amp;gt; $password);&lt;br /&gt;
        };&lt;br /&gt;
    if ($@) {&lt;br /&gt;
        # error&lt;br /&gt;
        print LOG $@ . "\n";&lt;br /&gt;
        }&lt;br /&gt;
&lt;p /&gt;
This seems to work, since the first VM gets backup'ed. It takes about 1:15h, since in the first run I got an error about it not being able two write back the backup date to a custom field, I added exactly the same authentication into the loop &lt;b&gt;after&lt;/b&gt; the backup. So the login should be valid when the next one starts. However I do get a  &lt;br /&gt;
&lt;p /&gt;
SOAP Fault:&lt;br /&gt;
&lt;hr /&gt;
Fault string: Die Sitzung wurde nicht authentifiziert.&lt;br /&gt;
Fault detail: NotAuthenticatedFault&lt;br /&gt;
&lt;p /&gt;
(the first one translates into "session not authenticated")&lt;br /&gt;
&lt;p /&gt;
Before I had added the additional authenication into the loop, I just would get a "Unable to find VM &lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=name"&gt;name&lt;/a&gt;" from this within the loop:&lt;br /&gt;
&lt;p /&gt;
my $vm = Vim::find_entity_view(view_type =&amp;gt; 'VirtualMachine',&lt;br /&gt;
                                      filter =&amp;gt; {"config.name" =&amp;gt; $_});&lt;br /&gt;
    unless ($vm) {&lt;br /&gt;
        print "Unable to find VM: \"$_\"!\n";&lt;br /&gt;
        exit 1&lt;br /&gt;
    }&lt;br /&gt;
&lt;p /&gt;
So it seems the authentication works fine for the first backup, and then times out. But why does the same authentication code from the start of the script not work again? How would I reauthenticate?&lt;br /&gt;
&lt;p /&gt;
 I've attached the script if anyone wants to take a look...&lt;br /&gt;
&lt;p /&gt;
Lars</description>
      <category domain="http://communities.vmware.com/tags?communityID=3088">vcbmounter</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">authentication</category>
      <pubDate>Fri, 20 Nov 2009 09:25:30 GMT</pubDate>
      <author>LarsOeschey</author>
      <guid>http://communities.vmware.com/thread/243435</guid>
      <dc:date>2009-11-20T09:25:30Z</dc:date>
      <clearspace:dateToText>2 days, 16 hours ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>MOB equivalent to Vim::find_entity_views?</title>
      <link>http://communities.vmware.com/thread/243285</link>
      <description>Greetings,&lt;br /&gt;
&lt;br /&gt;
i have started using the Managed Object Browser on a vCenter 4 installation to explore the object structure of the API, but i haven't been able to find VM objects so far. Could someone kindly point me to where i can find / query VM instances in the MOB. Similar to what i would do via Vim::find_entity_views. &lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
Sebastian</description>
      <pubDate>Thu, 19 Nov 2009 14:57:48 GMT</pubDate>
      <author>skayser</author>
      <guid>http://communities.vmware.com/thread/243285</guid>
      <dc:date>2009-11-19T14:57:48Z</dc:date>
      <clearspace:dateToText>3 days, 10 hours ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Error: Server version unavailable at 'https://1.1.1.1/sdk/vimService.wsdl' when connecting to virtual center with connect.pl</title>
      <link>http://communities.vmware.com/thread/240659</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I have a strange problem, I have 3 RHEL 5.4 servers that are clones of each other, I have install the SDK on all 3 of them, version:&lt;br /&gt;
&lt;p /&gt;
I have installed VMware-vSphere-SDK-for-Perl-4.0.0-161974 &lt;br /&gt;
&lt;p /&gt;
and on 2 servers whith connect.pl it works great:&lt;br /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;/usr/lib/vmware-vcli/apps/general/connect.pl --server 1.1.1.1 --username XXX --password XX&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
Connection Successful&lt;br /&gt;
Server Time : 2009-11-04T11:53:30.449415Z&lt;br /&gt;
&lt;p /&gt;
On the third server it doesn't work:&lt;br /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;/usr/lib/vmware-vcli/apps/general/connect.pl --server 1.1.1.1 --username XXX --password XX&lt;/li&gt;
&lt;/ol&gt;
&lt;p /&gt;
Error: Server version unavailable at 'https://1.1.1.1/sdk/vimService.wsdl'&lt;br /&gt;
&lt;p /&gt;
 I am connecting to a VC with esx 3.5, on the third server I can access the url 'https://1.1.1.1/sdk/vimService.wsdl' with no problems&lt;br /&gt;
&lt;p /&gt;
Any idea what can be the problem ?&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thnx</description>
      <pubDate>Wed, 04 Nov 2009 12:12:05 GMT</pubDate>
      <author>likid000</author>
      <guid>http://communities.vmware.com/thread/240659</guid>
      <dc:date>2009-11-04T12:12:05Z</dc:date>
      <clearspace:dateToText>4 days, 17 hours ago</clearspace:dateToText>
      <clearspace:messageCount>10</clearspace:messageCount>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>Can't get disk.totalLatency.average performance counter</title>
      <link>http://communities.vmware.com/thread/240101</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I have a task to make a command used for collecting  many of performance data.&lt;br /&gt;
&lt;br /&gt;
The command failed  for lack of disk.totalLatency.average performance counter in all of virtual machines. The target is a ESX 4.0 server host, and vSphare SDK for perl has been used.&lt;br /&gt;
&lt;br /&gt;
Any hint is precious to me.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
      <pubDate>Mon, 02 Nov 2009 08:51:43 GMT</pubDate>
      <author>luger_lee</author>
      <guid>http://communities.vmware.com/thread/240101</guid>
      <dc:date>2009-11-02T08:51:43Z</dc:date>
      <clearspace:dateToText>2 weeks, 2 days ago</clearspace:dateToText>
      <clearspace:messageCount>2</clearspace:messageCount>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Problem with rdmCreate.pl</title>
      <link>http://communities.vmware.com/thread/235518</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
i have a problem with Perl Script rdmCreate.pl.&lt;br /&gt;
&lt;p /&gt;
If I create a new disk rdm puntanto all 'esx4, the disc that I am going to add it correctly deal. This is the command;&lt;br /&gt;
&lt;p /&gt;
&lt;strike&gt;root@ITRMVSC1 vm&lt;/strike&gt;# perl rdmCreate.pl --url &lt;a class="jive-link-external" href="https://172.33.22.111/sdk/vimService"&gt;https://172.33.22.111/sdk/vimService&lt;/a&gt; --username MYUSER --password MYPSW --vmname VM1 --filename Test.vmdk --backingtype rdm&lt;br /&gt;
&lt;p /&gt;
Adding Virtual Disk on Virtual machine VM1 in the host esxhost.it.domain.com with file name Test.vmdk&lt;br /&gt;
&lt;p /&gt;
env browser&lt;br /&gt;
&lt;p /&gt;
*****&lt;br /&gt;
ARRAY(0x1fe9eb90)&lt;br /&gt;
*****&lt;br /&gt;
&lt;p /&gt;
*****&lt;br /&gt;
number of present disks is  2&lt;br /&gt;
*****&lt;br /&gt;
ITRMVSC Disk[0]: Capacity /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11&lt;br /&gt;
cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11VM1 Disk[1]: Capacity /vmfs/devices/disks/naa.6006016055351f00506decc0459cde11&lt;br /&gt;
cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11&lt;br /&gt;
calling the reconfigure VM&lt;br /&gt;
&lt;p /&gt;
returned from reconfigure VM&lt;br /&gt;
Virtual Disk created.&lt;br /&gt;
&lt;p /&gt;
but when I try to point the Virtual Center back to me the following error;&lt;br /&gt;
&lt;p /&gt;
perl rdmCreate.pl --url &lt;a class="jive-link-external" href="https://172.55.22.444/sdk/webService"&gt;https://172.55.22.444/sdk/webService&lt;/a&gt; --username administrator --password MYPSW --vmname VM1 --filename Test.vmdk --backingtype rdm&lt;br /&gt;
&lt;p /&gt;
Adding Virtual Disk on Virtual machine ITRMVSC in the host 172.33.22.111 with file name Test.vmdk&lt;br /&gt;
env browser&lt;br /&gt;
&lt;p /&gt;
*****&lt;br /&gt;
ARRAY(0xb5a20d0)&lt;br /&gt;
*****&lt;br /&gt;
&lt;p /&gt;
*****&lt;br /&gt;
number of present disks is  2&lt;br /&gt;
*****&lt;br /&gt;
ITRMVSC Disk[0]: Capacity /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11&lt;br /&gt;
cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11ITRMVSC Disk[1]: Capacity /vmfs/devices/disks/naa.6006016055351f00506decc0459cde11&lt;br /&gt;
cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11&lt;br /&gt;
calling the reconfigure VM&lt;br /&gt;
Error trapped &lt;br /&gt;
SOAP Fault:&lt;br /&gt;
&lt;hr /&gt;
Fault string: Invalid datastore path 'Test.vmdk'.&lt;br /&gt;
Fault detail: InvalidDatastorePathFalut : &lt;br /&gt;
SOAP Fault:&lt;br /&gt;
&lt;hr /&gt;
Fault string: Invalid datastore path 'Test.vmdk'.&lt;br /&gt;
&lt;p /&gt;
My version ESX : VMware ESX 4.0.0 build-164009&lt;br /&gt;
&lt;p /&gt;
My version Vsphere : VMware vCenter Server Version 4.0.0 Build 162856&lt;br /&gt;
&lt;p /&gt;
vSpher CLI Version : VMware vSphere CLI 4.0.0-161974.x86_64&lt;br /&gt;
&lt;p /&gt;
Please help me.&lt;br /&gt;
&lt;p /&gt;
Attached the script I use&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 07 Oct 2009 13:42:57 GMT</pubDate>
      <author>ii00907</author>
      <guid>http://communities.vmware.com/thread/235518</guid>
      <dc:date>2009-10-07T13:42:57Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Set permission on a particular datastore on ESXi</title>
      <link>http://communities.vmware.com/thread/235357</link>
      <description>&lt;br /&gt;
Hi all,&lt;br /&gt;
&lt;p /&gt;
I'm developping an application using vSphere SDK for Perl. But i'm struggling with the following problem: &lt;br /&gt;
&lt;p /&gt;
Let's say we have 2 users: A and B. Both have accounts on ESXi. Each user is assigned his own datastore.&lt;br /&gt;
&lt;p /&gt;
When A connects to ESXi by VI Client to upload files to his datastore, he can browse B's datastore and even delete B's files.&lt;br /&gt;
&lt;p /&gt;
What i want is that A can browse only his own datastore. &lt;br /&gt;
&lt;p /&gt;
Anyone have ideas how to do it by using vSphere SDK? Please help! &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Best regards,  &lt;br /&gt;
&lt;p /&gt;
Anh-Tu &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=3088">esxi</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">permission</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">vsphere_sdk_for_perl</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">datastore</category>
      <pubDate>Tue, 06 Oct 2009 15:08:12 GMT</pubDate>
      <author>Dexxt0r</author>
      <guid>http://communities.vmware.com/thread/235357</guid>
      <dc:date>2009-10-06T15:08:12Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>7</clearspace:messageCount>
      <clearspace:replyCount>6</clearspace:replyCount>
    </item>
    <item>
      <title>Updated vCenter, now perl scripts get SOAP error "500 EOF when chunk header expected"</title>
      <link>http://communities.vmware.com/thread/233975</link>
      <description>&lt;br /&gt;
We've got some reporting scripts that do a number of things, generate alerts and save performance info, etc.  vCenter was upgraded this weekend and all of the scripts are failing--occasionally--with this error.  At least one of the scripts is pretty light, it doesn't pull that much information, though it does it for hundreds of VMs. &lt;br /&gt;
&lt;p /&gt;
 This is using VI Perl 1.6.&lt;br /&gt;
&lt;p /&gt;
 Any help would be appreciated.&lt;br /&gt;
&lt;p /&gt;
-David</description>
      <pubDate>Mon, 28 Sep 2009 17:30:28 GMT</pubDate>
      <author>david_drew</author>
      <guid>http://communities.vmware.com/thread/233975</guid>
      <dc:date>2009-09-28T17:30:28Z</dc:date>
      <clearspace:dateToText>1 month, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>18</clearspace:messageCount>
      <clearspace:replyCount>17</clearspace:replyCount>
    </item>
    <item>
      <title>ShutDown / PowerOn VMs</title>
      <link>http://communities.vmware.com/thread/232914</link>
      <description>&lt;br /&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
I like that. How can I apply that so it can work for me? I am not a programmer or developer so that should tell you that I don't know much about scripting, but I think I can play around with it enough to get it going. What I would like to do is a weekly ShutDown then a PowerOn afterwards. Any chance you guys can help me with this? Any help would be appreciated. The way I am doing it right now which is so time consuming is to setup a schedule task for each VM via Virtual Center for ShutDown then again for PowerOn. I just would like to simplify this as much as possible.&lt;br /&gt;
&lt;br /&gt;
I just want to add that we are on an ESX 3.5.0 server and 2.5 VC.&lt;br /&gt;
&lt;p /&gt;
"I posted the this to one of the forums, but I noticed that that forum had been answered already and I did not know if I should just create a new discussion. Sry if I shouldn't have.."&lt;br /&gt;
&lt;p /&gt;
Again any help will be appreciated.&lt;br /&gt;
&lt;p /&gt;
Thank you,&lt;br /&gt;
Express &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thank you,&lt;br /&gt;
Express</description>
      <pubDate>Tue, 22 Sep 2009 15:05:50 GMT</pubDate>
      <author>EXPRESS</author>
      <guid>http://communities.vmware.com/thread/232914</guid>
      <dc:date>2009-09-22T15:05:50Z</dc:date>
      <clearspace:dateToText>1 month, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>15</clearspace:messageCount>
      <clearspace:replyCount>14</clearspace:replyCount>
    </item>
    <item>
      <title>CopyDatastoreFile_Task does not work</title>
      <link>http://communities.vmware.com/thread/229881</link>
      <description>&lt;br /&gt;
Hello,&lt;br /&gt;
&lt;p /&gt;
I need to copy virtual disks (or files) between datastores in VI. I am using VMware Infrastructure (VI) API for perl or vSphere SDK for Perl 4.0. Initialy I tried to use CopyVirtualDisk_Task, but it apeared that it works just with ESX servers not virtual center. Then I tried to use CopyDatastoreFile_Task. CopyDatastoreFile_Task works very strange. When copying vmdk files it just creates very small file in destination - I think that it is some kind of reference to original file. Why it is so? How can I copy file or disk with vSphere SDK for Perl 4.0?&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Following code is used in perl script to do the copy.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
my $service_content = Vim::get_service_content();&lt;br /&gt;
my $file_mgr = Vim::get_view(mo_ref =&amp;gt; $service_content-&amp;gt;fileManager);&lt;br /&gt;
$file_mgr-&amp;gt;waitForTask($file_mgr-&amp;gt;CopyDatastoreFile_Task(sourceName =&amp;gt; $SourceName,sourceDatacenter =&amp;gt; $SourceDatacenter,destinationName =&amp;gt; $DestName,destinationDatacenter =&amp;gt; $DestDatacenter));&lt;br /&gt;
&lt;p /&gt;
Regards,&lt;br /&gt;
Roberts</description>
      <pubDate>Fri, 04 Sep 2009 10:17:34 GMT</pubDate>
      <author>r123</author>
      <guid>http://communities.vmware.com/thread/229881</guid>
      <dc:date>2009-09-04T10:17:34Z</dc:date>
      <clearspace:dateToText>2 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>AddDVPortgroup error</title>
      <link>http://communities.vmware.com/thread/228324</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
When I add a VMware distributed virtual portgroup, it failed, fault string indicates that: Not initialized: boolean inherited.&lt;br /&gt;
&lt;p /&gt;
Can anyone explain it to me? Any sample code?&lt;br /&gt;
&lt;p /&gt;
Thanks,&lt;br /&gt;
&lt;p /&gt;
Shawn</description>
      <pubDate>Thu, 27 Aug 2009 05:33:59 GMT</pubDate>
      <author>duyuyang</author>
      <guid>http://communities.vmware.com/thread/228324</guid>
      <dc:date>2009-08-27T05:33:59Z</dc:date>
      <clearspace:dateToText>2 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>remove a VM and rename a VM</title>
      <link>http://communities.vmware.com/thread/227859</link>
      <description>&lt;br /&gt;
Dear all, &lt;br /&gt;
&lt;p /&gt;
 Is it possible to provide a perl function to remove a VM  through VC?&lt;br /&gt;
&lt;p /&gt;
My ESX is managed by VC serve, I saw a createVM.pl, just want to know if removeVM.pl is available?&lt;br /&gt;
&lt;p /&gt;
BTW, if there is some method to rename a VM name, I only saw the perl function for rename datastorage.&lt;br /&gt;
&lt;p /&gt;
Is it also possible?  &lt;br /&gt;
&lt;p /&gt;
Thanks a lot, &lt;br /&gt;
&lt;p /&gt;
Luffy</description>
      <pubDate>Tue, 25 Aug 2009 03:06:49 GMT</pubDate>
      <author>LuffyDLiu</author>
      <guid>http://communities.vmware.com/thread/227859</guid>
      <dc:date>2009-08-25T03:06:49Z</dc:date>
      <clearspace:dateToText>2 months, 4 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>check tools status doesn't return the good value</title>
      <link>http://communities.vmware.com/thread/227456</link>
      <description>&lt;br /&gt;
Hello,&lt;br /&gt;
&lt;p /&gt;
I want to check vmware tool status of my virtual machines so I use this fonction $vm_views-&amp;gt;guest-&amp;gt;ToolsStatus-&amp;gt;val. When I test this function returns always "toolsOk" even when I stop the vmware tools service on the service console of windows. Why this function doesn't return "toolsNotRunning" ?&lt;br /&gt;
&lt;p /&gt;
 Thank you.</description>
      <pubDate>Fri, 21 Aug 2009 13:04:46 GMT</pubDate>
      <author>gierone</author>
      <guid>http://communities.vmware.com/thread/227456</guid>
      <dc:date>2009-08-21T13:04:46Z</dc:date>
      <clearspace:dateToText>3 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>openSSL certificate verification</title>
      <link>http://communities.vmware.com/thread/226609</link>
      <description>&lt;br /&gt;
I have seen others talk about this issue but they never stated what resolved their problem.&lt;br /&gt;
&lt;p /&gt;
 Problem: When you do a connect.pl from the Perl utilities and get Error: Server version unavailable at 'https://asciesx1/sdk/vimService.wsdl'. If you do a wget it returns.&lt;br /&gt;
&lt;p /&gt;
&lt;strike&gt;16:02:15&lt;/strike&gt;  &lt;a class="jive-link-external" href="https://asciesx1/sdk/vimService.wsdl"&gt;https://asciesx1/sdk/vimService.wsdl&lt;/a&gt;&lt;br /&gt;
Resolving asciesx1... 172.29.59.25&lt;br /&gt;
Connecting to asciesx1|172.29.59.25|:443... connected.&lt;br /&gt;
ERROR: cannot verify asciesx1's certificate, issued by `/C=US/ST=California/L=Palo Alto/O=VMware, Inc./emailAddress=ssl-certificates@vmware.com/OU=VMware ESX Server Certificate/CN=asciesx1/unstructuredName=1250522187,564d7761726520496e632e':&lt;br /&gt;
  Self-signed certificate encountered.&lt;br /&gt;
To connect to asciesx1 insecurely, use `--no-check-certificate'.&lt;br /&gt;
Unable to establish SSL connection.&lt;br /&gt;
&lt;p /&gt;
I have tried to configure openssl and give the ca certificate to the client machine so that it could use it for verifying. These are self-signed certificates.</description>
      <pubDate>Mon, 17 Aug 2009 22:40:40 GMT</pubDate>
      <author>kef461</author>
      <guid>http://communities.vmware.com/thread/226609</guid>
      <dc:date>2009-08-17T22:40:40Z</dc:date>
      <clearspace:dateToText>3 months, 6 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>VMWareTools version provided by the host</title>
      <link>http://communities.vmware.com/thread/226095</link>
      <description>&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;p /&gt;
is there a way to get the version number of the VMWare Tools (e.g. 110268, 123630,...) from a host_view that are provided by the host?&lt;br /&gt;
&lt;p /&gt;
Thanks in advance!&lt;br /&gt;
&lt;p /&gt;
Chris&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 14 Aug 2009 07:50:10 GMT</pubDate>
      <author>kri-2</author>
      <guid>http://communities.vmware.com/thread/226095</guid>
      <dc:date>2009-08-14T07:50:10Z</dc:date>
      <clearspace:dateToText>3 months, 4 days ago</clearspace:dateToText>
      <clearspace:messageCount>10</clearspace:messageCount>
      <clearspace:replyCount>9</clearspace:replyCount>
    </item>
    <item>
      <title>If you need any sample code to get started, make a request here!</title>
      <link>http://communities.vmware.com/thread/224746</link>
      <description>&lt;br /&gt;
Need a sample code, then submit your request here:&lt;a class="jive-link-external" href="http://requestbox.slinkset.com/"&gt; CodeCentral Sample Code Request Box&lt;/a&gt;&lt;br /&gt;
&lt;p /&gt;
We assure you that all the requests will be processed promptly.&lt;br /&gt;
&lt;p /&gt;
For more information on how this works:&lt;a class="jive-link-external" href="http://blogs.vmware.com/codecentral/2009/08/community-sample-code-request-box-feedback.html"&gt; Learn about Sample Code Request Box and CodeCentral Feedback&lt;/a&gt;</description>
      <category domain="http://communities.vmware.com/tags?communityID=3088">help</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">sample_code</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">perl</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">sdk</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">vsphere</category>
      <pubDate>Wed, 05 Aug 2009 22:23:39 GMT</pubDate>
      <author>navadavuluri</author>
      <guid>http://communities.vmware.com/thread/224746</guid>
      <dc:date>2009-08-05T22:23:39Z</dc:date>
      <clearspace:dateToText>3 months, 1 week ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>VMware API Perl Toolkit Install Issue</title>
      <link>http://communities.vmware.com/thread/224494</link>
      <description>&lt;br /&gt;
I am trying to install Perl API Toolkit on one of the linux VM and below is the error I get. &lt;br /&gt;
&lt;p /&gt;
Does anyone know what is the problem? Does this mean I can not install the toolkit on the virtual guests, in that case where should this be installed. &lt;br /&gt;
&lt;p /&gt;
V# ./vmware-install.pl &lt;br /&gt;
You cannot install VMware VIPerl Toolkit on a system running a xen &lt;br /&gt;
kernel.Execution aborted.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Tue, 04 Aug 2009 22:07:50 GMT</pubDate>
      <author>softential</author>
      <guid>http://communities.vmware.com/thread/224494</guid>
      <dc:date>2009-08-04T22:07:50Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Changes to the ESX Service Console for ESX 4.0</title>
      <link>http://communities.vmware.com/thread/222686</link>
      <description>&lt;br /&gt;
Please check out the attched document for information &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
This technical paper discusses incompatibilities between the ESX 3.5 service&lt;br /&gt;
console and the ESX 4.0 service console. Included are suggestions of what you might do to upgrade your&lt;br /&gt;
existing environments that depend on the ESX service console. This document also discusses how you might&lt;br /&gt;
bridge the gap to support ESXi, which does not include a service console. And finally, if you are currently&lt;br /&gt;
writing applications that run in the ESX service console, this document suggests some possible options you&lt;br /&gt;
have for transitioning away from it.</description>
      <category domain="http://communities.vmware.com/tags?communityID=3088">changes</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">service_console</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">esx_4</category>
      <pubDate>Fri, 24 Jul 2009 01:38:09 GMT</pubDate>
      <author>navadavuluri</author>
      <guid>http://communities.vmware.com/thread/222686</guid>
      <dc:date>2009-07-24T01:38:09Z</dc:date>
      <clearspace:dateToText>4 months, 2 days ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>Problem with VMInfo.pl</title>
      <link>http://communities.vmware.com/thread/222259</link>
      <description>&lt;br /&gt;
I'm writing a script that needs to query for the datastore used by the disk files for a specific VM. I found that the VMInfo.pl script would accomplish this so to test I issued the following command at a command prompt: &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;blockquote&gt;vminfo.pl --url &lt;a class="jive-link-external" href="https://vcserver/sdk/webservice"&gt;https://vcserver/sdk/webservice&lt;/a&gt; --username vcadmin --password ***** --vmname &lt;i&gt;vmname&lt;/i&gt; --fields vmPathName&lt;/blockquote&gt;
&lt;br /&gt;
Unfortunately, the only response I get is: &lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;Virtual Machine &lt;i&gt;vmname&lt;/i&gt; not found.&lt;/blockquote&gt;
&lt;br /&gt;
I've verified that the VM exists and is running. I've tried it with several different VMs that I know exist and it isn't working. &lt;br /&gt;
&lt;p /&gt;
The odd thing is that it worked the other day...</description>
      <pubDate>Wed, 22 Jul 2009 02:15:46 GMT</pubDate>
      <author>DrewGator</author>
      <guid>http://communities.vmware.com/thread/222259</guid>
      <dc:date>2009-07-22T02:15:46Z</dc:date>
      <clearspace:dateToText>4 months, 3 days ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>vSphere SDK on SLES 11 or Debian Lenny</title>
      <link>http://communities.vmware.com/thread/221143</link>
      <description>&lt;br /&gt;
Hi *, &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
I wonder if SLES 11 will become a supported platform for the SDK some time.&lt;br /&gt;
We already managed to get things running but the performance is very poor. &lt;br /&gt;
An "strace" on a script returns about 15.000 system calls with the following statement: &lt;br /&gt;
&lt;p /&gt;
&lt;span style="color:#0000ff"&gt;&lt;i&gt;stat64("/usr/lib/perl/5.10/auto/Class/MethodMaker/Engine/ima_method_maker.al", 0xbfa2ca54) = -1 ENOENT (No such file or directory)&lt;/i&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
SLES 11 uses Perl 5.10 and I found out, that the class method "ima_method_maker" is deprecated now.&lt;br /&gt;
Any ideas? Btw. same problems with Debian5 (Lenny). &lt;br /&gt;
&lt;p /&gt;
Cheers&lt;br /&gt;
David &lt;br /&gt;
&lt;p /&gt;
&lt;ul class="jive-dash"&gt;

&lt;ul class="jive-dash"&gt;
&lt;li&gt;Pedo mellon a minno -- &lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;</description>
      <pubDate>Wed, 15 Jul 2009 11:21:36 GMT</pubDate>
      <author>davidhaase</author>
      <guid>http://communities.vmware.com/thread/221143</guid>
      <dc:date>2009-07-15T11:21:36Z</dc:date>
      <clearspace:dateToText>3 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>3</clearspace:messageCount>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Simple create VM script not working</title>
      <link>http://communities.vmware.com/thread/220472</link>
      <description>Howdy folks,&lt;br /&gt;
&lt;br /&gt;
I'm trying to create a simple create VM script from the ground up and I can't for the life of me find out what's wrong. The error I keep on getting is:&lt;br /&gt;
&lt;br /&gt;
SOAP Fault:&lt;br /&gt;
&lt;hr /&gt;
Fault string: A component of the virtual machine is not accessible on the host.&lt;br /&gt;
Fault detail: CannotAccessVmComponent&lt;br /&gt;
&lt;br /&gt;
I've tried to trim it down as much as possible to try and figure out this last issue. I took out the deviceChange portion and still get the same error. I also tried changing the datastore name to verify the format of it, and that was not the issue either as it complained .. Also, in the version I pasted below I put the var's directly in the create_vm_spec function as well .. Help!!! &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
use VMware::VIRuntime;&lt;br /&gt;
&lt;br /&gt;
my $vc    = 'x.x.x.x';&lt;br /&gt;
my $vc_un = 'username';&lt;br /&gt;
my $vc_pw = 'password';&lt;br /&gt;
my $host  = 'hostname';&lt;br /&gt;
&lt;br /&gt;
$vc = "https://$vc:443/sdk/vimService";&lt;br /&gt;
&lt;br /&gt;
Util::connect($vc,$vc_un,$vc_pw);&lt;br /&gt;
&lt;br /&gt;
my $host_view = get_esx_host($host);&lt;br /&gt;
my $dc_view = get_datacenter("datacenter");&lt;br /&gt;
my $folder  = $dc_view-&amp;gt;vmFolder;&lt;br /&gt;
&lt;br /&gt;
my $folder_view = Vim::get_view(mo_ref =&amp;gt;; $dc_view-&amp;gt;vmFolder);&lt;br /&gt;
my $comp_view   = Vim::get_view(mo_ref =&amp;gt; $host_view-&amp;gt;parent);&lt;br /&gt;
&lt;br /&gt;
my $spec = create_vm_spec();&lt;br /&gt;
&lt;br /&gt;
eval {&lt;br /&gt;
    $folder_view-&amp;gt;CreateVM(&lt;br /&gt;
    config =&amp;gt;$spec,&lt;br /&gt;
    pool   =&amp;gt;$comp_view-&amp;gt;resourcePool&lt;br /&gt;
    );&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
print $@;&lt;br /&gt;
&lt;br /&gt;
Util::disconnect();&lt;br /&gt;
&lt;br /&gt;
 # creates object for a given host&lt;br /&gt;
sub get_esx_host {&lt;br /&gt;
    my $host = shift;&lt;br /&gt;
    return Vim::find_entity_view(&lt;br /&gt;
        view_type =&amp;gt; 'HostSystem',&lt;br /&gt;
        filter    =&amp;gt; {&lt;br /&gt;
            name      =&amp;gt; qr/$host/i&lt;br /&gt;
        }&lt;br /&gt;
    );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 # creates an object for a given dc&lt;br /&gt;
sub get_datacenter {&lt;br /&gt;
    my $dc = shift;&lt;br /&gt;
    return Vim::find_entity_view(&lt;br /&gt;
        view_type =&amp;gt; 'Datacenter',&lt;br /&gt;
        filter    =&amp;gt; {&lt;br /&gt;
            name =&amp;gt; qr/$dc/i&lt;br /&gt;
        }&lt;br /&gt;
    );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
 # create vm spec, see below for params&lt;br /&gt;
sub create_vm_spec {&lt;br /&gt;
&lt;br /&gt;
    my $name         = "testMe";&lt;br /&gt;
    my $cpus         = 1;&lt;br /&gt;
    my $mem_size     = 256;&lt;br /&gt;
    my $guest_os     = "rhel4Guest";&lt;br /&gt;
    my $ds_name      = "datastore";&lt;br /&gt;
&lt;br /&gt;
    my $ds_path = "&lt;a class="jive-link-adddocument" href="http://communities.vmware.com/community-document-picker.jspa?communityID=&amp;subject=%24ds_name"&gt;$ds_name&lt;/a&gt;";&lt;br /&gt;
&lt;br /&gt;
    # create a ref for the location of the vm files&lt;br /&gt;
    my $files = VirtualMachineFileInfo-&amp;gt;new(&lt;br /&gt;
        logDirectory      =&amp;gt; undef,&lt;br /&gt;
        snapshotDirectory =&amp;gt; undef,&lt;br /&gt;
        suspendDirectory  =&amp;gt; undef,&lt;br /&gt;
        vmPathName        =&amp;gt; $ds_path&lt;br /&gt;
    );&lt;br /&gt;
&lt;br /&gt;
    # and for the grand finalie, lets create the vm spec!!!!!!!&lt;br /&gt;
    my $vm_spec = VirtualMachineConfigSpec-&amp;gt;new(&lt;br /&gt;
        name         =&amp;gt; $name,&lt;br /&gt;
        memoryMB     =&amp;gt; $mem_size,&lt;br /&gt;
        files        =&amp;gt; $files,&lt;br /&gt;
        numCPUs      =&amp;gt; $cpus,&lt;br /&gt;
        guestId      =&amp;gt; $guest_os&lt;br /&gt;
    );&lt;br /&gt;
&lt;br /&gt;
    return $vm_spec;&lt;br /&gt;
&lt;br /&gt;
}</description>
      <pubDate>Fri, 10 Jul 2009 18:26:24 GMT</pubDate>
      <author>repl1cant</author>
      <guid>http://communities.vmware.com/thread/220472</guid>
      <dc:date>2009-07-10T18:26:24Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:messageCount>1</clearspace:messageCount>
    </item>
    <item>
      <title>VI Perl Toolkit using a lot of CPU (hundreds of thousands of calls to libXML)</title>
      <link>http://communities.vmware.com/thread/216976</link>
      <description>&lt;br /&gt;
Hi there,&lt;br /&gt;
&lt;p /&gt;
We are using the VI Perl Toolkit to run scripts for monitoring and graphing our ESX as well as our ESXi hosts, some directly and others via Virtual Center. We are doing this on a Centos 5.3 host with toolkit 1.6. For some reason the toolkit is however consuming quite a lot of CPU, which means we cannot run the scripts on as many hosts as we would like, even though the monitor host is a dual quad core machine. I am not much of a developer myself, but I have ran Dprof and dprofpp on the script we're using, check_esx3.pl by op5, and also the sample script provided by vmware, datacenterlisting.pl, to find anything similar. Both of them seem to be making hundreds of thousands of calls to libXML, which is what's consuming all that CPU time. I have also tried doing this on the new vMA platform, which is running toolkit 4.0 with the same result.&lt;br /&gt;
&lt;p /&gt;
So what I would like to know is; how can we make our scripts execute faster when the toolkit itself is so slow? &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Output from dprofpp running datacenterlisting.pl:&lt;br /&gt;
&lt;p /&gt;
&lt;ol&gt;
&lt;li&gt;dprofpp tmon.out &lt;/li&gt;
&lt;/ol&gt;
Total Elapsed Time = 12.25789 Seconds&lt;br /&gt;
  User+System Time = 6.547893 Seconds&lt;br /&gt;
Exclusive Times&lt;br /&gt;
%Time ExclSec CumulS #Calls sec/call Csec/c  Name&lt;br /&gt;
 30.0   1.969  8.716  25888   0.0001 0.0003  ComplexType::deserialize&lt;br /&gt;
 28.0   1.838  5.688 148014   0.0000 0.0000  XML::LibXML::Element::getChildrenByTagName&lt;br /&gt;
 27.9   1.828  1.828 111179   0.0000 0.0000  XML::LibXML::Node::nodeName&lt;br /&gt;
 19.4   1.272  1.272 148014   0.0000 0.0000  XML::LibXML::Node::_childNodes&lt;br /&gt;
 7.70   0.504  1.776 148014   0.0000 0.0000  XML::LibXML::Node::childNodes&lt;br /&gt;
 6.23   0.408  0.408 121601   0.0000 0.0000  XML::LibXML::Node::textContent&lt;br /&gt;
 5.99   0.392  0.392 112826   0.0000 0.0000  XML::LibXML::Node::DESTROY&lt;br /&gt;
 4.87   0.319  1.041      2   0.1595 0.5205  Vim::login&lt;br /&gt;
 4.29   0.281  0.281  69100   0.0000 0.0000  XML::LibXML::Element::getAttributeNodeNS&lt;br /&gt;
 3.34   0.219  0.550   2625   0.0001 0.0002  Class::MethodMaker::Engine::create_methods&lt;br /&gt;
 2.52   0.165  0.202   2625   0.0001 0.0001  Class::MethodMaker::scalar::scal0000&lt;br /&gt;
 2.28   0.149  0.149   1161   0.0001 0.0001  Crypt::SSLeay::Conn::read&lt;br /&gt;
 1.99   0.130  0.130     10   0.0130 0.0130  XML::LibXML::_parse_string&lt;br /&gt;
 1.70   0.111  0.137  24388   0.0000 0.0000  DynamicData::get_property_list&lt;br /&gt;
 0.92   0.060  0.118     22   0.0027 0.0054  main::BEGIN&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Output from running dprofpp on check_esx3.pl:&lt;br /&gt;
&lt;p /&gt;
 # dprofpp tmon.out &lt;br /&gt;
Total Elapsed Time = 6.755634 Seconds&lt;br /&gt;
  User+System Time = 2.915634 Seconds&lt;br /&gt;
Exclusive Times&lt;br /&gt;
%Time ExclSec CumulS #Calls sec/call Csec/c  Name&lt;br /&gt;
 28.6   0.834  1.881  33053   0.0000 0.0001  XML::LibXML::Element::getChildrenByTagName&lt;br /&gt;
 21.8   0.636  0.636 247000   0.0000 0.0000  XML::LibXML::Node::nodeName&lt;br /&gt;
 15.4   0.449  2.543   5611   0.0001 0.0005  ComplexType::deserialize&lt;br /&gt;
 9.23   0.269  1.086      2   0.1347 0.5428  Vim::login&lt;br /&gt;
 8.40   0.245  0.575   2625   0.0001 0.0002  Class::MethodMaker::Engine::create_methods&lt;br /&gt;
 6.28   0.183  0.183  33053   0.0000 0.0000  XML::LibXML::Node::_childNodes&lt;br /&gt;
 5.38   0.157  0.206   2625   0.0001 0.0001  Class::MethodMaker::scalar::scal0000&lt;br /&gt;
 4.63   0.135  0.135 249895   0.0000 0.0000  XML::LibXML::Node::DESTROY&lt;br /&gt;
 4.01   0.117  0.300  33053   0.0000 0.0000  XML::LibXML::Node::childNodes&lt;br /&gt;
 2.85   0.083  0.083  14278   0.0000 0.0000  XML::LibXML::Element::getAttributeNodeNS&lt;br /&gt;
 2.33   0.068  0.115    863   0.0001 0.0001  Net::SSL::read&lt;br /&gt;
 2.16   0.063  0.098   2625   0.0000 0.0000  Class::MethodMaker::Engine::install_methods&lt;br /&gt;
 1.92   0.056  0.056  27375   0.0000 0.0000  XML::LibXML::Node::textContent&lt;br /&gt;
 1.85   0.054  0.062   5641   0.0000 0.0000  DynamicData::get_property_list&lt;br /&gt;
 1.68   0.049  0.049   2625   0.0000 0.0000  Class::MethodMaker::Engine::check_opts&lt;br /&gt;
&lt;p /&gt;
Any hints/clues much appreciated.</description>
      <category domain="http://communities.vmware.com/tags?communityID=3088">issues</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">perl</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">sdk</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">viperl</category>
      <category domain="http://communities.vmware.com/tags?communityID=3088">vsphere</category>
      <pubDate>Sun, 21 Jun 2009 13:25:00 GMT</pubDate>
      <author>MartinWi</author>
      <guid>http://communities.vmware.com/thread/216976</guid>
      <dc:date>2009-06-21T13:25:00Z</dc:date>
      <clearspace:dateToText>5 months, 2 days ago</clearspace:dateToText>
      <clearspace:messageCount>4</clearspace:messageCount>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
  </channel>
</rss>

