<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script failing with Can't load class 'HostSriovInfo' error in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403835#M378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue noted Mike, and I'll follow through with Support and the SDK Team since you're a TAM Services Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 21:51:19 GMT</pubDate>
    <dc:creator>S_D</dc:creator>
    <dc:date>2015-04-27T21:51:19Z</dc:date>
    <item>
      <title>script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403829#M372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We just upgraded from RHEL5 to RHEL6 and attempted to load the SDK v6.&amp;nbsp; *SOME* of our standard perl scripts that gather inventory data from assorted vCenter servers are failing with the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;Can't load class 'HostSriovInfo' at /usr/local/share/perl5/VMware/VIMRuntime.pm line 52.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;We are, however, able to run a connect.pl successfully to all vCenters with the same credentials.&amp;nbsp; Any ideas out there that might help us troubleshoot this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;-Mike Gray&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN dir="ltr" style="color: #000000; font-family: 'Segoe UI'; font-size: 10pt; direction: ltr; -ms-word-wrap: break-word;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:42:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403829#M372</guid>
      <dc:creator>mikengray</dc:creator>
      <dc:date>2015-04-17T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403830#M373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance you're loading the older vSphere 5.0 API modules (VIM25Stub.pm)?&amp;nbsp; If it's 5.5, should be there, if it's 5.0, might not be.&amp;nbsp; Maybe check the perl path and see which module is loading by default?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:59:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403830#M373</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-17T17:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403831#M374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm relying on a buddy who is very Perl-savvy and he showed me my script is definitely using 25Stub.&amp;nbsp; Not sure how I would direct it to user the newer modules.&amp;nbsp; I assumed since I've loaded the v6 SDK, it would always point to the newest version...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:38:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403831#M374</guid>
      <dc:creator>mikengray</dc:creator>
      <dc:date>2015-04-17T19:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403832#M375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the modules aren't versioned, every version uses the same name 'VIM25Stub.pm' in this case.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The likely problem here is an older VIM25Stub.pm (from &amp;lt;5.5, since 5.5 introduced that object type).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might want to double check to see how many VIM25Stub.pm files are on the system, and if they are the same (simple md5sum would work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my vSphere 6.0 VIPerl SDK install system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;$ sudo find /&amp;nbsp; -name VIM25Stub.pm -type f -exec md5 {} \; 2&amp;gt;/dev/null&lt;/P&gt;
&lt;P&gt;MD5 (/System/Library/Perl/5.18/VMware/VIM25Stub.pm) = 6740555623a9613b4f9a50b29b457eaf&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just check if the package name is in the file (make sure you're getting the one that Perl is picking up in it's @INC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;$ egrep -r "HostSriovInfo" ./*&lt;/P&gt;
&lt;P&gt;./VIM25Stub.pm:package HostSriovInfo;&lt;/P&gt;
&lt;P&gt;./VIM25Stub.pm:VIMRuntime::make_get_set('HostSriovInfo', 'sriovEnabled', 'sriovCapable', 'sriovActive', 'numVirtualFunctionRequested', 'numVirtualFunction', 'maxVirtualFunctionSupported');&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 21:39:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403832#M375</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-17T21:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403833#M376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic!&amp;nbsp; My coworker started walking through the various versions of the stub25 file and found one without the HostSriovInfo entry:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[root@myhost ~]# locate VIM25Stub.pm&lt;/P&gt;&lt;P&gt;/usr/lib/vmware-vcli/VMware/share/VMware/VIM25Stub.pm&lt;/P&gt;&lt;P&gt;/usr/local/share/perl5/VMware/VIM25Stub.pm&lt;/P&gt;&lt;P&gt;/usr/share/perl5/VMware/VIM25Stub.pm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@myhost ~]# cd /usr/lib/vmware-vcli/VMware/share/VMware/; egrep -r "HostSriovInfo" ./*&lt;/P&gt;&lt;P&gt;./VIM25Stub.pm:package HostSriovInfo;&lt;/P&gt;&lt;P&gt;./VIM25Stub.pm:VIMRuntime::make_get_set('HostSriovInfo','sriovEnabled', 'sriovCapable', 'sriovActive', 'numVirtualFunctionRequested','numVirtualFunction','maxVirtualFunctionSupported');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[root@myhost ]# cd /usr/local/share/perl5/VMware/; egrep -r "HostSriovInfo" ./*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@myhost ]# cd /usr/share/perl5/VMware/; egrep -r "HostSriovInfo" ./*&lt;/P&gt;&lt;P&gt;./VIM25Stub.pm:package HostSriovInfo;&lt;/P&gt;&lt;P&gt;./VIM25Stub.pm:VIMRuntime::make_get_set('HostSriovInfo','sriovEnabled', 'sriovCapable', 'sriovActive', 'numVirtualFunctionRequested','numVirtualFunction','maxVirtualFunctionSupported');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We probably should've just updated the Perl path, but we ended up copying the newer stub25 file into the older location.&amp;nbsp; This WORKED!&amp;nbsp; We then updated the perl path as well.&amp;nbsp; I guess my final question is, why doesn't the VMware SDK Perl package add the new path to your system when it installs?&amp;nbsp; Seems odd it installs a brand new set of files but doesn't update the default path to actually USE these new files...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the quick response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 16:43:27 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403833#M376</guid>
      <dc:creator>mikengray</dc:creator>
      <dc:date>2015-04-20T16:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403834#M377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, seen the issue a few times myself &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:29:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403834#M377</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-22T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: script failing with Can't load class 'HostSriovInfo' error</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403835#M378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue noted Mike, and I'll follow through with Support and the SDK Team since you're a TAM Services Customer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 21:51:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/script-failing-with-Can-t-load-class-HostSriovInfo-error/m-p/403835#M378</guid>
      <dc:creator>S_D</dc:creator>
      <dc:date>2015-04-27T21:51:19Z</dc:date>
    </item>
  </channel>
</rss>

