VMware {code} Community
kedarjk
Enthusiast
Enthusiast

Multiple errors occuring while executing the same VMware perl script.

I am using strawberry perl version 5.20.1

My ESXi server version is 5.0.0

My vCenter server version is 5.1.0

When executing a perl script I am getting errors as below.

PS C:\> perl .\master_deploy.pl

SOAP request error - possibly a protocol issue: Can't connect to <server_ip>:443

Invalid argument at C:/Strawberry/perl/vendor/lib/LWP/Protocol/http.pm line 49.

PS C:\> perl .\master_deploy.pl

vimServiceVersions.xml version unavailable at 'https://<servr_ip>:443/sdk/vimServiceVersions.xml'

PS C:\> perl .\master_deploy.pl

Server version unavailable at 'https://<server_ip>:443/sdk/vimService.wsdl' at C:/Strawberry/perl/vendor/lib/VMware/VIC

ommon.pm line 545.

What is surprising is that, I am getting these errors not all at a time or not single error is displayed all the time but when I keep executing the script after ignoring errors, I am getting different error every time.

Sometimes even the script execution gets started but it halts midway due to 'vimServiceVersions.xml version unavailable at 'https://<servr_ip>:443/sdk/vimServiceVersions.xml' ' error.

I have already added $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 at the beginning of the script.

Any help is highly appreciated.

0 Kudos
1 Reply
stumpr
Virtuoso
Virtuoso

In the past, that error has bee related to libwww-perl.  You could try version 6.03, others have had success with that in the past.  You may even have to downgrade it.

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