VMware {code} Community
graal38
Contributor
Contributor

impossible to connect vcenter using perl sdk


Hi,


 


I try to reach our vcenter environnment using perl sdk but even after installed a lot of library (LWP, SSL, NET::SSL, etc) it still replies the same issue :


C:\DsiTools\perl_vmware_sdk\Perl\apps\performance>perl viperformance.pl --username XXXXX password XXXXurl https://XXXXXXXXX:7444/sdk/vimService host XXXXXXcountertype cpu

Server version unavailable at 'https://XXXXXXXX:7444/sdk/vimService.wsdl' at C:/DsiTools/perl_vmware_sdk/Perl/lib/VMware/VICommon.pm line 551.


I've checked urls, host and credentials and it's ok. I've also tried to add the following line in the perl script :


$ENV = "Net::SSL";


$ENV = 0;


 


Without success....


Could you help me ?


 


Best regards,


 


GrAaL

Reply
0 Kudos
4 Replies
stumpr
Virtuoso
Virtuoso

Are you targeting port 7444?  That's the lookup service for SSO. The SDK port is on 443.

Reuben Stump | http://www.virtuin.com | @ReubenStump
Reply
0 Kudos
graal38
Contributor
Contributor

Hi,

Thank you very much, I've almost lost my patience with this install....

I should have read the documentation...

Best regards,

GrAaL

Reply
0 Kudos
stumpr
Virtuoso
Virtuoso

Yes, it's fallen a bit behind (the install).  It's b/c the VIPerl SDK includes the CLI commands, I think.  It would be nice if they bundled the VIPerl SDK modules (which are all pure-perl source files) as a CPAN module with appropriate dependencies.  There are some challenges since its using a deprecated SSL library.  You can do just the VIPerl SDK perl module install by hand, I've done it and it's not too hard, but I still have to drop LWP down a version or two to avoid some issues.

Reuben Stump | http://www.virtuin.com | @ReubenStump
Reply
0 Kudos
graal38
Contributor
Contributor

Amen

Reply
0 Kudos